2016-03-11 12:37:46 -05:00
|
|
|
- page_title "Groups"
|
2016-04-25 09:42:17 -04:00
|
|
|
.row.prepend-top-default
|
|
|
|
.col-lg-3.settings-sidebar
|
|
|
|
%h4.prepend-top-0
|
|
|
|
Share project with other groups
|
|
|
|
%p
|
|
|
|
Projects can be stored in only one group at once. However you can share a project with other groups here.
|
|
|
|
.col-lg-9
|
|
|
|
%h5.prepend-top-0
|
|
|
|
Set a group to share
|
|
|
|
= form_tag namespace_project_group_links_path(@project.namespace, @project), method: :post do
|
2016-03-11 12:37:46 -05:00
|
|
|
.form-group
|
2016-04-25 09:42:17 -04:00
|
|
|
= label_tag :link_group_id, "Group", class: "label-light"
|
|
|
|
= groups_select_tag(:link_group_id, skip_group: @project.group.try(:path))
|
2016-03-11 12:37:46 -05:00
|
|
|
.form-group
|
2016-04-25 09:42:17 -04:00
|
|
|
= label_tag :link_group_access, "Max access level", class: "label-light"
|
2016-04-25 09:55:03 -04:00
|
|
|
.select-wrapper
|
|
|
|
= select_tag :link_group_access, options_for_select(ProjectGroupLink.access_options, ProjectGroupLink.default_access), class: "form-control select-control"
|
|
|
|
%span.caret
|
2016-04-25 09:42:17 -04:00
|
|
|
= submit_tag "Share", class: "btn btn-create"
|
2016-04-25 11:56:17 -04:00
|
|
|
.col-lg-9.col-lg-offset-3
|
2016-04-25 09:42:17 -04:00
|
|
|
%hr
|
2016-04-25 11:56:17 -04:00
|
|
|
.col-lg-9.col-lg-offset-3.append-bottom-default.enabled-groups
|
2016-04-25 09:42:17 -04:00
|
|
|
%h5.prepend-top-0
|
|
|
|
Groups you share with (#{@group_links.size})
|
|
|
|
- if @group_links.present?
|
|
|
|
%ul.well-list
|
|
|
|
- @group_links.each do |group_link|
|
|
|
|
- group = group_link.group
|
|
|
|
%li
|
|
|
|
.pull-left.append-right-10.hidden-xs
|
|
|
|
= icon("folder-open-o", class: "settings-list-icon")
|
|
|
|
.pull-left
|
|
|
|
= link_to group do
|
|
|
|
= group.name
|
|
|
|
%br
|
|
|
|
up to #{group_link.human_access}
|
|
|
|
.pull-right
|
|
|
|
= link_to namespace_project_group_link_path(@project.namespace, @project, group_link), method: :delete, class: "btn btn-transparent" do
|
|
|
|
%span.sr-only disable sharing
|
|
|
|
= icon("trash")
|
|
|
|
- else
|
|
|
|
.settings-message.text-center
|
|
|
|
There are no groups with access to your project, add one in the form above
|