summaryrefslogtreecommitdiff
path: root/app/views/admin/hooks/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/hooks/index.html.haml')
-rw-r--r--app/views/admin/hooks/index.html.haml23
1 files changed, 11 insertions, 12 deletions
diff --git a/app/views/admin/hooks/index.html.haml b/app/views/admin/hooks/index.html.haml
index 53b3cd04c68..322b9989f2e 100644
--- a/app/views/admin/hooks/index.html.haml
+++ b/app/views/admin/hooks/index.html.haml
@@ -1,10 +1,9 @@
-- page_title "System Hooks"
+- page_title "系统钩子"
%h3.page-title
- System hooks
+ 系统钩子
%p.light
- #{link_to "System hooks ", help_page_path("system_hooks", "system_hooks"), class: "vlink"} can be
- used for binding events when GitLab creates a User or Project.
+ #{link_to "系统钩子", help_page_path("system_hooks", "system_hooks"), class: "vlink"}可以绑定例如 Git 版本创建用户或项目的事件。
%hr
@@ -15,31 +14,31 @@
- @hook.errors.full_messages.each do |msg|
%p= msg
.form-group
- = f.label :url, "URL:", class: 'control-label'
+ = f.label :url, "链接:", class: 'control-label'
.col-sm-10
= f.text_field :url, class: "form-control"
.form-group
- = f.label :enable_ssl_verification, "SSL verification", class: 'control-label checkbox'
+ = f.label :enable_ssl_verification, "SSL 验证证书", class: 'control-label checkbox'
.col-sm-10
.checkbox
= f.label :enable_ssl_verification do
= f.check_box :enable_ssl_verification
- %strong Enable SSL verification
+ %strong 启用 SSL 验证证书
.form-actions
- = f.submit "Add System Hook", class: "btn btn-create"
+ = f.submit "增加系统钩子", class: "btn btn-create"
%hr
-if @hooks.any?
.panel.panel-default
.panel-heading
- System hooks (#{@hooks.count})
+ 系统钩子 (#{@hooks.count})
%ul.well-list
- @hooks.each do |hook|
%li
.list-item-name
%strong= hook.url
- %p SSL Verification: #{hook.enable_ssl_verification ? "enabled" : "disabled"}
+ %p SSL 验证证书: #{hook.enable_ssl_verification ? "已启用" : "已禁用"}
.pull-right
- = link_to 'Test Hook', admin_hook_test_path(hook), class: "btn btn-sm"
- = link_to 'Remove', admin_hook_path(hook), data: { confirm: 'Are you sure?' }, method: :delete, class: "btn btn-remove btn-sm"
+ = link_to '测试钩子', admin_hook_test_path(hook), class: "btn btn-sm"
+ = link_to '删除', admin_hook_path(hook), data: { confirm: '确定要继续么?' }, method: :delete, class: "btn btn-remove btn-sm"