2014-04-03 22:38:18 +08:00
|
|
|
<div class="top-content">
|
2014-09-17 16:08:49 +08:00
|
|
|
<%= form_tag({:controller => 'contests', :action => 'index'}, :method => :get) do %>
|
|
|
|
<table width="940px">
|
|
|
|
<tr>
|
|
|
|
<td class="info_font" style="width: 220px; color: #15bccf"><%= l(:label_contest_innovate) %></td>
|
|
|
|
<td class="location-list"><strong><%= l(:label_user_location) %> :</strong></td>
|
|
|
|
<td rowspan="2">
|
|
|
|
<% if User.current.logged? %>
|
2014-09-12 16:45:03 +08:00
|
|
|
<% unless User.current.user_extensions.identity == 1 %>
|
2014-09-17 12:06:07 +08:00
|
|
|
<%= link_to(l(:label_newtype_contest), new_contest_contests_path, :class => 'icon icon-add', :target => "_blank") %>
|
2014-09-17 16:08:49 +08:00
|
|
|
<!-- end longjun -->
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td rowspan="2" >
|
|
|
|
<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 => "contests_search" %>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="padding-left: 8px">
|
|
|
|
<a>
|
|
|
|
<%= link_to request.host()+"/contests", contests_path %>
|
|
|
|
<!-- end longjun -->
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td >
|
|
|
|
<%=link_to l(:field_homepage), home_path %> >
|
|
|
|
<%=link_to l(:label_contest_innovate), :controller => 'contests', :action => 'index' %>
|
|
|
|
<!-- end longjun -->
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
2014-04-03 22:38:18 +08:00
|
|
|
</div>
|
2014-09-17 16:08:49 +08:00
|
|
|
<% if @contests.size > 0%>
|
|
|
|
<%= sort_contest(@s_state)%>
|
2014-10-23 17:05:36 +08:00
|
|
|
<div id="bid-show" class="projects-index">
|
2014-09-17 16:08:49 +08:00
|
|
|
<%= render :partial => 'contest_list', :locals => {:contests => @contests, :contest_pages => @contest_pages} %>
|
|
|
|
</div>
|
2014-10-23 17:05:36 +08:00
|
|
|
<% elsif @is_search%>
|
2014-04-03 22:38:18 +08:00
|
|
|
<%= render :partial => "layouts/no_content"%>
|
2014-10-23 17:05:36 +08:00
|
|
|
<% else %>
|
|
|
|
<%= sort_contest(@s_state)%>
|
|
|
|
<div id="bid-show" class="projects-index">
|
|
|
|
<%= render :partial => 'contest_list', :locals => {:contests => @contests, :contest_pages => @contest_pages} %>
|
|
|
|
</div>
|
2014-04-03 22:38:18 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% html_title l(:label_contest_list)%>
|