Allow specifying URLs as badge certificates.
This commit is contained in:
parent
e0fd1f6f5e
commit
fcfc6177c2
|
@ -2,6 +2,8 @@
|
||||||
<span {{bind-attr class=":user-badge badgeTypeClassName" data-badge-name="badge.name" title="badge.displayDescription"}}>
|
<span {{bind-attr class=":user-badge badgeTypeClassName" data-badge-name="badge.name" title="badge.displayDescription"}}>
|
||||||
{{#if isIcon}}
|
{{#if isIcon}}
|
||||||
<i {{bind-attr class=":fa badge.icon"}}></i>
|
<i {{bind-attr class=":fa badge.icon"}}></i>
|
||||||
|
{{else}}
|
||||||
|
<img {{bind-attr src="badge.icon"}}>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{badge.displayName}}
|
{{badge.displayName}}
|
||||||
{{#if showGrantCount}}
|
{{#if showGrantCount}}
|
||||||
|
|
|
@ -16,6 +16,11 @@
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 16px;
|
||||||
|
width: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
&.badge-type-gold .fa {
|
&.badge-type-gold .fa {
|
||||||
color: #ffd700;
|
color: #ffd700;
|
||||||
}
|
}
|
||||||
|
@ -46,6 +51,12 @@
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: inline-block;
|
||||||
|
width: 55px;
|
||||||
|
height: 55px;
|
||||||
|
}
|
||||||
|
|
||||||
.count {
|
.count {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
|
Loading…
Reference in New Issue