From 12efc107597ecca5f7f0cd9a5d325c436cba0b6c Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 14 Apr 2016 10:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=9B=B2=E7=BA=BF=20=20?= =?UTF-8?q?=E6=80=BB=E5=8F=98=E6=9B=B4=E4=B8=BA+?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_projects.html.erb | 2 + app/views/repositories/stats.html.erb | 51 ++++-------------------- 2 files changed, 10 insertions(+), 43 deletions(-) diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 4ce35802d..568c424e5 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -72,6 +72,8 @@ <% end %>
+ <%# 更新访问数 %> + <% flag = true %>
<% if @project.project_type == 0 %> <% unless static_project_score(@project.project_score) == 0 %> diff --git a/app/views/repositories/stats.html.erb b/app/views/repositories/stats.html.erb index 1511f09a0..ac19310f6 100644 --- a/app/views/repositories/stats.html.erb +++ b/app/views/repositories/stats.html.erb @@ -10,14 +10,9 @@
-
删除 是版本库的提交次数, 显示为橘红色。

-
变更 是对版本库中文件的修改次数, 显示为蓝色。
-
-
-
- +
- - - - - - - - - - - - - - - - -
-

总情况

- <% @static_total_per_user.each do |commit| %> -

总提交次数

- <%= commit.uname %>:<%= commit.commits_num %> -

总提交代码量

- <%= commit.uname %>:总提交次数<%= commit.commits_num %> - <%= commit.add %> - <%= commit.del %> - <% end %> -
-
- - -

<%= link_to l(:button_back), :action => 'show', :id => @project %>

<% html_title(l(:label_repository), l(:label_statistics)) -%>