fix broken labels

This commit is contained in:
Andreas N 2015-01-05 00:50:27 +01:00
parent fcf7d430eb
commit 11cd8b59f8
2 changed files with 10 additions and 6 deletions

View file

@ -71,6 +71,10 @@ body {
text-transform: uppercase; text-transform: uppercase;
} }
.j2-label {
display: inline-block;
}
.sweet-overlay { .sweet-overlay {
z-index: 1031; z-index: 1031;
} }

View file

@ -5,30 +5,30 @@
.profile--displayname .profile--displayname
= @user.screen_name = @user.screen_name
- if @user.admin? - if @user.admin?
%span.label.label-danger.j2-up %span.label.label-danger.j2-up.j2-label
%i.fa.fa-flask %i.fa.fa-flask
Admin Admin
- if @user.moderator? - if @user.moderator?
%span.label.label-success.j2-up %span.label.label-success.j2-up.j2-label
%i.fa.fa-users %i.fa.fa-users
Mod Mod
- if @user.supporter? - if @user.supporter?
%span.label.label-warning.j2-up %span.label.label-warning.j2-up.j2-label
%i.fa.fa-star %i.fa.fa-star
Supporter Supporter
- else - else
.profile--displayname .profile--displayname
= @user.display_name = @user.display_name
- if @user.admin? - if @user.admin?
%span.label.label-danger.j2-up %span.label.label-danger.j2-up.j2-label
%i.fa.fa-flask %i.fa.fa-flask
Admin Admin
- if @user.moderator? - if @user.moderator?
%span.label.label-success.j2-up %span.label.label-success.j2-up.j2-label
%i.fa.fa-users %i.fa.fa-users
Mod Mod
- if @user.supporter? - if @user.supporter?
%span.label.label-warning.j2-up %span.label.label-warning.j2-up.j2-label
%i.fa.fa-star %i.fa.fa-star
Supporter Supporter
.profile--username .profile--username