From 1fbd2e95d477c1e57e5ae8ce0ebb95e8bdbf520c Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Thu, 18 Dec 2014 15:39:32 +0800 Subject: [PATCH] =?UTF-8?q?#1719=20=E4=BF=AE=E6=94=B9=E7=AB=9E=E8=B5=9B?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=B9=8B=E5=90=8E=E6=A0=87=E9=A2=98=E6=A0=8F?= =?UTF-8?q?=E9=94=99=E4=BD=8D=E7=9A=84BUG=20=E4=BF=AE=E6=94=B9=E7=AB=9E?= =?UTF-8?q?=E8=B5=9B=E6=90=9C=E7=B4=A2=E4=B9=8B=E5=90=8E=EF=BC=8C=E7=BD=AE?= =?UTF-8?q?=E7=A9=BA=E5=86=8D=E6=90=9C=E7=B4=A2=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/contests/index.html.erb | 44 +++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/app/views/contests/index.html.erb b/app/views/contests/index.html.erb index f966f149d..78fadf2f3 100644 --- a/app/views/contests/index.html.erb +++ b/app/views/contests/index.html.erb @@ -1,5 +1,5 @@
@@ -20,19 +20,41 @@ |
- <%= text_field_tag 'name', params[:name], :size => 30 %>
+
+ <%= text_field_tag 'name', params[:name], :size => 30, :onblur => 'regexName();' %>
<%= 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" %>
+
+ <%= l(:label_search)%>
+
+
+ |
- - <%= link_to request.host()+"/contests", contests_path %> - - - |
<%=link_to l(:field_homepage), home_path %> >
<%= l(:label_contest_innovate) %>
@@ -43,14 +65,14 @@
<% end %>
<% if @contests.size > 0%>
- <%= sort_contest(@s_state)%>
+ <%#= sort_contest(@s_state)%>
<%= render :partial => 'contest_list', :locals => {:contests => @contests, :contest_pages => @contest_pages} %>
<% elsif @is_search%>
<%= render :partial => "layouts/no_content"%>
<% else %>
- <%= sort_contest(@s_state)%>
+ <%#= sort_contest(@s_state)%>
<%= render :partial => 'contest_list', :locals => {:contests => @contests, :contest_pages => @contest_pages} %>
|