add the link of project contributers&&followers count number

This commit is contained in:
xianbo 2013-10-15 17:10:37 +08:00
parent 17a4f14f2a
commit 5a234e6fb2
3 changed files with 7 additions and 5 deletions

View File

@ -54,7 +54,7 @@
</div> </div>
<%if User.current.logged?%> <%if User.current.logged?%>
<% if @course.teacher.id == User.current.id%> <% if @course.teacher.id == User.current.id%>
<%= link_to l(:label_course_settings), {:controller => 'projects', :action => 'settings', :id => @project} %> </br><%= link_to l(:label_course_modify_settings), {:controller => 'projects', :action => 'settings', :id => @project} %>
<% else %> <% else %>
<%= join_in_course(@project, User.current)%></div> <%= join_in_course(@project, User.current)%></div>

View File

@ -18,10 +18,12 @@
<div class="information"> <div class="information">
<p class="stats"> <p class="stats">
<%= content_tag('span', @project.watcher_users.count, :class => "info") %><%= content_tag('span', l(:label_x_follow_people,:count =>@project.watcher_users.count)) %> <strong><span style="font-size: 17px;margin-left: 145px"><%= link_to @project.watcher_users.count, project_watcherlist_path(project)%></span></strong>
<%= content_tag('span', l(:label_x_follow_people,:count =>@project.watcher_users.count)) %>
</p> </p>
<p class="stats"> <p class="stats">
<%= content_tag('span', "#{@project.users.count}", :class => "info") %><%= content_tag('span', l(:label_x_current_contributors, :count => @project.users.count)) %> <strong><span style="font-size: 17px;margin-left: 145px"><%= link_to "#{@project.members.count}", project_member_path(@project)%></span></strong>
<%= content_tag('span', l(:label_x_current_contributors, :count => @project.users.count)) %>
</p> </p>
<p class="stats"> <p class="stats">
<%= content_tag('span', "#{(@project.repository.nil? || @project.repository.changesets[0].nil?) ? '0' : distance_of_time_in_words(Time.now, @project.repository.changesets[0].committed_on)}", :class => "info") %><%= content_tag('span', l(:label_since_last_commits)) %> <%= content_tag('span', "#{(@project.repository.nil? || @project.repository.changesets[0].nil?) ? '0' : distance_of_time_in_words(Time.now, @project.repository.changesets[0].committed_on)}", :class => "info") %><%= content_tag('span', l(:label_since_last_commits)) %>

View File

@ -1575,8 +1575,8 @@ zh:
label_excellence_reward: 优秀奖 label_excellence_reward: 优秀奖
label_comfort_reward: 入围奖 label_comfort_reward: 入围奖
label_course_settings: 课程设置 label_course_settings: 课程设置
label_course_modify_settings: 修改课程属性
#added by nie #aded by nie
label_x_task: label_x_task:
zero: 份作业 zero: 份作业
one: 份作业 one: 份作业