|
|
|
@ -1,37 +1,3 @@
|
|
|
|
|
<!-- <h1>参赛应用</h1>
|
|
|
|
|
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Name</th>
|
|
|
|
|
<th>Description</th>
|
|
|
|
|
<th>App type</th>
|
|
|
|
|
<th>App type name</th>
|
|
|
|
|
<th>Android min version available</th>
|
|
|
|
|
<th>User</th>
|
|
|
|
|
<th></th>
|
|
|
|
|
<th></th>
|
|
|
|
|
<th></th>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<% @softapplications.each do |softapplication| %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= softapplication.name %></td>
|
|
|
|
|
<td><%= softapplication.description %></td>
|
|
|
|
|
<td><%= softapplication.app_type_id %></td>
|
|
|
|
|
<td><%= softapplication.app_type_name %></td>
|
|
|
|
|
<td><%= softapplication.android_min_version_available %></td>
|
|
|
|
|
<td><%= softapplication.user_id %></td>
|
|
|
|
|
<td><%= link_to 'Show', softapplication %></td>
|
|
|
|
|
<td><%= link_to 'Edit', edit_softapplication_path(softapplication) %></td>
|
|
|
|
|
<td><%= link_to 'Destroy', softapplication, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
<%= link_to '发布新应用', new_softapplication_path %> -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%=render :partial => 'layouts/base_softapplication_index_top_content'%>
|
|
|
|
@ -48,9 +14,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="avatar-4"; style="float: left; margin-top: 7px "><%= image_tag('/images/app1.png')%></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; line-height: 0.5em">
|
|
|
|
|
<div style="float: left; width: 200px; margin-left: 70px; margin-top: -3px; ">
|
|
|
|
|
<%contest = softapplication.contests.first%>
|
|
|
|
|
<p>所属竞赛:<%= contest ? link_to(contest.name, show_softapplication_contest_path(contest) ) : '尚未加入竞赛'%></p>
|
|
|
|
|
<p>所属竞赛:<%= contest ? link_to(contest.name.truncate(10, omission: '...'), show_softapplication_contest_path(contest), title: contest.name.to_s ) : '尚未加入竞赛'%></p>
|
|
|
|
|
<p>所属类别:<%= softapplication.app_type_name %></p>
|
|
|
|
|
<p>系统支持:<%= softapplication.android_min_version_available %></p>
|
|
|
|
|
</div>
|
|
|
|
|