#1958 关注有用户0个后边取消冒号
This commit is contained in:
parent
5bba54432d
commit
33e9a3e326
|
@ -1,47 +1,63 @@
|
||||||
<h3><%= l(:label_user_watcher)%></h3>
|
<h3><%= l(:label_user_watcher)%></h3>
|
||||||
<div class="inf_user_image">
|
<div class="inf_user_image">
|
||||||
<% for user in User.watched_by(@user.id) %>
|
<% for user in User.watched_by(@user.id) %>
|
||||||
<ul class="list_watch"><li>
|
<ul class="list_watch">
|
||||||
<table width="660px" border="0" align="center">
|
<li>
|
||||||
<tr>
|
<table width="660px" border="0" align="center">
|
||||||
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :title => "#{user.name}" %></td>
|
<tr>
|
||||||
<td><table width="580px" border="0">
|
<td colspan="2" valign="top" width="50" >
|
||||||
<tr> <!-- modified by bai 增加了关注人的名字全称-->
|
<%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :title => "#{user.name}" %>
|
||||||
<td colspan="2" valign="top"><strong><%= content_tag "div", link_to(user.name,user_path(user)), :class => "project_avatar_name" %></strong>
|
</td>
|
||||||
</td>
|
<td>
|
||||||
</tr>
|
<table width="580px" border="0">
|
||||||
<tr> <!-- modified by bai 区别了“关注”里个人参与的项目与课程-->
|
<tr> <!-- modified by bai 增加了关注人的名字全称-->
|
||||||
<td colspan="2" width="580px" ><p class="font_description">
|
<td colspan="2" valign="top">
|
||||||
<%# unless user.memberships.empty? %>
|
<strong>
|
||||||
<% cond = Project.visible_condition(User.current) + " AND projects.project_type <> 1" %>
|
<%= content_tag "div", link_to(user.name,user_path(user)), :class => "project_avatar_name" %>
|
||||||
<% memberships = user.memberships.all(:conditions => cond) %>
|
</strong>
|
||||||
<%= l(:label_x_contribute_to, :count => memberships.count) %>
|
</td>
|
||||||
<% for member in memberships %>
|
</tr>
|
||||||
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
|
<tr> <!-- modified by bai 区别了“关注”里个人参与的项目与课程-->
|
||||||
<% end %>
|
<td colspan="2" width="580px" >
|
||||||
<%# end %>
|
<p class="font_description">
|
||||||
</p>
|
<%# unless user.memberships.empty? %>
|
||||||
<p class="font_description">
|
<% cond = Project.visible_condition(User.current) + " AND projects.project_type <> 1" %>
|
||||||
<%# unless user.memberships.empty? %>
|
<% memberships = user.memberships.all(:conditions => cond) %>
|
||||||
<% user_courses = user_courses_list(user) %>
|
<%= l(:label_x_contribute_to, :count => memberships.count) %>
|
||||||
<%= l(:label_x_course_contribute_to, :count => user_courses.count) %>
|
<%= ":" unless memberships.empty? %>
|
||||||
<% for course in user_courses %>
|
<% for member in memberships %>
|
||||||
<%# if course.name != nil %>
|
<%= link_to_project(member.project) %>
|
||||||
<%= link_to course.name,{:controller => 'courses',:action => 'show',id:course.id, host: Setting.course_domain} %><%= (user_courses.last == course) ? '' : ',' %>
|
<%= (user.memberships.last == member) ? '' : ',' %>
|
||||||
<%# end %>
|
<% end %>
|
||||||
<% end %>
|
<%# end %>
|
||||||
<%# end %>
|
</p>
|
||||||
</p>
|
<p class="font_description">
|
||||||
</td>
|
<%# unless user.memberships.empty? %>
|
||||||
</tr>
|
<% user_courses = user_courses_list(user) %>
|
||||||
<!-- end -->
|
<%= l(:label_x_course_contribute_to, :count => user_courses.count) %>
|
||||||
|
<%= ":" unless user_courses.empty? %>
|
||||||
|
<% for course in user_courses %>
|
||||||
|
<%# if course.name != nil %>
|
||||||
|
<%= link_to course.name,{:controller => 'courses',:action => 'show',id:course.id, host: Setting.course_domain} %><%= (user_courses.last == course) ? '' : ',' %>
|
||||||
|
<%# end %>
|
||||||
|
<% end %>
|
||||||
|
<%# end %>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- end -->
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td width="200" align="right" class="font_lighter"><%= l(:label_user_joinin) %><%= format_date(user.created_on) %>
|
<td width="200" align="right" class="font_lighter">
|
||||||
</td>
|
<%= l(:label_user_joinin) %>
|
||||||
</tr>
|
<%= format_date(user.created_on) %>
|
||||||
</table></td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table></li></ul>
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
|
@ -1420,9 +1420,9 @@ zh:
|
||||||
label_contribute_to: 参与了 %{project_count} 个项目:
|
label_contribute_to: 参与了 %{project_count} 个项目:
|
||||||
#modify by men
|
#modify by men
|
||||||
label_x_contribute_to:
|
label_x_contribute_to:
|
||||||
zero: 参与了 %{count} 个项目:
|
zero: 参与了 %{count} 个项目
|
||||||
one: 参与了 %{count} 个项目:
|
one: 参与了 %{count} 个项目
|
||||||
other: 参与了 %{count} 个项目:
|
other: 参与了 %{count} 个项目
|
||||||
#end
|
#end
|
||||||
label_total_commit: 共%{total_commit}次提交
|
label_total_commit: 共%{total_commit}次提交
|
||||||
label_question_number: 第%{question_number}题:
|
label_question_number: 第%{question_number}题:
|
||||||
|
@ -1809,9 +1809,9 @@ zh:
|
||||||
|
|
||||||
label_course_contribute_to: 参与了 %{project_count} 个项目:
|
label_course_contribute_to: 参与了 %{project_count} 个项目:
|
||||||
label_x_course_contribute_to:
|
label_x_course_contribute_to:
|
||||||
zero: "参与了 %{count} 个课程:"
|
zero: "参与了 %{count} 个课程"
|
||||||
one: "参与了 %{count} 个课程:"
|
one: "参与了 %{count} 个课程"
|
||||||
other: "参与了 %{count} 个课程:"
|
other: "参与了 %{count} 个课程"
|
||||||
|
|
||||||
label_join_contest: 加入竞赛
|
label_join_contest: 加入竞赛
|
||||||
label_exit_contest: 退出竞赛
|
label_exit_contest: 退出竞赛
|
||||||
|
|
Loading…
Reference in New Issue