实现应用列表页面
This commit is contained in:
parent
815e7cf3af
commit
bdb1c3f74e
|
@ -0,0 +1,22 @@
|
||||||
|
<div class="top-content">
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td class="info_font" style="width: 240px; color: #15bccf">创新竞赛社区</td>
|
||||||
|
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
||||||
|
<td rowspan="2" width="250px">
|
||||||
|
<div class="project-search" style="float: right">
|
||||||
|
<%= text_field_tag 'name', params[:name], :size => 30 %>
|
||||||
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
||||||
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td style="padding-left: 8px"><%=link_to request.host()+"/softapplications", :controller=>'softapplications', :action=>'index' %></td>
|
||||||
|
<td ><%=link_to l(:field_homepage), home_path %> >
|
||||||
|
<%=link_to l(:label_contest_softapplication), :controller=>'softapplications', :action=>'index' %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
|
@ -1,4 +1,4 @@
|
||||||
<h1>参赛应用</h1>
|
<!-- <h1>参赛应用</h1>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -30,4 +30,47 @@
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<%= link_to 'New Softapplication', new_softapplication_path %>
|
<%= link_to '发布新应用', new_softapplication_path %> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<%=render :partial => 'layouts/base_softapplication_index_top_content'%>
|
||||||
|
|
||||||
|
<!-- <% if @softapplications.size > 0%>
|
||||||
|
|
||||||
|
<%#= sort_softapplication(@s_state)%>
|
||||||
|
|
||||||
|
<div id="bid-show">
|
||||||
|
<%#= render :partial => 'softapplication_list' %>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<%#= render :partial => "layouts/no_content"%>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% html_title l(:label_contest_list)%> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div width="95%" border="0" style="padding-left: 10px; padding-top: 10px;">
|
||||||
|
<% @softapplications.each do |softapplication| %>
|
||||||
|
<div>
|
||||||
|
<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>
|
||||||
|
<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: -8px; line-height: 0.5em">
|
||||||
|
<p>所属竞赛:</p>
|
||||||
|
<p>所属类别:<%= softapplication.app_type_name %></p>
|
||||||
|
<p>系统支持:<%= softapplication.android_min_version_available %></p>
|
||||||
|
</div>
|
||||||
|
<div style="padding-left: 53px">
|
||||||
|
<span>开发人员:<%= softapplication.application_developers %></span>
|
||||||
|
<span style="padding-left: 50px">发布时间:<%=format_time softapplication.created_at %></span>
|
||||||
|
</div>
|
||||||
|
<div style="border-left: 1px solid #d9d8d8; border-bottom: 1px solid #d9d8d8; margin-left: 50px; padding-bottom: 10px; margin-bottom: 20px; width: 66%"></div>
|
||||||
|
<div class="underline-contests_one" style="margin-top: -7px"></div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue