- <%=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) %>
+
|
@@ -61,17 +66,19 @@
<%= image_tag(url_to_avatar(@user), :class => "avatar2") %>
|
-
- <%= link_to @contest.name, show_contest_contest_path(@contest) %> |
+
+ <%= link_to @contest.name, show_contest_contest_path(@contest) %>
+ |
<% if User.current.login? %>
-
- <%= new_watcher_link(@contest, User.current) %>
+
+ <%= new_watcher_link(@contest, User.current) unless (@contest.author.id == User.current.id) || User.current.admin? %>
+
|
<% end %>
@@ -80,12 +87,17 @@
<% if (@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 %>
+
|
<% end %>
@@ -116,7 +128,6 @@
-
<%= 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%>
+ |
@@ -156,7 +176,10 @@
<% end %>
- <%= l(:label_create_time) %>:<%= format_time(@contest.created_on) %>
+
+ <%= l(:label_create_time) %>:
+
+ <%= format_time(@contest.created_on) %>
@@ -173,7 +196,6 @@
-
|