2014-07-29 17:35:22 +08:00
|
|
|
|
|
|
|
|
|
<% @softapplications.each do |softapplication| %>
|
2014-10-21 23:23:07 +08:00
|
|
|
|
<div style="float: left; width:928px">
|
2014-07-29 17:35:22 +08:00
|
|
|
|
<span style="font-size: 15px; margin-right: 10px;"><strong><%= link_to softapplication.name, softapplication, :target => "_blank" %></strong></span>
|
|
|
|
|
<span><%= rating_for softapplication, :static => true, dimension: :quality, class: 'rateable div_inline' %></span>
|
|
|
|
|
|
|
|
|
|
</div>
|
2014-07-29 17:47:20 +08:00
|
|
|
|
<div class="avatar-4" style="float: left; margin-top: 7px "><%= image_tag('/images/app1.png')%></div>
|
2014-10-21 23:23:07 +08:00
|
|
|
|
<div style="float: left; width: 600px; margin-left: 8px">
|
|
|
|
|
<br/>
|
2014-07-29 17:35:22 +08:00
|
|
|
|
<%contest = softapplication.contests.first%>
|
2014-10-21 23:23:07 +08:00
|
|
|
|
<%=l(:label_attendingcontestwork_belongs_contest)%>:<%= contest ? link_to(contest.name.truncate(14, omission: '...'), show_attendingcontest_contest_path(contest), title: contest.name.to_s ) : '尚未加入竞赛'%>
|
|
|
|
|
</br></br>
|
|
|
|
|
<%= l(:label_profile) %>:<%= softapplication.description.truncate(95, omission: '...') %>
|
2014-09-24 15:18:58 +08:00
|
|
|
|
|
2014-10-21 23:23:07 +08:00
|
|
|
|
</div>
|
2014-09-24 15:18:58 +08:00
|
|
|
|
|
2014-10-21 23:23:07 +08:00
|
|
|
|
<div style="float: left; width: 200px; margin-left: 70px; margin-top: -3px; line-height: 0.5em ">
|
2014-09-24 15:18:58 +08:00
|
|
|
|
<% strTitle = softapplication.android_min_version_available %>
|
|
|
|
|
<p><%=l(:label_attendingcontestwork_adaptive_system)%>:<lable title="<%= strTitle %>"><%= strTitle ? strTitle.truncate(10,omisiion:'...') : "" %></lable></p>
|
2014-10-21 23:23:07 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--modified by longjun 因为新建竞赛作品时没有填写运行平台和类别,所有如果为空不能使用truncate函数-->
|
|
|
|
|
<p><%=l(:label_attendingcontestwork_belongs_type)%>:<%= softapplication.app_type_name ? softapplication.app_type_name.truncate(14, omission: '...') : "" %></p>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-left: 53px; float: left; width: 928px;">
|
|
|
|
|
|
2014-07-29 17:35:22 +08:00
|
|
|
|
<span><%=l(:label_attendingcontestwork_developers)%>:<%= softapplication.application_developers %></span>
|
2014-10-21 23:23:07 +08:00
|
|
|
|
<span style="float: right;margin-right: 93px;"><%=l(:label_attendingcontestwork_release_time)%>:<%=format_time softapplication.created_at %></span>
|
2014-07-29 17:35:22 +08:00
|
|
|
|
</div>
|
2014-10-21 23:23:07 +08:00
|
|
|
|
<div style="border-left: 1px solid #d9d8d8; border-bottom: 1px solid #d9d8d8; margin-left: 50px; padding-bottom: 10px; margin-bottom: 20px; width: 66%; float: left"></div>
|
|
|
|
|
<div class="underline-contests_one" style="margin-top: -7px;float: left"></div>
|
2014-07-29 17:35:22 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="pagination"><%= pagination_links_full @softapplication_pages, @softapplication_count, :per_page_links => false %></div>
|