调整参赛应用页面中两列的显示,主要是防止应用下载和开发人员字数太长显示的问题,使其可以自动换行
This commit is contained in:
parent
6afef880dc
commit
9baa07b9a3
|
@ -19,31 +19,32 @@
|
||||||
<table width="100%" border="0">
|
<table width="100%" border="0">
|
||||||
<tr style="font-size: 18px">
|
<tr style="font-size: 18px">
|
||||||
<td colspan="2" valign="top"><strong><%= @softapplication.name %></strong></td>
|
<td colspan="2" valign="top"><strong><%= @softapplication.name %></strong></td>
|
||||||
<td style="font-size: 15px">
|
<td style="font-size: 15px; padding-left: 0px">
|
||||||
<%= link_to '删除', softapplication_path(@softapplication), method: :delete, data: { confirm: '您确定要删除吗?' } if @softapplication.destroyable_by? User.current %>
|
<%= 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 %>
|
<%= link_to '编辑', edit_softapplication_path(@softapplication), method: :get if @softapplication.destroyable_by? User.current %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>所属类别:<%= @softapplication.app_type_name %></td>
|
<td style="width: 570px; padding-left:40px; word-wrap: break-word; word-break: break-all">所属类别:<%= @softapplication.app_type_name %></td>
|
||||||
<% contest = @softapplication.contests.first %>
|
<% contest = @softapplication.contests.first %>
|
||||||
<td>所属竞赛:<%= contest ? link_to(contest.name, show_contest_contest_path(contest)) : '尚未加入竞赛'%></td>
|
<td style="width: 240px; word-wrap: break-word; word-break: break-all">所属竞赛:<%= contest ? link_to(contest.name, show_contest_contest_path(contest)) : '尚未加入竞赛'%></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>发布人员:<%= @softapplication.user.name %></td>
|
<td style="padding-left: 40px">发布人员:<%= @softapplication.user.name %></td>
|
||||||
<td>系统支持:<%= @softapplication.android_min_version_available %></td>
|
<td>系统支持:<%= @softapplication.android_min_version_available %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td style="padding-left: 40px">
|
||||||
<span>应用下载:</span>
|
<span>应用下载:</span>
|
||||||
<span><% options = {:author => true, :deletable => @softapplication.user.eql?(User.current) } %>
|
<span>
|
||||||
<%= render :partial => 'attachments/app_link', :locals => {:attachments => @app_items, :options => options} %></span>
|
<% options = {:author => true, :deletable => @softapplication.user.eql?(User.current) } %><%= render :partial => 'attachments/app_link', :locals => {:attachments => @app_items, :options => options} %>
|
||||||
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>开发人员:<%= @softapplication.application_developers %></td>
|
<td>开发人员:<%= @softapplication.application_developers %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>平均评分: <%= rating_for @softapplication, :static => true, dimension: :quality, class: 'rateable div_inline' %></td>
|
<td style="padding-left: 40px">平均评分: <%= rating_for @softapplication, :static => true, dimension: :quality, class: 'rateable div_inline' %></td>
|
||||||
<td>发布时间:<%=format_time @softapplication.created_at %></td>
|
<td>发布时间:<%=format_time @softapplication.created_at %></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue