diff --git a/app/controllers/bids_controller.rb b/app/controllers/bids_controller.rb index 5fc89326c..87879f242 100644 --- a/app/controllers/bids_controller.rb +++ b/app/controllers/bids_controller.rb @@ -3,6 +3,7 @@ class BidsController < ApplicationController #Added by young menu_item l(:label_homework), :only => [:edit, :udpate] menu_item :respond + menu_item :course, :only => :show_courseEx menu_item :project, :only => [:show_project,:show_results, :new_submit_homework] menu_item :homework_respond, :only => :homework_respond menu_item :homework_statistics, :only => :homework_statistics diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index 1af01f26f..fd95f8c32 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -216,7 +216,7 @@ <% if User.current.logged? && course && (!Member.where('user_id = ? and course_id = ?', User.current.id, course.id).first.nil? && (Member.where('user_id = ? and course_id = ?', User.current.id, course.id).first.roles&Role.where('id = ? or id = ? or id =?', 5, 10, 7)).size >0) %> <%= link_to l(:label_homework_commit), course_for_bid_path, :class => link_class(:course) %> <% else %> - <%#= link_to l(:label_homework_info), course_for_bid_path, :class => link_class(:course) %> + <%= link_to l(:label_homework_info), course_for_bid_path, :class => link_class(:course) %> <% end %> <% end %>