@@ -34,9 +34,9 @@
<%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %>
- <%= text_field_tag 'name', params[:name], :size => 20 %>
+ <%= text_field_tag 'name', params[:name], :size => 20 %>
<%= hidden_field_tag 'reward_type', @bid.reward_type %>
- <%= hidden_field_tag 'project_type', params[:project_type] %>
+ <%= hidden_field_tag 'project_type', params[:project_type] %>
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
<% end %>
@@ -44,7 +44,7 @@
|
<%=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 l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller => 'bids', :action => 'contest' %> >
<%= link_to @bid.name, bid_path %> |
@@ -58,13 +58,13 @@
<%= image_tag(url_to_avatar(@user), :class => "avatar2") %>
- |
+
<%= h @bid.name %> |
-
- <% if User.current.login? %>
+
+ <% if User.current.login? %>
<%= join_in_contest(@bid, User.current)%>
@@ -72,27 +72,27 @@
|
<% end %>
-
+
<% if User.current.logged? %>
<% if @bid.author.id == User.current.id %>
<%= link_to l(:label_contest_modify_settings), {:controller => 'bids', :action => 'settings', :id => @bid} %>
- <% end %>
+ <% end %>
<% end %>
|
-
+
-
- <%=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) %> |
+ <%= l(:label_participator) %> |
+ <%= l(:label_bidding_project) %> |
@@ -104,8 +104,8 @@
<%= l(:lable_contest_user) %><%= link_to(@user.name, user_path(@user))%> |
-
- <%= l(:label_bids_reward_method) %><%= @bid.budget%> |
+
+ <%= l(:label_bids_reward_method) %><%= @bid.budget%> |
<%= l(:label_limit_time) %> : <%= @bid.deadline%> |
@@ -138,9 +138,9 @@
-
+
-
+ |
<%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"}%>
|
@@ -160,7 +160,7 @@
<%= show_bid_fans_picture(@bid)%>
|
-
+
@@ -179,14 +179,14 @@
<%= show_bid_project(@bid) %>
|
-
+
-
+
@@ -207,14 +207,14 @@
-
+
<% if display_main_menu?(@bid) %>
<%= render_menu :bid_menu %>
<% end %>
-
+
<%= yield %>
<%= call_hook :view_layouts_base_content %>
diff --git a/app/views/layouts/base_newcontest.html.erb b/app/views/layouts/base_newcontest.html.erb
index 9dfb4a5dd..3ab2a10fc 100644
--- a/app/views/layouts/base_newcontest.html.erb
+++ b/app/views/layouts/base_newcontest.html.erb
@@ -17,39 +17,39 @@
<%= javascript_heads %>
<%= heads_for_theme %>
<%= call_hook :view_layouts_base_html_head %>
-
+
<%= yield :header_tags -%>
-
- <%=render :partial => 'layouts/base_header'%>
+
+ <%=render :partial => 'layouts/base_header'%>
-
+
-
-
- <%=l(:label_contest_innovate_community)%> |
- <%= l(:label_user_location) %> : |
-
-
- <%= form_tag({controller: 'contests', action: 'index'}, method: :get) do %>
- <%= text_field_tag 'name', params[:name], :size => 20 %>
- <%= hidden_field_tag 'project_type', params[:project_type] %>
- <%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
- <% end %>
-
- |
-
-
- <%=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 @contest.name, show_contest_contest_path(@contest) %>
- |
-
-
+
+
+ <%=l(:label_contest_innovate_community)%> |
+ <%= l(:label_user_location) %> : |
+
+
+ <%= form_tag({controller: 'contests', action: 'index'}, method: :get) do %>
+ <%= text_field_tag 'name', params[:name], :size => 20 %>
+ <%= hidden_field_tag 'project_type', params[:project_type] %>
+ <%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
+ <% end %>
+
+ |
+
+
+ <%=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) %>
+ |
+
+