some more changes

This commit is contained in:
Andreas N 2015-02-12 16:48:14 +01:00
parent 55a4278c34
commit 1ef032e69e
2 changed files with 18 additions and 3 deletions

View File

@ -101,3 +101,17 @@
height: 45px;
width: 45px;
}
.profile--dropdown-username {
font-weight: 700;
font-size: 1.2em;
line-height: 1.33em;
margin-top: 9.5px;
}
.profile--dropdown-displayname {
font-weight: 700;
font-size: 1.2em;
line-height: 1.33em;
margin-top: 2px;
}

View File

@ -10,14 +10,15 @@
%img.img-rounded.profile--dropdown-img{src: current_user.profile_picture.url(:medium)}
.media-body
- if current_user.display_name.blank?
.profile--displayname
.profile--dropdown-username
= current_user.screen_name
- else
.profile--displayname
.profile--dropdown-displayname
= current_user.display_name
.profile--username
= current_user.screen_name
%li= link_to "View profile", show_user_profile_path(current_user.screen_name)
%li.divider.hidden-xs
%li.visible-xs= link_to "View profile", show_user_profile_path(current_user.screen_name)
%li= link_to "Settings", edit_user_registration_path
%li.divider
- if current_user.admin?