Allow specifying URLs as badge certificates.

This commit is contained in:
Vikhyat Korrapati 2014-06-11 07:44:47 +05:30
parent e0fd1f6f5e
commit fcfc6177c2
2 changed files with 13 additions and 0 deletions

View File

@ -2,6 +2,8 @@
<span {{bind-attr class=":user-badge badgeTypeClassName" data-badge-name="badge.name" title="badge.displayDescription"}}>
{{#if isIcon}}
<i {{bind-attr class=":fa badge.icon"}}></i>
{{else}}
<img {{bind-attr src="badge.icon"}}>
{{/if}}
{{badge.displayName}}
{{#if showGrantCount}}

View File

@ -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;