增加了课程与竞赛的人名超链接
This commit is contained in:
parent
e8aa5633d8
commit
1a42cdd013
|
@ -608,6 +608,7 @@ class BidsController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
# added by bai
|
||||
def update_contest
|
||||
@bid = Bid.find(params[:id])
|
||||
@bid.name = params[:bid][:name]
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
:title => "#{user.show_name}" %></td>
|
||||
<td><table width="580px" border="0">
|
||||
<tr>
|
||||
<td colspan="2" valign="top"><strong><%= content_tag "div", link_to_user(user.show_name), :class => "project_avatar_name" ,
|
||||
<td colspan="2" valign="top"><strong><%= content_tag "div", link_to(user.show_name, user_path(user)), :class => "project_avatar_name" ,
|
||||
:title => "#{user.show_name}" %>
|
||||
|
||||
<!-- added by bai 增加了学员的学号 -->
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<%= content_tag "p", "#{format_date(member.created_on)}#{l(:label_member_since)}", :class => "float_right member_since" %>
|
||||
<% end %>
|
||||
<%= member.user.nil? ? '' : (image_tag(url_to_avatar(member.user), :class => 'avatar')) %>
|
||||
<%= content_tag "div", link_to_user(member.user.show_name), :class => "nomargin avatar_name" %>
|
||||
<%= content_tag "div", link_to(member.user.show_name, user_path(member.user)), :class => "nomargin avatar_name" %>
|
||||
<%= l(:label_bidding_user_studentcode) %> :<%= member.user.user_extensions.student_id%> <!-- added by bai 加学号 -->
|
||||
<% if @project.project_type == 1 %>
|
||||
<div class ="clear avatar_name">
|
||||
|
|
|
@ -475,7 +475,7 @@ RedmineApp::Application.routes.draw do
|
|||
delete 'calls/:id/join_in_contest', :to => 'bids#unjoin_in_contest'
|
||||
match 'calls/:id/show_participator', :to => 'bids#show_participator' #bai
|
||||
match 'calls/:id/update_contest', :to => 'bids#update_contest' #bai
|
||||
match 'calls/:id/settings', :to => 'bids#settings'
|
||||
match 'calls/:id/settings', :to => 'bids#settings' #bai
|
||||
|
||||
delete 'attachment/:id', :to => 'attachments#delete_homework'
|
||||
match 'new_join', :to => 'projects#new_join', :as => 'try_join'
|
||||
|
|
Loading…
Reference in New Issue