diff --git a/app/controllers/contests_controller.rb b/app/controllers/contests_controller.rb index 39e9a2053..f65686628 100644 --- a/app/controllers/contests_controller.rb +++ b/app/controllers/contests_controller.rb @@ -3,8 +3,8 @@ class ContestsController < ApplicationController menu_item :respond menu_item :project, :only => :show_project - menu_item :application, :only => :show_application - before_filter :find_contest, :only => [:show_contest, :show_project, :show_application, :create,:destroy,:more,:back,:add,:new,:show_results, :set_reward, + menu_item :application, :only => :show_softapplication + before_filter :find_contest, :only => [:show_contest, :show_project, :show_softapplication, :create,:destroy,:more,:back,:add,:new,:show_results, :set_reward, :show_contest_project, :show_contest_user, :join_in_contest, :unjoin_in_contest, :new_join,:show_participator, :settings] # added by fq @@ -218,7 +218,7 @@ class ContestsController < ApplicationController end ############ ##显示参赛的应用 - def show_application + def show_softapplication respond_to do |format| format.html { render :layout => 'base_newcontest' diff --git a/app/views/contests/_application_list.html.erb b/app/views/contests/_application_list.html.erb deleted file mode 100644 index 4d79e1251..000000000 --- a/app/views/contests/_application_list.html.erb +++ /dev/null @@ -1,15 +0,0 @@ - -<%= render_flash_messages %> - - - - <% if User.current.logged? %> - - <% end %> -
<%= l(:label_bidding_project) %> -
- <%= toggle_link l(:button_contesting_as_application), 'put-bid-form' %> -
-
- -<%#= render :partial=> "list_projects" %> diff --git a/app/views/contests/show_application.html.erb b/app/views/contests/show_application.html.erb deleted file mode 100644 index da06a7cb0..000000000 --- a/app/views/contests/show_application.html.erb +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - <% if User.current.logged? %> - - - - <% end %> -
- <%= render :partial => 'application_list' %> -
- diff --git a/app/views/layouts/base_newcontest.html.erb b/app/views/layouts/base_newcontest.html.erb index 1b3a99966..f41969ea4 100644 --- a/app/views/layouts/base_newcontest.html.erb +++ b/app/views/layouts/base_newcontest.html.erb @@ -92,7 +92,7 @@ <%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_project' %> - <%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_application' %> + <%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_softapplication' %> <%= l(:label_participate) %> diff --git a/app/views/welcome/contest.html.erb b/app/views/welcome/contest.html.erb index 222ff7dc6..cbc035b42 100644 --- a/app/views/welcome/contest.html.erb +++ b/app/views/welcome/contest.html.erb @@ -112,7 +112,7 @@
-

热门项目

+

热门项目

<%= link_to "更多>>", { :controller => 'projects', :action => 'index', :project_type => 0, :host => Setting.project_domain}, :target => "_blank" %>