From 28ffd44e5574df56ce2af8b2cdd48ccbfd58e223 Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Wed, 16 Apr 2014 21:16:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AB=9E=E8=B5=9B=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8A=A0=E5=85=A5=E7=AB=9E=E8=B5=9B=EF=BC=8C=E5=85=B3?= =?UTF-8?q?=E6=B3=A8=E4=BB=A5=E5=8F=8A=E9=85=8D=E7=BD=AE=E7=AB=9E=E8=B5=9B?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_newcontest.html.erb | 45 +++++++++++++--------- app/views/welcome/contest.html.erb | 4 +- 2 files changed, 28 insertions(+), 21 deletions(-) diff --git a/app/views/layouts/base_newcontest.html.erb b/app/views/layouts/base_newcontest.html.erb index 79118fca7..f8c7056b6 100644 --- a/app/views/layouts/base_newcontest.html.erb +++ b/app/views/layouts/base_newcontest.html.erb @@ -56,29 +56,34 @@ <%= image_tag(url_to_avatar(@user), :class => "avatar2") %> - + + - - - - - <% if User.current.login? %> - - - - <% end %> - -
<%= h @contest.name %>
- <%= join_in_competition(@contest, User.current)%> - <%= new_watcher_link(@contest, User.current) %> -
- + + + + + <% if User.current.login? %> + + + + <% end %> + <% if User.current.logged? %> <% if @contest.author.id == User.current.id %> - <%= link_to l(:label_contest_modify_settings), {:controller => 'contests', :action => 'settings', :id => @contest} %> + + + <% end %> - <% end %> - + <% end %> +
<%= h @contest.name %>
+ <%= join_in_competition(@contest, User.current)%> + <%= new_watcher_link(@contest, User.current) %> +
+ <%= link_to l(:label_contest_modify_settings), {:controller => 'contests', :action => 'settings', :id => @contest} %> +
+ + @@ -201,8 +206,10 @@ +
+
<% if display_main_menu?(@contest) %>
diff --git a/app/views/welcome/contest.html.erb b/app/views/welcome/contest.html.erb index 3135595f8..f3d7f092e 100644 --- a/app/views/welcome/contest.html.erb +++ b/app/views/welcome/contest.html.erb @@ -119,7 +119,7 @@
<%= form_tag({controller: 'contests', action: 'index'}, method: :get) do %> - <%= text_field_tag 'name', params[:name], placeholder:'请输入要搜索的关键字', name: "name", :class => 'blueinputbar', :style => 'width:240px;'%> + <%= text_field_tag 'name', params[:name], placeholder:'请输入要搜索的关键字', name: "name", :class => 'blueinputbar', :style => 'width:240px; padding-right:50px;'%>   <%= hidden_field_tag 'project_type', params[:project_type] %> <%= submit_tag l(:label_search), :class => "enterprise" , :name => nil%> @@ -175,7 +175,7 @@ <%= link_to "更多>>", forums_path %>
    - <% find_new_forum_topics(10).each do |topic|%> + <% find_new_forum_topics(11).each do |topic|%>
  •