From 3a2754eb278d2d7802aa462f42ea33ff792afeac Mon Sep 17 00:00:00 2001 From: chenmin <19763783@qq.com> Date: Thu, 21 Aug 2014 10:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=A5=E7=9C=8B=E5=8D=95?= =?UTF-8?q?=E4=B8=AA=E7=AB=9E=E8=B5=9B=E9=A1=B5=E9=9D=A2=E7=9A=84=E7=AB=9E?= =?UTF-8?q?=E8=B5=9B=E8=AF=A6=E7=BB=86=E4=BF=A1=E6=81=AF=E8=A2=AB=E9=81=AE?= =?UTF-8?q?=E4=BD=8F=E7=9A=84bug=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/softapplications/show.html.erb | 93 ++++++++++++------------ 1 file changed, 48 insertions(+), 45 deletions(-) diff --git a/app/views/softapplications/show.html.erb b/app/views/softapplications/show.html.erb index 34e254f3d..efc83dcbc 100644 --- a/app/views/softapplications/show.html.erb +++ b/app/views/softapplications/show.html.erb @@ -3,51 +3,54 @@
<%= @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 %> | - <% contest = @softapplication.contests.first %> -<%=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} %> - - | +
<%= @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 %> | + <% contest = @softapplication.contests.first %> +<%=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 %> + | +