<%= render :partial => 'layouts/base_softapplication_top_content' %>
<% 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 %>
<%=l(:label_attendingcontestwork_belongs_type)%>: <%= @softapplication.app_type_name %> <%=l(:label_attendingcontestwork_belongs_contest)%>: <%= contest ? link_to(contest.name, show_attendingcontest_contest_path(contest)) : '尚未加入竞赛' %>
<%=l(:label_attendingcontestwork_release_person)%>: <%= @softapplication.user.name %> <%=l(:label_attendingcontestwork_adaptive_system)%>: <%= @softapplication.android_min_version_available %>
<%=l(:label_attendingcontestwork_download)%>: <% options = {:author => true, :deletable => @softapplication.user.eql?(User.current)} %><%= render :partial => 'attachments/app_link', :locals => {:attachments => @app_items, :options => options} %> <%=l(:label_attendingcontestwork_developers)%>:<%= @softapplication.application_developers %>
<%=l(:label_attendingcontestwork_average_scores)%>: <%= rating_for @softapplication, :static => true, dimension: :quality, class: 'rateable div_inline' %> <%=l(:label_attendingcontestwork_release_time)%>:<%=format_time @softapplication.created_at %>
<% if @project %> <%=l(:label_attendingcontestwork_deposit_project)%>:<%= link_to "#@project", project_path(@project) %> <% end %>
<%=l(:label_work_description)%>:
<%= @softapplication.description %>
<%=l(:label_work_scores)%>:
<%=l(:label_work_scores_proportion)%>
<% 100.step(20, -20) do |star| %>
<%= @stars_status_map["star#{(star/20).to_s}".to_sym] %>
<% end %>
<%=l(:label_final_scores)%>
<%= @softapplication.average(:quality).try(:avg).try(:round, 2).to_i.to_s %>分
<%= rating_for @softapplication, :static => true, dimension: :quality, class: 'rateable div_inline' %>
<%=l(:label_rating_person_amount)%>
<%= @softapplication.raters(:quality).count %>
<%=l(:label_work_photo)%>:
<%=l(:label_work_comment)%>:
<% if (User.current.logged? and User.current.id != @softapplication.user_id) %>
<%=l(:label_work_rating)%>: <%= rating_for @softapplication, dimension: :quality, class: 'rateable div_inline' %> (<%=l(:label_attendingcontestwork_sorting_intimation)%>)
<% end %>
<%= render :partial => 'message_history', :locals => {:contest => @softapplication, :journals => @jour, :state => false} %>