summaryrefslogtreecommitdiff
path: root/app/views/admin/builds/_build.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/builds/_build.html.haml')
-rw-r--r--app/views/admin/builds/_build.html.haml14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/admin/builds/_build.html.haml b/app/views/admin/builds/_build.html.haml
index 6e254a50c2b..ef1672a5e74 100644
--- a/app/views/admin/builds/_build.html.haml
+++ b/app/views/admin/builds/_build.html.haml
@@ -6,9 +6,9 @@
%td.build-link
- if can?(current_user, :read_build, build.project)
= link_to namespace_project_build_url(build.project.namespace, build.project, build) do
- %strong Build ##{build.id}
+ %strong 构建 ##{build.id}
- else
- %strong Build ##{build.id}
+ %strong 构建 ##{build.id}
- if build.stuck?
%i.fa.fa-warning.text-warning
@@ -24,13 +24,13 @@
- if build.ref
= link_to build.ref, namespace_project_commits_path(build.project.namespace, build.project, build.ref)
- else
- .light none
+ .light 无
%td
- if build.try(:runner)
= runner_link(build.runner)
- else
- .light none
+ .light 无
%td
#{build.stage} / #{build.name}
@@ -61,12 +61,12 @@
%td
.pull-right
- if can?(current_user, :read_build, project) && build.artifacts?
- = link_to download_namespace_project_build_artifacts_path(build.project.namespace, build.project, build), title: 'Download artifacts' do
+ = link_to download_namespace_project_build_artifacts_path(build.project.namespace, build.project, build), title: '下载附件' do
%i.fa.fa-download
- if can?(current_user, :update_build, build.project)
- if build.active?
- = link_to cancel_namespace_project_build_path(build.project.namespace, build.project, build, return_to: request.original_url), method: :post, title: 'Cancel' do
+ = link_to cancel_namespace_project_build_path(build.project.namespace, build.project, build, return_to: request.original_url), method: :post, title: '取消' do
%i.fa.fa-remove.cred
- elsif defined?(allow_retry) && allow_retry && build.retryable?
- = link_to retry_namespace_project_build_path(build.project.namespace, build.project, build, return_to: request.original_url), method: :post, title: 'Retry' do
+ = link_to retry_namespace_project_build_path(build.project.namespace, build.project, build, return_to: request.original_url), method: :post, title: '重试' do
%i.fa.fa-repeat