Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
f808baaf
Commit
f808baaf
authored
Feb 20, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux(): fixes to side menu and gravatar url
parent
1f28ff68
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
public/app/core/components/sidemenu/sidemenu.html
+4
-2
public/sass/components/_sidemenu.scss
+12
-11
No files found.
public/app/core/components/sidemenu/sidemenu.html
View file @
f808baaf
...
@@ -3,8 +3,10 @@
...
@@ -3,8 +3,10 @@
<li
class=
"sidemenu-org-section"
ng-if=
"ctrl.isSignedIn"
class=
"dropdown"
>
<li
class=
"sidemenu-org-section"
ng-if=
"ctrl.isSignedIn"
class=
"dropdown"
>
<div
class=
"sidemenu-org"
>
<div
class=
"sidemenu-org"
>
<div
class=
"sidemenu-org-avatar"
>
<div
class=
"sidemenu-org-avatar"
>
<img
ng-if=
"ctrl.user.gravatarURL"
ng-src=
"{{ctrl.user.gravatarUrl}}"
>
<img
ng-if=
"ctrl.user.gravatarUrl"
ng-src=
"{{ctrl.user.gravatarUrl}}"
>
<span
class=
"no-avatar h2"
ng-if
!="
ctrl
.
user
.
gravatarURL
"
>
?
</span>
<span
class=
"sidemenu-org-avatar--missing"
ng-if=
"!ctrl.user.gravatarUrl"
>
<i
class=
"fa fa-fw fa-user"
></i>
</span>
</div>
</div>
<div
class=
"sidemenu-org-details"
>
<div
class=
"sidemenu-org-details"
>
<span
class=
"sidemenu-org-user sidemenu-item-text"
>
{{ctrl.user.name}}
</span>
<span
class=
"sidemenu-org-user sidemenu-item-text"
>
{{ctrl.user.name}}
</span>
...
...
public/sass/components/_sidemenu.scss
View file @
f808baaf
...
@@ -203,23 +203,24 @@
...
@@ -203,23 +203,24 @@
}
}
.sidemenu-org-avatar
{
.sidemenu-org-avatar
{
width
:
44px
;
width
:
40px
;
height
:
40px
;
background-color
:
$gray-2
;
background-color
:
$gray-2
;
border-radius
:
50%
;
border-radius
:
50%
;
.no-avatar
{
text-align
:
center
;
color
:
$text-color
;
text-shadow
:
0
1px
0
$dark-1
;
padding-left
:
17px
;
position
:
relative
;
top
:
5px
;
}
}
.sidemenu-org-avatar
>
img
{
>
img
{
width
:
40px
;
width
:
40px
;
height
:
40px
;
height
:
40px
;
border-radius
:
50%
;
border-radius
:
50%
;
position
:
absolute
;
}
}
.sidemenu-org-avatar--missing
{
color
:
$text-color
;
text-shadow
:
0
1px
0
$dark-1
;
line-height
:
40px
;
font-size
:
$font-size-lg
;
}
}
.sidemenu-org-details
{
.sidemenu-org-details
{
...
...
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