summaryrefslogtreecommitdiff
path: root/app/views/projects/group_links/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/group_links/index.html.haml')
-rw-r--r--app/views/projects/group_links/index.html.haml20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/views/projects/group_links/index.html.haml b/app/views/projects/group_links/index.html.haml
index 13f5fc141fa..7a5c5d02928 100644
--- a/app/views/projects/group_links/index.html.haml
+++ b/app/views/projects/group_links/index.html.haml
@@ -1,12 +1,12 @@
-- page_title "Groups"
-%h3.page_title Share project with other groups
+- page_title "群组"
+%h3.page_title 分享项目给其他群组
%p.light
- Projects can be stored in only one group at once. However you can share a project with other groups here.
+ 项目只在一个群组内保存。但可以在这里分享项目到其他群组。
%hr
- if @group_links.present?
.enabled-groups.panel.panel-default
.panel-heading
- Already shared with
+ 已分享给
%ul.well-list
- @group_links.each do |group_link|
- group = group_link.group
@@ -14,28 +14,28 @@
.pull-right
= link_to namespace_project_group_link_path(@project.namespace, @project, group_link), method: :delete, class: 'btn btn-sm' do
%i.icon-remove
- disable sharing
+ 禁止分享
= link_to group do
%strong
%i.icon-folder-open
= group.name
%br
- .light up to #{group_link.human_access}
+ .light 权限:#{group_link.human_access}
.available-groups
%h4
- Can be shared with
+ 可以分享给
%div
= form_tag namespace_project_group_links_path(@project.namespace, @project), method: :post, class: 'form-horizontal' do
.form-group
- = label_tag :link_group_id, 'Group', class: 'control-label'
+ = label_tag :link_group_id, '群组', class: 'control-label'
.col-sm-10
= groups_select_tag(:link_group_id, skip_group: @project.group.try(:path))
.form-group
- = label_tag :link_group_access, 'Max access level', class: 'control-label'
+ = label_tag :link_group_access, '最大访问等级', class: 'control-label'
.col-sm-10
= select_tag :link_group_access, options_for_select(ProjectGroupLink.access_options, ProjectGroupLink.default_access), class: "form-control"
.form-actions
- = submit_tag "Share", class: "btn btn-create"
+ = submit_tag "分享", class: "btn btn-create"