|
|
|
@ -55,11 +55,11 @@
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<!---->
|
|
|
|
|
<!--参赛步骤-->
|
|
|
|
|
<div style="padding-left: 17px; padding-bottom: 15px">温馨提示:如果您希望在我们平台托管参赛数据和代码,请按下面参赛步骤参赛!</div>
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div style="padding-bottom: 20px; line-height: 25px">
|
|
|
|
|
<div style="padding-left: 17px; font-size: 15px"><strong>参赛步骤:</strong></div>
|
|
|
|
|
<div style="padding-left: 82px; ">
|
|
|
|
|
<span style="padding-top: 50px">步骤1:</span>
|
|
|
|
@ -100,41 +100,77 @@
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<!--参赛作品列表,通过判断,竞赛的id为2,3,6的则跳转到partial=> "list_projects", 否则跳转到-->
|
|
|
|
|
<!--参赛作品列表,通过判断,竞赛的id为2,3,6的显示参赛作品为提交的项目,否则显示参赛的应用-->
|
|
|
|
|
|
|
|
|
|
<% if @contest.id == 2 or @contest.id == 3 or @contest.id == 6 %>
|
|
|
|
|
|
|
|
|
|
<% @contesting_softapplication.each do |c_softapplication|%>
|
|
|
|
|
<% if c_softapplication.softapplication %>
|
|
|
|
|
<div style="padding-left: 18px">
|
|
|
|
|
<div style="font-size: 15px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><strong>应用软件:</strong></td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= link_to(c_softapplication.softapplication.name, softapplication_path(c_softapplication.softapplication), :target => '_blank') %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr></br>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-left: 68px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>简介:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= c_softapplication.softapplication.description.truncate(90, omission: '...') %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr></br>
|
|
|
|
|
<% @contesting_project.each do |c_project|%>
|
|
|
|
|
<% if c_project.project %>
|
|
|
|
|
<div style="padding-left: 18px">
|
|
|
|
|
<div style="font-size: 15px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><strong>参赛作品: </strong></td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= link_to(c_project.project.name, project_path(c_project.project), :target => '_blank') %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr></br>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-left: 68px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>简介:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= c_project.project.description.truncate(90, omission: '...') %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr></br>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-left: 68px; padding-bottom: 8px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>发布时间:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= format_time c_project.created_at%>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-left: 68px; padding-bottom: 8px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>发布时间:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%=format_time c_softapplication.created_at %>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="underline-contests_three"></div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% @contesting_softapplication.each do |c_softapplication|%>
|
|
|
|
|
<% if c_softapplication.softapplication %>
|
|
|
|
|
<div style="padding-left: 18px">
|
|
|
|
|
<div style="font-size: 15px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><strong>参赛作品: </strong></td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= link_to(c_softapplication.softapplication.name, softapplication_path(c_softapplication.softapplication), :target => '_blank') %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr></br>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-left: 68px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>简介:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= c_softapplication.softapplication.description.truncate(90, omission: '...') %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr></br>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-left: 68px; padding-bottom: 8px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>发布时间:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%=format_time c_softapplication.created_at %>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="underline-contests_three"></div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="underline-contests_three"></div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="pagination"><%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|