添加超链接
已添加的超链接: 学校主页,课程信息中的学校名称 竞赛中项目列表: 参赛人 竞赛中参入竞赛tab页:参赛代表 修改作业界面教师单位不显示问题,并添加超链接 作业界面作业名称添加超链接 软件众包页面:软件众包名称 软件众包页面:关注栏下头像添加链接,参与项目栏:图片添加链接 贴吧帖子:修复 发帖回帖下方 “由xxx在XXX之前添加”中名子未链接问题
This commit is contained in:
parent
8840a11a99
commit
08ba10c32d
|
@ -2,7 +2,7 @@
|
||||||
<div style="margin-left: 20px;">
|
<div style="margin-left: 20px;">
|
||||||
<span class="portrait"><%= image_tag(url_to_avatar(@bid.author), :class => "avatar")%></span>
|
<span class="portrait"><%= image_tag(url_to_avatar(@bid.author), :class => "avatar")%></span>
|
||||||
<span class="body">
|
<span class="body">
|
||||||
<h3><%= link_to(@bid.author.lastname+@bid.author.firstname, user_path(@bid.author))%>:<%= @bid.name %></h3>
|
<h3><%= link_to(@bid.author.lastname+@bid.author.firstname, user_path(@bid.author))%>:<%= link_to(@bid.name,respond_path(@bid)) %></h3>
|
||||||
<% if @bid.reward_type.nil? or @bid.reward_type == 1%>
|
<% if @bid.reward_type.nil? or @bid.reward_type == 1%>
|
||||||
<p>
|
<p>
|
||||||
<strong><%= l(:label_bids_reward_method) %><span class="bonus"><%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %><%= @bid.budget %></span></strong>
|
<strong><%= l(:label_bids_reward_method) %><span class="bonus"><%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %><%= @bid.budget %></span></strong>
|
||||||
|
|
|
@ -76,7 +76,8 @@
|
||||||
<strong>
|
<strong>
|
||||||
<%= l(:label_contest_user) %>
|
<%= l(:label_contest_user) %>
|
||||||
<% unless c_project.user.nil? %>
|
<% unless c_project.user.nil? %>
|
||||||
<%= c_project.user.lastname %><%= c_project.user.firstname %>
|
<!-- modified by zjc 添加超链接 -->
|
||||||
|
<%= link_to c_project.user.lastname + c_project.user.firstname,user_path(c_project.user) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</strong>
|
</strong>
|
||||||
|
|
||||||
|
|
|
@ -259,7 +259,8 @@
|
||||||
<span><strong><%= l(:label_attendingcontest_time) %>
|
<span><strong><%= l(:label_attendingcontest_time) %>
|
||||||
:</strong><%= format_time c_project.created_at %></span>
|
:</strong><%= format_time c_project.created_at %></span>
|
||||||
<span style="padding-left: 240px"><strong><%= l(:label_attendingcontest_spoksman) %>
|
<span style="padding-left: 240px"><strong><%= l(:label_attendingcontest_spoksman) %>
|
||||||
:</strong><%= c_project.user.name %></span>
|
<!-- modified by zjc 添加超链接 -->
|
||||||
|
:</strong><%= link_to c_project.user.name,user_path(c_project.user) %></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="padding-left: 68px">
|
<div style="padding-left: 68px">
|
||||||
|
@ -293,7 +294,8 @@
|
||||||
<span><strong><%= l(:label_attendingcontest_time) %>
|
<span><strong><%= l(:label_attendingcontest_time) %>
|
||||||
:</strong><%= format_time c_softapplication.created_at %></span>
|
:</strong><%= format_time c_softapplication.created_at %></span>
|
||||||
<span style="padding-left: 240px"><strong><%= l(:label_attendingcontest_spoksman) %>
|
<span style="padding-left: 240px"><strong><%= l(:label_attendingcontest_spoksman) %>
|
||||||
:</strong><%= c_softapplication.softapplication.user.name %></span>
|
<!-- modified by zjc 添加超链接 -->
|
||||||
|
:</strong><%= link_to c_softapplication.softapplication.user.name,user_path(c_softapplication.softapplication.user) %></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--获奖及教师评奖-->
|
<!--获奖及教师评奖-->
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
<td>
|
<td>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="info_font" style=" word-wrap: break-word; word-break: break-all"><%= h @bid.name %></td>
|
<td class="info_font" style=" word-wrap: break-word; word-break: break-all"><%= link_to @bid.name,bid_path %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% if User.current.login? %>
|
<% if User.current.login? %>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -143,7 +143,7 @@
|
||||||
<% if @bid.watcher_users.size>0 %>
|
<% if @bid.watcher_users.size>0 %>
|
||||||
<% for user in @bid.watcher_users%>
|
<% for user in @bid.watcher_users%>
|
||||||
|
|
||||||
<%= image_tag(url_to_avatar(user), :class => "avatar", :title => user.name ) %>
|
<%= link_to image_tag(url_to_avatar(user), :class => "avatar", :title => user.name ),user_path(user) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p class="font_lighter"><%= l(:label_project_no_follow) %></p>
|
<p class="font_lighter"><%= l(:label_project_no_follow) %></p>
|
||||||
|
@ -164,8 +164,8 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-top: 5px">
|
<td style="padding-top: 5px">
|
||||||
<% if @bid.projects.size>0 %>
|
<% if @bid.projects.size>0 %>
|
||||||
<% for project in @bid.projects%>
|
<% for project in @bid.projects%>
|
||||||
<%= image_tag(url_to_avatar(project), :class => "avatar", :title => project.name) %>
|
<%= link_to image_tag(url_to_avatar(project), :class => "avatar", :title => project.name),project_path(project) %>
|
||||||
<% end%>
|
<% end%>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p class="font_lighter"><%= l(:label_no_bid_project) %></p>
|
<p class="font_lighter"><%= l(:label_no_bid_project) %></p>
|
||||||
|
|
|
@ -70,7 +70,8 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td style=" word-wrap: break-word; word-break: break-all;font-size: 16px;text-align: center">
|
<td style=" word-wrap: break-word; word-break: break-all;font-size: 16px;text-align: center">
|
||||||
<span style=" color:#ed8924">
|
<span style=" color:#ed8924">
|
||||||
<strong><%= h @bid.name %></strong>
|
<!-- modified by zjc 添加超链接 -->
|
||||||
|
<strong><%=link_to(@bid.name, respond_path(@bid)) %></strong>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -114,7 +115,8 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" style="padding-left: 8px;"><%= l(:label_teacher_work_unit) %> :</td>
|
<td valign="top" style="padding-left: 8px;"><%= l(:label_teacher_work_unit) %> :</td>
|
||||||
<td class="font_lighter_sidebar"><%= @user.user_extensions.occupation %></td>
|
<!-- modified by zjc 有@user.user_extensions.occupation改为 @user.user_extensions.school 并添加超链接 -->
|
||||||
|
<td class="font_lighter_sidebar"><%= link_to @user.user_extensions.school,options={:controller => 'welcome',:action => 'course',:school_id => @user.user_extensions.school.id}, html_options={:method => 'get'} %></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -57,7 +57,8 @@
|
||||||
</p>
|
</p>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="memo-timestamp"> <%= authoring @memo.created_at, @memo.author.name %></div>
|
<!-- modified by zjc 修正名字无链接问题 -->
|
||||||
|
<div class="memo-timestamp"> <%= authoring @memo.created_at, @memo.author %></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
@ -122,7 +123,8 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="font_lighter" style="float:right"><%= authoring reply.created_at, reply.author.name %></td>
|
<!-- modified by zjc 修正名字无链接问题 -->
|
||||||
|
<td class="font_lighter" style="float:right"><%= authoring reply.created_at, reply.author %></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
<% if(course.school == nil) %>
|
<% if(course.school == nil) %>
|
||||||
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= course.school.name.try(:gsub, /(.+)$/, '\1:') %>
|
<%= link_to course.school.name.try(:gsub, /(.+)$/, '\1:'), options={:action => 'course',:school_id => course.school.id}, html_options={:method => 'get'}%>
|
||||||
<% end %>
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
<span class='font_bolder'>
|
<span class='font_bolder'>
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
<div class='desc_item' >
|
<div class='desc_item' >
|
||||||
<span class=''>
|
<span class=''>
|
||||||
<% course = Course.find_by_extra(project.identifier) %>
|
<% course = Course.find_by_extra(project.identifier) %>
|
||||||
<%= course.school.name.try(:gsub, /(.+)$/, '\1:') %>
|
<%=link_to course.school.name.try(:gsub, /(.+)$/, '\1:'),options={:action => 'course',:school_id => course.school.id}, html_options={:method => 'get'} %>
|
||||||
</span>
|
</span>
|
||||||
<span class='font_bolder'>
|
<span class='font_bolder'>
|
||||||
<%= link_to(course.try(:teacher).try(:realname), user_path(course.teacher)) %>
|
<%= link_to(course.try(:teacher).try(:realname), user_path(course.teacher)) %>
|
||||||
|
|
Loading…
Reference in New Issue