修复作业显示界面,提交作业按钮不显示的问题
This commit is contained in:
parent
f4aa817f42
commit
7702b746c6
|
@ -211,7 +211,7 @@
|
||||||
<li>
|
<li>
|
||||||
<%= link_to l(:label_question_student), {:controller => 'bids', :action => 'show'}, :class => link_class(:respond) %>
|
<%= link_to l(:label_question_student), {:controller => 'bids', :action => 'show'}, :class => link_class(:respond) %>
|
||||||
</li>
|
</li>
|
||||||
<% if User.current.member_of? @bid.courses.first %>
|
<% if User.current.member_of_course? @bid.courses.first %>
|
||||||
<li>
|
<li>
|
||||||
<% if User.current.logged? && @bid.courses.first && (!Member.where('user_id = ? and course_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and course_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ? or id =?', 5, 10, 7)).size >0) %>
|
<% if User.current.logged? && @bid.courses.first && (!Member.where('user_id = ? and course_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and course_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ? or id =?', 5, 10, 7)).size >0) %>
|
||||||
<%= link_to l(:label_homework_commit), {:controller => 'bids', :action => 'show_course'}, :class => link_class(:course) %>
|
<%= link_to l(:label_homework_commit), {:controller => 'bids', :action => 'show_course'}, :class => link_class(:course) %>
|
||||||
|
|
74
db/schema.rb
74
db/schema.rb
|
@ -175,58 +175,6 @@ ActiveRecord::Schema.define(:version => 20140618155324) do
|
||||||
|
|
||||||
add_index "changesets_issues", ["changeset_id", "issue_id"], :name => "changesets_issues_ids", :unique => true
|
add_index "changesets_issues", ["changeset_id", "issue_id"], :name => "changesets_issues_ids", :unique => true
|
||||||
|
|
||||||
create_table "code_review_assignments", :force => true do |t|
|
|
||||||
t.integer "issue_id"
|
|
||||||
t.integer "change_id"
|
|
||||||
t.integer "attachment_id"
|
|
||||||
t.string "file_path"
|
|
||||||
t.string "rev"
|
|
||||||
t.string "rev_to"
|
|
||||||
t.string "action_type"
|
|
||||||
t.integer "changeset_id"
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "code_review_project_settings", :force => true do |t|
|
|
||||||
t.integer "project_id"
|
|
||||||
t.integer "tracker_id"
|
|
||||||
t.datetime "created_at"
|
|
||||||
t.datetime "updated_at"
|
|
||||||
t.integer "updated_by"
|
|
||||||
t.boolean "hide_code_review_tab", :default => false
|
|
||||||
t.integer "auto_relation", :default => 1
|
|
||||||
t.integer "assignment_tracker_id"
|
|
||||||
t.text "auto_assign"
|
|
||||||
t.integer "lock_version", :default => 0, :null => false
|
|
||||||
t.boolean "tracker_in_review_dialog", :default => false
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "code_review_user_settings", :force => true do |t|
|
|
||||||
t.integer "user_id", :default => 0, :null => false
|
|
||||||
t.integer "mail_notification", :default => 0, :null => false
|
|
||||||
t.datetime "created_at"
|
|
||||||
t.datetime "updated_at"
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "code_reviews", :force => true do |t|
|
|
||||||
t.integer "project_id"
|
|
||||||
t.integer "change_id"
|
|
||||||
t.datetime "created_at"
|
|
||||||
t.datetime "updated_at"
|
|
||||||
t.integer "line"
|
|
||||||
t.integer "updated_by_id"
|
|
||||||
t.integer "lock_version", :default => 0, :null => false
|
|
||||||
t.integer "status_changed_from"
|
|
||||||
t.integer "status_changed_to"
|
|
||||||
t.integer "issue_id"
|
|
||||||
t.string "action_type"
|
|
||||||
t.string "file_path"
|
|
||||||
t.string "rev"
|
|
||||||
t.string "rev_to"
|
|
||||||
t.integer "attachment_id"
|
|
||||||
t.integer "file_count", :default => 0, :null => false
|
|
||||||
t.boolean "diff_all"
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "comments", :force => true do |t|
|
create_table "comments", :force => true do |t|
|
||||||
t.string "commented_type", :limit => 30, :default => "", :null => false
|
t.string "commented_type", :limit => 30, :default => "", :null => false
|
||||||
t.integer "commented_id", :default => 0, :null => false
|
t.integer "commented_id", :default => 0, :null => false
|
||||||
|
@ -793,20 +741,20 @@ ActiveRecord::Schema.define(:version => 20140618155324) do
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "relative_memos", :force => true do |t|
|
create_table "relative_memos", :force => true do |t|
|
||||||
t.integer "osp_id"
|
t.integer "osp_id", :null => false
|
||||||
t.integer "parent_id"
|
t.integer "parent_id"
|
||||||
t.string "subject", :null => false
|
t.string "subject", :null => false
|
||||||
t.text "content", :limit => 16777215, :null => false
|
t.text "content", :null => false
|
||||||
t.integer "author_id"
|
t.integer "author_id"
|
||||||
t.integer "replies_count", :default => 0
|
t.integer "replies_count", :default => 0
|
||||||
t.integer "last_reply_id"
|
t.integer "last_reply_id"
|
||||||
t.boolean "lock", :default => false
|
t.boolean "lock", :default => false
|
||||||
t.boolean "sticky", :default => false
|
t.boolean "sticky", :default => false
|
||||||
t.boolean "is_quote", :default => false
|
t.boolean "is_quote", :default => false
|
||||||
t.datetime "created_at", :null => false
|
t.datetime "created_at", :null => false
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
t.integer "viewed_count_crawl", :default => 0
|
t.integer "viewed_count_crawl", :default => 0
|
||||||
t.integer "viewed_count_local", :default => 0
|
t.integer "viewed_count_local", :default => 0
|
||||||
t.string "url"
|
t.string "url"
|
||||||
t.string "username"
|
t.string "username"
|
||||||
t.string "userhomeurl"
|
t.string "userhomeurl"
|
||||||
|
|
Loading…
Reference in New Issue