|
|
|
@ -9,9 +9,13 @@
|
|
|
|
|
<% unless User.current.user_extensions.identity == 1 %>
|
|
|
|
|
<!--
|
|
|
|
|
modified by longjun
|
|
|
|
|
<%=link_to l(:label_newtype_contest), :controller => 'contests', :action => 'new_contest' %>
|
|
|
|
|
<%#link_to l(:label_newtype_contest), :controller => 'contests', :action => 'new_contest' %>
|
|
|
|
|
-->
|
|
|
|
|
<%= link_to(l(:label_newtype_contest), contest_new_contest_path, :class => 'icon icon-add', :target => "_blank") %>
|
|
|
|
|
<%= link_to(l(:label_newtype_contest),
|
|
|
|
|
contest_new_contests_path,
|
|
|
|
|
:class => 'icon icon-add',
|
|
|
|
|
:target => "_blank")
|
|
|
|
|
%>
|
|
|
|
|
<!-- end longjun -->
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -20,17 +24,17 @@
|
|
|
|
|
<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" %>
|
|
|
|
|
<%= submit_tag l(:label_search),
|
|
|
|
|
:class => "enterprise",
|
|
|
|
|
:name => "contests_search"
|
|
|
|
|
%>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-left: 8px">
|
|
|
|
|
<a>
|
|
|
|
|
<!--
|
|
|
|
|
modified by longjun
|
|
|
|
|
<%=link_to request.host()+"/contests", :controller => 'contests', :action => 'index' %>
|
|
|
|
|
-->
|
|
|
|
|
<!--modified by longjun-->
|
|
|
|
|
<%= link_to request.host()+"/contests", contests_path %>
|
|
|
|
|
<!-- end longjun -->
|
|
|
|
|
</a>
|
|
|
|
@ -39,9 +43,9 @@
|
|
|
|
|
<%=link_to l(:field_homepage), home_path %> >
|
|
|
|
|
<!--
|
|
|
|
|
modified by longjun
|
|
|
|
|
<%=link_to l(:label_contest_innovate), :controller => 'contests', :action => 'index' %>
|
|
|
|
|
<%#link_to l(:label_contest_innovate), :controller => 'contests', :action => 'index' %>
|
|
|
|
|
-->
|
|
|
|
|
<%=link_to l(:label_contest_innovate), :controller => 'contests', :action => 'index' %>
|
|
|
|
|
<%=link_to l(:label_contest_innovate), contests_path %>
|
|
|
|
|
<!-- end longjun -->
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
@ -51,7 +55,9 @@
|
|
|
|
|
<% if @contests.size > 0%>
|
|
|
|
|
<%= sort_contest(@s_state)%>
|
|
|
|
|
<div id="bid-show">
|
|
|
|
|
<%= render :partial => 'contest_list', :locals => {:contests => @contests, :contest_pages => @contest_pages} %>
|
|
|
|
|
<%= render :partial => 'contest_list',
|
|
|
|
|
:locals => {:contests => @contests, :contest_pages => @contest_pages}
|
|
|
|
|
%>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= render :partial => "layouts/no_content"%>
|
|
|
|
|