Add username to profile view

stable
Xavier Julián 2015-06-26 08:19:52 +02:00
parent 3c8e3e85a4
commit ddb0ac3a05
2 changed files with 9 additions and 2 deletions

View File

@ -6,6 +6,7 @@ section.profile-bar
// span(translate="USER.PROFILE.FOLLOW") // span(translate="USER.PROFILE.FOLLOW")
div.profile-data div.profile-data
h1(ng-class="{'not-full-name': !vm.user.get('full_name')}") {{::vm.user.get("full_name_display")}} h1(ng-class="{'not-full-name': !vm.user.get('full_name')}") {{::vm.user.get("full_name_display")}}
.username @{{::vm.user.get("username")}}
h2 {{::vm.stats.get('roles').join(", ")}} h2 {{::vm.stats.get('roles').join(", ")}}
// div.location // div.location
// include ../../../svg/location.svg // include ../../../svg/location.svg

View File

@ -66,8 +66,8 @@
h1 { h1 {
@extend %bold; @extend %bold;
@extend %xlarge; @extend %xlarge;
line-height: 1; line-height: 1.2;
margin-bottom: .5rem; margin-bottom: .25rem;
text-transform: none; text-transform: none;
} }
.not-full-name { .not-full-name {
@ -80,6 +80,12 @@
line-height: 1.2; line-height: 1.2;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.username {
@extend %light;
@extend %large;
color: $gray-light;
margin-bottom: 1rem;
}
.location { .location {
color: $gray-light; color: $gray-light;
margin-bottom: 1rem; margin-bottom: 1rem;