BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ab4dbcec
Commit
ab4dbcec
authored
Apr 19, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '30484-profile-dropdown-account-name' into 'master'
Added profile name to user dropdown Closes #30484 See merge request !10469
parents
364050c1
3b2adb5b
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
7 deletions
+24
-7
common.scss
app/assets/stylesheets/framework/common.scss
+4
-0
header.scss
app/assets/stylesheets/framework/header.scss
+8
-0
issuable.scss
app/assets/stylesheets/pages/issuable.scss
+0
-4
_default.html.haml
app/views/layouts/header/_default.html.haml
+5
-0
30484-profile-dropdown-account-name.yml
...gelogs/unreleased/30484-profile-dropdown-account-name.yml
+4
-0
members.rb
features/steps/group/members.rb
+2
-2
admin_projects_spec.rb
spec/features/admin/admin_projects_spec.rb
+1
-1
No files found.
app/assets/stylesheets/framework/common.scss
View file @
ab4dbcec
...
...
@@ -40,6 +40,10 @@
line-height
:
24px
;
}
.bold
{
font-weight
:
600
;
}
.tab-content
{
overflow
:
visible
;
}
...
...
app/assets/stylesheets/framework/header.scss
View file @
ab4dbcec
...
...
@@ -331,6 +331,14 @@ header {
.dropdown-menu-nav
{
min-width
:
140px
;
margin-top
:
-5px
;
.current-user
{
padding
:
5px
18px
;
.user-name
{
display
:
block
;
}
}
}
}
...
...
app/assets/stylesheets/pages/issuable.scss
View file @
ab4dbcec
...
...
@@ -210,10 +210,6 @@
}
}
.bold
{
font-weight
:
600
;
}
.light
{
font-weight
:
normal
;
}
...
...
app/views/layouts/header/_default.html.haml
View file @
ab4dbcec
...
...
@@ -67,6 +67,11 @@
=
icon
(
'caret-down'
)
.dropdown-menu-nav.dropdown-menu-align-right
%ul
%li
.current-user
.user-name.bold
=
current_user
.
name
@
#{
current_user
.
username
}
%li
.divider
%li
=
link_to
"Profile"
,
current_user
,
class:
'profile-link'
,
aria:
{
label:
"Profile"
},
data:
{
user:
current_user
.
username
}
%li
...
...
changelogs/unreleased/30484-profile-dropdown-account-name.yml
0 → 100644
View file @
ab4dbcec
---
title
:
Added profile name to user dropdown
merge_request
:
author
:
features/steps/group/members.rb
View file @
ab4dbcec
...
...
@@ -87,7 +87,7 @@ class Spinach::Features::GroupMembers < Spinach::FeatureSteps
end
step
'I click on the "Remove User From Group" button for "John Doe"'
do
find
(
:css
,
'li'
,
text:
"John Doe"
).
find
(
:css
,
'a.btn-remove'
).
click
find
(
:css
,
'
.project-members-page
li'
,
text:
"John Doe"
).
find
(
:css
,
'a.btn-remove'
).
click
# poltergeist always confirms popups.
end
...
...
@@ -97,7 +97,7 @@ class Spinach::Features::GroupMembers < Spinach::FeatureSteps
end
step
'I should not see the "Remove User From Group" button for "John Doe"'
do
expect
(
find
(
:css
,
'li'
,
text:
"John Doe"
)).
not_to
have_selector
(
:css
,
'a.btn-remove'
)
expect
(
find
(
:css
,
'
.project-members-page
li'
,
text:
"John Doe"
)).
not_to
have_selector
(
:css
,
'a.btn-remove'
)
# poltergeist always confirms popups.
end
...
...
spec/features/admin/admin_projects_spec.rb
View file @
ab4dbcec
...
...
@@ -109,7 +109,7 @@ describe "Admin::Projects", feature: true do
expect
(
page
).
to
have_content
(
'Developer'
)
end
find
(
:css
,
'li'
,
text:
current_user
.
name
).
find
(
:css
,
'a.btn-remove'
).
click
find
(
:css
,
'
.content-list
li'
,
text:
current_user
.
name
).
find
(
:css
,
'a.btn-remove'
).
click
expect
(
page
).
not_to
have_selector
(
:css
,
'.content-list'
)
end
...
...
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