Always show chat name or email

This commit is contained in:
James Allen 2015-02-05 13:05:57 +00:00
parent ae3175c805
commit 3aad31069c
2 changed files with 4 additions and 1 deletions

View file

@ -31,7 +31,9 @@ aside.chat(
span.avatar
img(ng-src="{{message.user.gravatar_url}}?d=mm&s=50")
div.message-wrapper
.name(ng-if="message.user.id != user.id") {{ message.user.first_name }}
.name(ng-if="message.user.id != user.id")
span(ng-if="message.user.first_name") {{ message.user.first_name }}
span(ng-if="!message.user.first_name") {{ message.user.email }}
.message(
ng-style="{\
'border-color': 'hsl({{ hue(message.user) }}, 70%, 70%)',\

View file

@ -51,6 +51,7 @@
font-size: 12px;
color: @gray-light;
margin-bottom: 4px;
min-height: 16px;
}
.message {
padding: @line-height-computed / 2;