From fcfc6177c25a378f6e72d33f32f9533a0fdf21a1 Mon Sep 17 00:00:00 2001 From: Vikhyat Korrapati Date: Wed, 11 Jun 2014 07:44:47 +0530 Subject: [PATCH] Allow specifying URLs as badge certificates. --- .../templates/components/user-badge.js.handlebars | 2 ++ app/assets/stylesheets/common/base/user-badges.scss | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/app/assets/javascripts/discourse/templates/components/user-badge.js.handlebars b/app/assets/javascripts/discourse/templates/components/user-badge.js.handlebars index dceafcda789..e62a8f762d0 100644 --- a/app/assets/javascripts/discourse/templates/components/user-badge.js.handlebars +++ b/app/assets/javascripts/discourse/templates/components/user-badge.js.handlebars @@ -2,6 +2,8 @@ {{#if isIcon}} + {{else}} + {{/if}} {{badge.displayName}} {{#if showGrantCount}} diff --git a/app/assets/stylesheets/common/base/user-badges.scss b/app/assets/stylesheets/common/base/user-badges.scss index 15683b6d09d..39175c13a1b 100644 --- a/app/assets/stylesheets/common/base/user-badges.scss +++ b/app/assets/stylesheets/common/base/user-badges.scss @@ -16,6 +16,11 @@ vertical-align: bottom; } + img { + height: 16px; + width: 16px; + } + &.badge-type-gold .fa { color: #ffd700; } @@ -46,6 +51,12 @@ margin-bottom: 5px; } + img { + display: inline-block; + width: 55px; + height: 55px; + } + .count { display: block; font-size: 0.8em;