summaryrefslogtreecommitdiff
path: root/app/views/projects/branches/_branch.html.haml
diff options
context:
space:
mode:
authorLarry Li <larryli@qq.com>2016-03-24 06:21:03 +0800
committerLarry Li <larryli@qq.com>2016-03-24 06:21:03 +0800
commitb0a44cb0c867b2eec84ba8bb4ac303d829848195 (patch)
tree70e71494ecbe50706ba756c54ac3d6e440dcd7ae /app/views/projects/branches/_branch.html.haml
parent3192db707183244bb21af382fe709c963ae96348 (diff)
downloadgitlab-ce-8.6.0.zh0.tar.gz
导入上一版本 8.5 汉化v8.6.0.zh0
Signed-off-by: Larry Li <larryli@qq.com>
Diffstat (limited to 'app/views/projects/branches/_branch.html.haml')
-rw-r--r--app/views/projects/branches/_branch.html.haml20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml
index 76a823d3828..fadb13c3616 100644
--- a/app/views/projects/branches/_branch.html.haml
+++ b/app/views/projects/branches/_branch.html.haml
@@ -9,32 +9,32 @@
%span.item-title.str-truncated= branch.name
&nbsp;
- if branch.name == @repository.root_ref
- %span.label.label-primary default
+ %span.label.label-primary 默认
- elsif @repository.merged_to_root_ref? branch.name
- %span.label.label-info.has_tooltip(title="Merged into #{@repository.root_ref}")
- merged
+ %span.label.label-info.has_tooltip(title="合并到 #{@repository.root_ref}")
+ 已合并的
- if @project.protected_branch? branch.name
%span.label.label-success
%i.fa.fa-lock
- protected
+ 保护的
.controls.hidden-xs
- if create_mr_button?(@repository.root_ref, branch.name)
= link_to create_mr_path(@repository.root_ref, branch.name), class: 'btn btn-grouped btn-xs' do
= icon('plus')
- Merge Request
+ 合并请求
- if branch.name != @repository.root_ref
- = link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: branch.name), class: 'btn btn-grouped btn-xs', method: :post, title: "Compare" do
+ = link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: branch.name), class: 'btn btn-grouped btn-xs', method: :post, title: "比较" do
= icon("exchange")
- Compare
+ 比较
- if can_remove_branch?(@project, branch.name)
- = link_to namespace_project_branch_path(@project.namespace, @project, branch.name), class: 'btn btn-grouped btn-xs btn-remove remove-row has_tooltip', title: "Delete branch", method: :delete, data: { confirm: "Deleting the '#{branch.name}' branch cannot be undone. Are you sure?", container: 'body' }, remote: true do
+ = link_to namespace_project_branch_path(@project.namespace, @project, branch.name), class: 'btn btn-grouped btn-xs btn-remove remove-row has_tooltip', title: "删除分支", method: :delete, data: { confirm: "删除 '#{branch.name}' 分支无法恢复。确定要继续么?", container: 'body' }, remote: true do
= icon("trash-o")
- if branch.name != @repository.root_ref
- .divergence-graph{ title: "#{number_commits_ahead} commits ahead, #{number_commits_behind} commits behind #{@repository.root_ref}" }
+ .divergence-graph{ title: "比 #{@repository.root_ref} 超前 #{number_commits_ahead} 次提交,落后 #{number_commits_behind} 次提交" }
.graph-side
.bar.bar-behind{ style: "width: #{number_commits_behind * bar_graph_width_factor}%" }
%span.count.count-behind= number_commits_behind
@@ -48,4 +48,4 @@
= render 'projects/branches/commit', commit: commit, project: @project
- else
%p
- Cant find HEAD commit for this branch
+ 无法在本分支找到 HEAD 提交