修改了应用列表页面所属竞赛的显示长度

This commit is contained in:
wanglinchun 2014-05-06 16:01:22 +08:00
parent 31dff76b3a
commit bb3c7f2432
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
<div style="float: left; width: 600px; padding-top: 6px; margin-left: 8px"><%= softapplication.description.truncate(95, omission: '...') %></div> <div style="float: left; width: 600px; padding-top: 6px; margin-left: 8px"><%= softapplication.description.truncate(95, omission: '...') %></div>
<div style="float: left; width: 200px; margin-left: 70px; margin-top: -3px; "> <div style="float: left; width: 200px; margin-left: 70px; margin-top: -3px; ">
<%contest = softapplication.contests.first%> <%contest = softapplication.contests.first%>
<p>所属竞赛:<%= contest ? link_to(contest.name.truncate(10, omission: '...'), show_softapplication_contest_path(contest), title: contest.name.to_s ) : '尚未加入竞赛'%></p> <p>所属竞赛:<%= contest ? link_to(contest.name.truncate(14, omission: '...'), show_softapplication_contest_path(contest), title: contest.name.to_s ) : '尚未加入竞赛'%></p>
<p>所属类别:<%= softapplication.app_type_name.truncate(5, omission: '...') %></p> <p>所属类别:<%= softapplication.app_type_name.truncate(5, omission: '...') %></p>
<p>系统支持:<%= softapplication.android_min_version_available %></p> <p>系统支持:<%= softapplication.android_min_version_available %></p>
</div> </div>