From 03c2948a7ccfab161cf83ef9e716592db1cf37bf Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 22 Oct 2015 16:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=86=85=E5=AE=B9=E5=AF=B9?= =?UTF-8?q?=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/repositories/diff.html.erb | 5 ++++- app/views/repositories/entry.html.erb | 2 +- config/locales/zh.yml | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/repositories/diff.html.erb b/app/views/repositories/diff.html.erb index a3afebfff..4e40bd5e8 100644 --- a/app/views/repositories/diff.html.erb +++ b/app/views/repositories/diff.html.erb @@ -1,4 +1,7 @@ -

<%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %>

+
+

<%= render :partial => 'breadcrumbs', :locals => {:path => @path, :kind => 'dir', :revision => @rev} %>

+
+

<%= l(:label_revision_path) %> :<%=h @path %>

<%= form_tag({:action => 'diff', :id => @project, diff --git a/app/views/repositories/entry.html.erb b/app/views/repositories/entry.html.erb index 00eb66638..bb2fa6dae 100644 --- a/app/views/repositories/entry.html.erb +++ b/app/views/repositories/entry.html.erb @@ -4,7 +4,7 @@ <%= render :partial => 'navigation' %> -

<%= @path %>

+

<%= l(:label_revision_path) %> :<%= @path %>

<%= render :partial => 'link_to_functions' %> diff --git a/config/locales/zh.yml b/config/locales/zh.yml index f53389969..a7274c3c2 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -675,6 +675,7 @@ zh: label_branch: 分支 label_tag: 标签 label_revision: 修订 + label_revision_path: 当前路径 label_revision_plural: 修订 lable_revision_code_count: 代码量 label_revision_commit_count: 提交次数