From c9b7e71290c1cb9c13a1178a465dda7c1a626ecf Mon Sep 17 00:00:00 2001 From: Georg G Date: Sun, 19 Apr 2015 22:25:21 +0200 Subject: [PATCH] added contributor badge to user profile view --- app/views/user/_profile_info.html.haml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/user/_profile_info.html.haml b/app/views/user/_profile_info.html.haml index cdd4878d..f0f9f9ce 100644 --- a/app/views/user/_profile_info.html.haml +++ b/app/views/user/_profile_info.html.haml @@ -12,6 +12,10 @@ .profile--panel-badge.panel-badge-warning %i.fa.fa-star Supporter + - if @user.contributor? + .profile--panel-badge.panel-badge-primary + %i.fa.fa-github + Contributor - if @user.blogger? .profile--panel-badge.panel-badge-info %i.fa.fa-pencil @@ -43,4 +47,4 @@ %i.fa.fa-location-arrow = @user.location = render 'user/actions', user: @user, type: :follower -= render 'user/stats', user: @user \ No newline at end of file += render 'user/stats', user: @user