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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
5542c945
Commit
5542c945
authored
Apr 25, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated project group sharing UI
Closes #13991
parent
be85fde6
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
72 additions
and
62 deletions
+72
-62
app/assets/stylesheets/framework/selects.scss
app/assets/stylesheets/framework/selects.scss
+9
-3
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+2
-2
app/assets/stylesheets/pages/profile.scss
app/assets/stylesheets/pages/profile.scss
+2
-15
app/assets/stylesheets/pages/settings.scss
app/assets/stylesheets/pages/settings.scss
+14
-0
app/views/doorkeeper/applications/index.html.haml
app/views/doorkeeper/applications/index.html.haml
+2
-2
app/views/profiles/keys/_key.html.haml
app/views/profiles/keys/_key.html.haml
+1
-1
app/views/profiles/keys/_key_table.html.haml
app/views/profiles/keys/_key_table.html.haml
+1
-1
app/views/projects/group_links/index.html.haml
app/views/projects/group_links/index.html.haml
+41
-38
No files found.
app/assets/stylesheets/framework/selects.scss
View file @
5542c945
...
@@ -7,13 +7,11 @@
...
@@ -7,13 +7,11 @@
.select2-choice
{
.select2-choice
{
background
:
#fff
;
background
:
#fff
;
border-color
:
$input-border
;
border-color
:
$input-border
;
border-color
:
$border-white-light
;
height
:
35px
;
height
:
35px
;
padding
:
$gl-vert-padding
$gl-btn-padding
;
padding
:
$gl-vert-padding
$gl-btn-padding
;
font-size
:
$gl-font-size
;
font-size
:
$gl-font-size
;
line-height
:
1
.42857143
;
line-height
:
1
.42857143
;
border-radius
:
$border-radius-base
;
@include
border-radius
(
$border-radius-default
);
.select2-arrow
{
.select2-arrow
{
background-image
:
none
;
background-image
:
none
;
...
@@ -199,6 +197,14 @@
...
@@ -199,6 +197,14 @@
}
}
}
}
.select2-highlighted
{
.group-result
{
.group-path
{
color
:
#fff
;
}
}
}
.group-result
{
.group-result
{
.group-image
{
.group-image
{
float
:
left
;
float
:
left
;
...
...
app/assets/stylesheets/framework/variables.scss
View file @
5542c945
...
@@ -71,8 +71,8 @@ $gl-avatar-size: 40px;
...
@@ -71,8 +71,8 @@ $gl-avatar-size: 40px;
$error-exclamation-point
:
#e62958
;
$error-exclamation-point
:
#e62958
;
$border-radius-default
:
2px
;
$border-radius-default
:
2px
;
$btn-transparent-color
:
#8f8f8f
;
$btn-transparent-color
:
#8f8f8f
;
$s
sh-key
-icon-color
:
#8f8f8f
;
$s
ettings
-icon-color
:
#8f8f8f
;
$s
sh-key
-icon-size
:
18px
;
$s
ettings
-icon-size
:
18px
;
$provider-btn-group-border
:
#e5e5e5
;
$provider-btn-group-border
:
#e5e5e5
;
$provider-btn-not-active-color
:
#4688f1
;
$provider-btn-not-active-color
:
#4688f1
;
...
...
app/assets/stylesheets/pages/profile.scss
View file @
5542c945
...
@@ -18,7 +18,8 @@
...
@@ -18,7 +18,8 @@
}
}
.account-btn-link
,
.account-btn-link
,
.profile-settings-sidebar
a
{
.profile-settings-sidebar
a
,
.settings-sidebar
a
{
color
:
$md-link-color
;
color
:
$md-link-color
;
}
}
...
@@ -123,12 +124,6 @@
...
@@ -123,12 +124,6 @@
}
}
}
}
.key-icon
{
color
:
$ssh-key-icon-color
;
font-size
:
$ssh-key-icon-size
;
line-height
:
42px
;
}
.key-created-at
{
.key-created-at
{
line-height
:
42px
;
line-height
:
42px
;
}
}
...
@@ -180,14 +175,6 @@
...
@@ -180,14 +175,6 @@
}
}
}
}
.profile-settings-message
{
line-height
:
32px
;
color
:
$warning-message-color
;
background-color
:
$warning-message-bg
;
border
:
1px
solid
$warning-message-border
;
border-radius
:
$border-radius-base
;
}
.oauth-applications
{
.oauth-applications
{
form
{
form
{
display
:
inline-block
;
display
:
inline-block
;
...
...
app/assets/stylesheets/pages/settings.scss
0 → 100644
View file @
5542c945
.settings-list-icon
{
color
:
$settings-icon-color
;
font-size
:
$settings-icon-size
;
line-height
:
42px
;
}
.settings-message
{
padding
:
5px
;
line-height
:
1
.3
;
color
:
$warning-message-color
;
background-color
:
$warning-message-bg
;
border
:
1px
solid
$warning-message-border
;
border-radius
:
$border-radius-base
;
}
app/views/doorkeeper/applications/index.html.haml
View file @
5542c945
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
=
icon
(
'pencil'
)
=
icon
(
'pencil'
)
=
render
'delete_form'
,
application:
application
,
small:
true
=
render
'delete_form'
,
application:
application
,
small:
true
-
else
-
else
.
profile-
settings-message.text-center
.settings-message.text-center
You don't have any applications
You don't have any applications
.oauth-authorized-applications.prepend-top-20.append-bottom-default
.oauth-authorized-applications.prepend-top-20.append-bottom-default
-
if
user_oauth_applications?
-
if
user_oauth_applications?
...
@@ -78,5 +78,5 @@
...
@@ -78,5 +78,5 @@
%td
=
token
.
scopes
%td
=
token
.
scopes
%td
=
render
'doorkeeper/authorized_applications/delete_form'
,
token:
token
%td
=
render
'doorkeeper/authorized_applications/delete_form'
,
token:
token
-
else
-
else
.
profile-
settings-message.text-center
.settings-message.text-center
You don't have any authorized applications
You don't have any authorized applications
app/views/profiles/keys/_key.html.haml
View file @
5542c945
%li
.key-list-item
%li
.key-list-item
.pull-left.append-right-10
.pull-left.append-right-10
=
icon
'key'
,
class:
"
key
-icon hidden-xs"
=
icon
'key'
,
class:
"
settings-list
-icon hidden-xs"
.key-list-item-info
.key-list-item-info
=
link_to
path_to_key
(
key
,
is_admin
),
class:
"title"
do
=
link_to
path_to_key
(
key
,
is_admin
),
class:
"title"
do
=
key
.
title
=
key
.
title
...
...
app/views/profiles/keys/_key_table.html.haml
View file @
5542c945
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
%ul
.well-list
%ul
.well-list
=
render
partial:
'profiles/keys/key'
,
collection:
@keys
,
locals:
{
is_admin:
is_admin
}
=
render
partial:
'profiles/keys/key'
,
collection:
@keys
,
locals:
{
is_admin:
is_admin
}
-
else
-
else
%p
.
profile-
settings-message.text-center
%p
.settings-message.text-center
-
if
is_admin
-
if
is_admin
There are no SSH keys associated with this account.
There are no SSH keys associated with this account.
-
else
-
else
...
...
app/views/projects/group_links/index.html.haml
View file @
5542c945
-
page_title
"Groups"
-
page_title
"Groups"
%h3
.page_title
Share project with other groups
.row.prepend-top-default
%p
.light
.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.
Projects can be stored in only one group at once. However you can share a project with other groups here.
%hr
.col-lg-9
-
if
@group_links
.
present?
%h5
.prepend-top-0
.enabled-groups.panel.panel-default
Set a group to share
.panel-heading
=
form_tag
namespace_project_group_links_path
(
@project
.
namespace
,
@project
),
method: :post
do
Already shared with
.form-group
=
label_tag
:link_group_id
,
"Group"
,
class:
"label-light"
=
groups_select_tag
(
:link_group_id
,
skip_group:
@project
.
group
.
try
(
:path
))
.form-group
=
label_tag
:link_group_access
,
"Max access level"
,
class:
"label-light"
=
select_tag
:link_group_access
,
options_for_select
(
ProjectGroupLink
.
access_options
,
ProjectGroupLink
.
default_access
),
class:
"form-control"
=
submit_tag
"Share"
,
class:
"btn btn-create"
.col-sm-12
%hr
.col-lg-3.settings-sidebar
%h4
.prepend-top-0
.col-lg-9.append-bottom-default
%h5
.prepend-top-0
Groups you share with (
#{
@group_links
.
size
}
)
-
if
@group_links
.
present?
%ul
.well-list
%ul
.well-list
-
@group_links
.
each
do
|
group_link
|
-
@group_links
.
each
do
|
group_link
|
-
group
=
group_link
.
group
-
group
=
group_link
.
group
%li
%li
.pull-right
.pull-left.append-right-10.hidden-xs
=
link_to
namespace_project_group_link_path
(
@project
.
namespace
,
@project
,
group_link
),
method: :delete
,
class:
'btn btn-sm'
do
=
icon
(
"folder-open-o"
,
class:
"settings-list-icon"
)
%i
.icon-remove
.pull-left
disable sharing
=
link_to
group
do
=
link_to
group
do
%strong
%i
.icon-folder-open
=
group
.
name
=
group
.
name
%br
%br
.light
up to
#{
group_link
.
human_access
}
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
.available-groups
%span
.sr-only
disable sharing
%h4
=
icon
(
"trash"
)
Can be shared with
-
else
%div
.settings-message.text-center
=
form_tag
namespace_project_group_links_path
(
@project
.
namespace
,
@project
),
method: :post
,
class:
'form-horizontal'
do
There are no groups with access to your project, add one in the form above
.form-group
=
label_tag
:link_group_id
,
'Group'
,
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'
.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"
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