Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9d972249
Commit
9d972249
authored
Oct 16, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Project share UI: Replace groups list with selectbox
parent
58dfbb89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
app/views/projects/group_links/index.html.haml
app/views/projects/group_links/index.html.haml
+20
-19
No files found.
app/views/projects/group_links/index.html.haml
View file @
9d972249
...
@@ -2,35 +2,36 @@
...
@@ -2,35 +2,36 @@
%p
.light
%p
.light
Project can be stored in one group at once. However you can share project with other groups here.
Project can be stored in one group at once. However you can share project with other groups here.
%hr
%hr
.row
-
if
@group_links
.
present?
.
span5.enabled-groups
.
enabled-groups.append-bottom-20
%h4
%h4
Already shared with
:
Already shared with
%ul
.bordered-list
%ul
.bordered-list
-
@group_links
.
each
do
|
group_link
|
-
@group_links
.
each
do
|
group_link
|
-
group
=
group_link
.
group
-
group
=
group_link
.
group
%li
%li
%h4
%h4
.pull-left
=
link_to
project_group_link_path
(
@project
,
group_link
),
method: :delete
,
class:
'btn btn-small append-right-10'
do
%i
.icon-remove
=
link_to
group
do
=
link_to
group
do
%i
.icon-folder-open
%i
.icon-folder-open
=
group
.
name
=
group
.
name
%small
.light
up to
#{
group_link
.
human_access
}
%small
.light
up to
#{
group_link
.
human_access
}
.pull-right
=
link_to
project_group_link_path
(
@project
,
group_link
),
method: :delete
,
class:
'btn btn-small append-right-10'
do
%i
.icon-remove
disable sharing
.span5.available-groups
-
if
@available_groups
.
present?
.available-groups
%h4
%h4
Can be shared with:
Can be shared with
%ul
.bordered-list
%div
-
@available_groups
.
each
do
|
group
|
=
form_tag
project_group_links_path
(
@project
),
method: :post
do
%li
.control-group
.pull-right
=
label_tag
:group_id
,
'Group'
=
form_tag
project_group_links_path
(
@project
),
method: :post
do
.controls
=
select_tag
:group_id
,
options_from_collection_for_select
(
@available_groups
,
:id
,
:name
),
class:
'chosen'
=
select_tag
:group_access
,
options_for_select
(
ProjectGroupLink
.
access_options
,
ProjectGroupLink
.
default_access
),
class:
"span2"
.control-group
=
hidden_field_tag
:group_id
,
group
.
id
=
label_tag
:group_access
,
'Max access level'
=
submit_tag
"Share"
,
class:
"btn btn-small"
.controls
=
select_tag
:group_access
,
options_for_select
(
ProjectGroupLink
.
access_options
,
ProjectGroupLink
.
default_access
),
class:
"span2"
%h4
.form-actions
%i
.icon-folder-close
=
submit_tag
"Share"
,
class:
"btn btn-create"
=
group
.
name
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment