增加了课程与竞赛的人名超链接

This commit is contained in:
baiyu 2013-11-20 08:57:37 +08:00
parent e8aa5633d8
commit 1a42cdd013
4 changed files with 4 additions and 3 deletions

View File

@ -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]

View File

@ -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 增加了学员的学号 -->

View File

@ -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"> &nbsp;

View File

@ -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'