diff options
Diffstat (limited to 'app/views/projects/commit')
-rw-r--r-- | app/views/projects/commit/_ci_menu.html.haml | 4 | ||||
-rw-r--r-- | app/views/projects/commit/_commit_box.html.haml | 18 | ||||
-rw-r--r-- | app/views/projects/commit/builds.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/commit/show.html.haml | 2 |
4 files changed, 13 insertions, 13 deletions
diff --git a/app/views/projects/commit/_ci_menu.html.haml b/app/views/projects/commit/_ci_menu.html.haml index ea33aa472a6..c95869bb99a 100644 --- a/app/views/projects/commit/_ci_menu.html.haml +++ b/app/views/projects/commit/_ci_menu.html.haml @@ -1,9 +1,9 @@ %ul.nav-links.no-top.no-bottom.commit-ci-menu = nav_link(path: 'commit#show') do = link_to namespace_project_commit_path(@project.namespace, @project, @commit.id) do - Changes + 变更 %span.badge= @diffs.count = nav_link(path: 'commit#builds') do = link_to builds_namespace_project_commit_path(@project.namespace, @project, @commit.id) do - Builds + 构建 %span.badge= @statuses.count diff --git a/app/views/projects/commit/_commit_box.html.haml b/app/views/projects/commit/_commit_box.html.haml index 71995fcc487..d0d2a45c716 100644 --- a/app/views/projects/commit/_commit_box.html.haml +++ b/app/views/projects/commit/_commit_box.html.haml @@ -7,38 +7,38 @@ .pull-left.btn-group %a.btn.btn-grouped.dropdown-toggle{ data: {toggle: :dropdown} } %i.fa.fa-download - Download as + 下载为 %span.caret %ul.dropdown-menu - unless @commit.parents.length > 1 - %li= link_to "Email Patches", namespace_project_commit_path(@project.namespace, @project, @commit, format: :patch) - %li= link_to "Plain Diff", namespace_project_commit_path(@project.namespace, @project, @commit, format: :diff) + %li= link_to "电子邮件补丁", namespace_project_commit_path(@project.namespace, @project, @commit, format: :patch) + %li= link_to "差异文件", namespace_project_commit_path(@project.namespace, @project, @commit, format: :diff) = link_to namespace_project_tree_path(@project.namespace, @project, @commit), class: "btn btn-grouped" do = icon('files-o') - Browse Files + 浏览文件 - unless @commit.has_been_reverted?(current_user) = revert_commit_link(@commit, namespace_project_commit_path(@project.namespace, @project, @commit.id)) %div %p - %span.light Commit + %span.light 提交 = link_to @commit.id, namespace_project_commit_path(@project.namespace, @project, @commit), class: "monospace" = clipboard_button(clipboard_text: @commit.id) .commit-info-row - %span.light Authored by + %span.light 作者 %strong = commit_author_link(@commit, avatar: true, size: 24) #{time_ago_with_tooltip(@commit.authored_date)} - if @commit.different_committer? .commit-info-row - %span.light Committed by + %span.light 提交者 %strong = commit_committer_link(@commit, avatar: true, size: 24) #{time_ago_with_tooltip(@commit.committed_date)} .commit-info-row - %span.cgray= pluralize(@commit.parents.count, "parent") + %span.cgray= pluralize(@commit.parents.count, "个父辈", "个父辈") - @commit.parents.each do |parent| = link_to parent.short_id, namespace_project_commit_path(@project.namespace, @project, parent), class: "monospace" @@ -46,7 +46,7 @@ .pull-right = link_to ci_status_path(@ci_commit), class: "ci-status ci-#{@ci_commit.status}" do = ci_status_icon(@ci_commit) - build: + 构建: = ci_status_label(@ci_commit) .commit-info-row.branches diff --git a/app/views/projects/commit/builds.html.haml b/app/views/projects/commit/builds.html.haml index 7118a4846c6..0675340128d 100644 --- a/app/views/projects/commit/builds.html.haml +++ b/app/views/projects/commit/builds.html.haml @@ -1,4 +1,4 @@ -- page_title "Builds", "#{@commit.title} (#{@commit.short_id})", "Commits" +- page_title "构建", "#{@commit.title} (#{@commit.short_id})", "提交" = render "projects/commits/header_title" .prepend-top-default = render "commit_box" diff --git a/app/views/projects/commit/show.html.haml b/app/views/projects/commit/show.html.haml index 21e186120c3..2ea19b63d6a 100644 --- a/app/views/projects/commit/show.html.haml +++ b/app/views/projects/commit/show.html.haml @@ -1,4 +1,4 @@ -- page_title "#{@commit.title} (#{@commit.short_id})", "Commits" +- page_title "#{@commit.title} (#{@commit.short_id})", "提交" - page_description @commit.description = render "projects/commits/header_title" |