<%=render :partial => 'layouts/base_softapplication_top_content'%>

<%= notice %>

<% contest = @softapplication.contests.first %>
<%= @softapplication.name %> <%= link_to '删除', softapplication_path(@softapplication), method: :delete, data: { confirm: '您确定要删除吗?' } if @softapplication.destroyable_by? User.current %>  <%= link_to '编辑', edit_softapplication_path(@softapplication), method: :get if @softapplication.destroyable_by? User.current %>
所属类别:<%= @softapplication.app_type_name %>所属竞赛:<%= contest ? link_to(contest.name, show_softapplication_contest_path(contest)) : '尚未加入竞赛'%>
发布人员:<%= @softapplication.user.name %> 系统支持:<%= @softapplication.android_min_version_available %>
应用下载: <% options = {:author => true, :deletable => @softapplication.user.eql?(User.current) } %><%= render :partial => 'attachments/app_link', :locals => {:attachments => @app_items, :options => options} %> 开发人员:<%= @softapplication.application_developers %>
平均评分: <%= rating_for @softapplication, :static => true, dimension: :quality, class: 'rateable div_inline' %> 发布时间:<%=format_time @softapplication.created_at %>
应用简介:
<%= @softapplication.description %>
应用得分:
得分比例
<% 100.step(20,-20) do |star| %>
<%= @stars_status_map["star#{(star/20).to_s}".to_sym] %>
<% end %>
最终得分
<%= rating_for @softapplication, :static => true, dimension: :quality, class: 'rateable div_inline' %>
打分总人数
<%= @softapplication.raters(:quality).count%>
软件截图:
<% @image_results.take(4).each do |attachment| %> <%= link_to_attachment_img attachment, :class => "soft-application", :download => "true" %> <% end %>
软件评论:
评分: <%= rating_for @softapplication, dimension: :quality, class: 'rateable div_inline' %>(您可以重新打分,打分结果以最后一次打分为主!)
<%= render :partial => 'message_history', :locals => { :contest => @softapplication, :journals => @jour, :state => false} %>
<%#= link_to '返回竞赛页面', show_softapplication_contest_path(@softapplication.contest) %>