-
-
+
+
@@ -86,10 +91,14 @@
<%=l(:label_contest_innovate_community)%> | -<%= l(:label_user_location) %> : | -
-
- <%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %>
- <%= text_field_tag 'name', params[:name], :size => 20 %>
- <%= hidden_field_tag 'reward_type', @bid.reward_type %>
- <%= hidden_field_tag 'project_type', params[:project_type] %>
- <%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
- <% end %>
-
- |
-
<%=link_to request.host()+"/contest", :controller => 'bids', :action => 'contest' %> | -<%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller => 'bids', :action => 'contest' %> > - <%= link_to @bid.name, bid_path %> | -
<%=l(:label_contest_innovate_community)%> | +<%= l(:label_user_location) %> : | +
+
+ <%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %>
+ <%= text_field_tag 'name', params[:name], :size => 20 %>
+ <%= hidden_field_tag 'reward_type', @bid.reward_type %>
+ <%= hidden_field_tag 'project_type', params[:project_type] %>
+ <%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
+ <% end %>
+
+ |
+
<%=link_to request.host()+"/contest", :controller => 'bids', :action => 'contest' %> | +<%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller => 'bids', :action => 'contest' %> > + <%= link_to @bid.name, bid_path %> | +
<%=link_to "#{@bid.join_in_contests.count}",:controller => "bids", - :action => "show_participator" %> | -<%=link_to "#{@bid.projects.where('is_public=1').count}", :controller => 'bids', - :action => 'show_project' %> | ++ <%=link_to "#{@bid.join_in_contests.count}",:controller => "bids", + :action => "show_participator" %> + | ++ <%=link_to "#{@bid.projects.where('is_public=1').count}", :controller => 'bids', + :action => 'show_project' %> + | |||||||||||||||||||||
<%= l(:label_participator) %> | <%= l(:label_bidding_project) %> | diff --git a/app/views/layouts/base_newcontest.html.erb b/app/views/layouts/base_newcontest.html.erb index adce80d24..d8945a5dc 100644 --- a/app/views/layouts/base_newcontest.html.erb +++ b/app/views/layouts/base_newcontest.html.erb @@ -5,19 +5,17 @@ - -
<%=l(:label_contest_innovate_community)%> | -<%= l(:label_user_location) %> : | ++ <%=l(:label_contest_innovate_community)%> + | ++ <%= l(:label_user_location) %> : + |
<%= form_tag({controller: 'contests', action: 'index'}, method: :get) do %>
@@ -43,10 +44,14 @@
|
<%=link_to request.host()+"/contests", :controller=>'contests', :action=>'index' %> | ++ <%=link_to request.host()+"/contests", :controller=>'contests', :action=>'index' %> + | <%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller=>'contests', :action=>'index' %> > - <%= link_to h(truncate(@contest.name, length: 20, omission: '...')), show_contest_contest_path(@contest) %> + + <%= link_to h(truncate(@contest.name, length: 20, omission: '...')), show_contest_contest_path(@contest) %> + |
<%= link_to @contest.name, show_contest_contest_path(@contest) %> | ++ <%= link_to @contest.name, show_contest_contest_path(@contest) %> + | ||||||
- - <%= new_watcher_link(@contest, User.current) %> + + <%= new_watcher_link(@contest, User.current) unless (@contest.author.id == User.current.id) || User.current.admin? %> + | |||||||
- <%= link_to l(:label_contest_modify_settings), {:controller => 'contests', :action => 'settings', :id => @contest} %> + + <%= link_to l(:label_contest_modify_settings), {:controller => 'contests', :action => 'settings', :id => @contest} %> + | |||||||
- <%= link_to l(:label_contest_delete), {:controller => 'contests', :action => 'destroy_contest', :id => @contest}, data: { confirm: '你确定要删除该竞赛吗?' }, method: :delete %> + + <%= link_to l(:label_contest_delete), {:controller => 'contests', :action => 'destroy_contest', :id => @contest}, + data: { confirm: '你确定要删除该竞赛吗?' }, method: :delete %> + | |||||||
<%= l(:label_contest_watchers) %> | <%= l(:label_contest_work) %> | @@ -128,13 +139,22 @@
<%= l(:lable_contest_user) %>: <%= link_to(@user.name, user_path(@user))%> | ++ <%= l(:lable_contest_user) %>: + <%= link_to(@user.name, user_path(@user))%> + |
<%= l(:label_bids_reward_method) %><%= @contest.budget%> | ++ <%= l(:label_bids_reward_method) %> + <%= @contest.budget%> + |
<%= l(:label_limit_time) %> : <%= @contest.deadline%> | ++ <%= l(:label_limit_time) %> : + <%= @contest.deadline%> + |
- <%= l(:label_create_time) %>:<%= format_time(@contest.created_on) %>
+
+ <%= l(:label_create_time) %>:
+
+ <%= format_time(@contest.created_on) %>
@@ -173,7 +196,6 @@
@@ -193,22 +215,16 @@