From e7344b6540da7ba05d9aa37f8eea283cf25d9bca Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 27 Sep 2016 09:13:40 +0800 Subject: [PATCH 01/18] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E6=95=B0=E4=B8=80=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/_base_project_top.html.erb | 3 ++- app/views/layouts/base_projects.html.erb | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/_base_project_top.html.erb b/app/views/layouts/_base_project_top.html.erb index 820a004de..3b4cfa6e3 100644 --- a/app/views/layouts/_base_project_top.html.erb +++ b/app/views/layouts/_base_project_top.html.erb @@ -11,7 +11,8 @@ <% end %> - + <%# 更新访问数,刷新的时候更新访问次数 %> + <% update_visiti_count @project %>

<%= l(:label_project_ivite_code)%>
<%= (User.current.member_of?(@project) || User.current.admin?) ? @project.invite_code : "******" %>

diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 969db6961..b0de79d7c 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -49,8 +49,7 @@
<%= render :partial => 'layouts/base_project_top' %>
- <%# 更新访问数,刷新的时候更新访问次数 %> - <% update_visiti_count @project %> +