added contributor badge to user profile view

This commit is contained in:
Georg G 2015-04-19 22:25:21 +02:00
parent ced880fe34
commit c9b7e71290
1 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,10 @@
.profile--panel-badge.panel-badge-warning .profile--panel-badge.panel-badge-warning
%i.fa.fa-star %i.fa.fa-star
Supporter Supporter
- if @user.contributor?
.profile--panel-badge.panel-badge-primary
%i.fa.fa-github
Contributor
- if @user.blogger? - if @user.blogger?
.profile--panel-badge.panel-badge-info .profile--panel-badge.panel-badge-info
%i.fa.fa-pencil %i.fa.fa-pencil
@ -43,4 +47,4 @@
%i.fa.fa-location-arrow %i.fa.fa-location-arrow
= @user.location = @user.location
= render 'user/actions', user: @user, type: :follower = render 'user/actions', user: @user, type: :follower
= render 'user/stats', user: @user = render 'user/stats', user: @user