From 165c392f31c3ee0908c6abbde8de50f8011dba72 Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Fri, 8 Nov 2013 10:29:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=84=E4=B8=AA=E5=88=97=E8=A1=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=BD=93=E5=89=8D=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/bids/contest.html.erb | 60 ++++++++-------- app/views/bids/index.html.erb | 96 ++++++++++++------------- app/views/layouts/base_bids.html.erb | 2 +- app/views/layouts/base_courses.html.erb | 2 +- public/stylesheets/application.css | 9 ++- 5 files changed, 83 insertions(+), 86 deletions(-) diff --git a/app/views/bids/contest.html.erb b/app/views/bids/contest.html.erb index 34f3e71eb..501cefbb5 100644 --- a/app/views/bids/contest.html.erb +++ b/app/views/bids/contest.html.erb @@ -1,37 +1,37 @@ -<%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %> -
- + +
+ <%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %> +
- - + + - - + -
- <%= l(:label_contest_list) %> - <% if User.current.logged? %> - - - <% if User.current.user_extensions.identity == 0 %> + <%= l(:label_contest_innovate) %>当前位置 : + <% if User.current.logged? %> + <% unless User.current.user_extensions.identity == 1 %> <%= link_to(l(:label_newtype_contest), {:controller => 'bids', :action => 'new_contest'}, :class => 'icon icon-add') %> - <% end %> - - - <% end %> - +
-
-<%end%> - -<% if User.current.logged? %> - -<% end %> + + + + + + <%= link_to "forge.trustie.net/contest", :controller => 'bids', :action => 'index' %> + <%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller => 'bids', :action => 'contest' %> + + + <% end %> + + <%= sort_contest(@s_state)%> diff --git a/app/views/bids/index.html.erb b/app/views/bids/index.html.erb index 52ee990ca..5b7897c3f 100644 --- a/app/views/bids/index.html.erb +++ b/app/views/bids/index.html.erb @@ -1,61 +1,53 @@ -<%= form_tag(calls_path, :method => :get) do %> -
- + +
+ <%= form_tag(calls_path, :method => :get) do %> +
- - + + - - + + + + + + +
- <% if @project_type == '1' %> - <%= l(:label_bids_task_list) %> - <% else %> - <%= l(:label_call_list)%> - <% end %><% if User.current.logged? %> - - - <% unless @project_type == '1' %> + <%= l(:label_requirement_enterprise ) %>当前位置 : + <% if User.current.logged? %> <%= link_to(l(:label_new_call), {:controller => 'bids', :action => 'new_bid'}, :class => 'icon icon-add') %> - <% end %> - - - <% end %> - + +
<%= link_to "forge.trustie.net/calls", :controller => 'bids', :action => 'index' %> <%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_requirement_enterprise), :controller => 'bids', :action => 'index' %>
+ <% end %> +
+ + - <%= hidden_field_tag 'reward_type', params[:reward_type] %> - <%= hidden_field_tag 'project_type', params[:project_type] %> - - <%= submit_tag l(:label_search), :class => "enterprise", :name => nil %> - - - - -<%end%> -<% if User.current.logged? %> - -<% end %> + <%= sort_bid(@s_state, @project_type)%> -<%= sort_bid(@s_state, @project_type)%> + - +
  • + <%= link_to l(:label_sort_by_active), calls_path(:bid_sort_type => '1') %> +
  • + + -
    - <%= render :partial => 'bid_show', :locals => {:bids => @bids, :bid_pages => @bid_pages} %> -
    +
    + <%= render :partial => 'bid_show', :locals => {:bids => @bids, :bid_pages => @bid_pages} %> +
    diff --git a/app/views/layouts/base_bids.html.erb b/app/views/layouts/base_bids.html.erb index 1b1f22eb2..2cd973009 100644 --- a/app/views/layouts/base_bids.html.erb +++ b/app/views/layouts/base_bids.html.erb @@ -28,7 +28,7 @@ <%=render :partial => 'layouts/base_header'%> <% end %> -
    +
    diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb index 679910e14..64afdc8b2 100644 --- a/app/views/layouts/base_courses.html.erb +++ b/app/views/layouts/base_courses.html.erb @@ -46,7 +46,7 @@
    - +