diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index b0088d44..c93796a0 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -214,7 +214,7 @@ class AccountController < ApplicationController content = "

[#{params[:question_kind]}]

" + "

问题页面网址:#{params[:url]}

" + params[:description] PrivateMessage.create(:user_id => User.current.id, :target_id => 1, :sender_id => User.current.id, :receiver_id => 1, :content => content, :send_time => Time.now, :status => 1) PrivateMessage.create(:user_id => 1, :target_id => User.current.id, :sender_id => User.current.id, :receiver_id => 1, :content => content, :send_time => Time.now, :status => 0) - redirect_to message_detail_user_path(User.current, :user_id => 1) + redirect_to "/messages/#{User.current.login}/message_detail?target_ids=1" end # 合作伙伴 diff --git a/app/views/managements/evaluate_simple.html.erb b/app/views/managements/evaluate_simple.html.erb index 6d05aedf..30e8cd39 100644 --- a/app/views/managements/evaluate_simple.html.erb +++ b/app/views/managements/evaluate_simple.html.erb @@ -36,7 +36,8 @@ <%= record.front_js %> <%= record.test_cases %> <%= format_time record.created_at %> - <%= record.shixun.try(:exec_time) %> + <% challenge = Game.find(record.game_id).challenge %> + <%= challenge.try(:exec_time) %> <%= record.shixun.try(:identifier) %> <%= link_to record.shixun.try(:name), task_path(record.game), :target => "_blank", :title => "#{record.shixun.try(:name)}" %> diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index 1711f17a..31e6d8db 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -526,9 +526,9 @@ class NewHeader extends Component { } - {/*
  • +
  • 加入项目 -
  • */} +