Display username and granted at on badge page.
This commit is contained in:
parent
a3b2b4baca
commit
d54edc7c0e
|
@ -1,4 +1,4 @@
|
||||||
<div class='container badges'>
|
<div class='container show-badge'>
|
||||||
<h1>
|
<h1>
|
||||||
{{#link-to 'badges.index'}}{{i18n badges.title}}{{/link-to}}
|
{{#link-to 'badges.index'}}{{i18n badges.title}}{{/link-to}}
|
||||||
<i class='fa fa-angle-right'></i>
|
<i class='fa fa-angle-right'></i>
|
||||||
|
@ -18,7 +18,13 @@
|
||||||
<br>
|
<br>
|
||||||
{{#each userBadges}}
|
{{#each userBadges}}
|
||||||
{{#link-to 'userActivity' user}}
|
{{#link-to 'userActivity' user}}
|
||||||
{{avatar user imageSize="large"}}
|
<div class="badge-user">
|
||||||
|
{{avatar user imageSize="large"}}
|
||||||
|
<div class="details">
|
||||||
|
<span class="username">{{user.username}}</span>
|
||||||
|
{{unboundDate granted_at}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
@ -74,3 +74,24 @@ table.badges-listing {
|
||||||
border-top: 1px solid $primary-border-color;
|
border-top: 1px solid $primary-border-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* /badges/:id/:slug page styling. */
|
||||||
|
.show-badge {
|
||||||
|
.badge-user {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border: 1px solid $secondary_border_color;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
|
||||||
|
.details {
|
||||||
|
float: right;
|
||||||
|
margin: 0 10px;
|
||||||
|
padding-top: 3px;
|
||||||
|
color: $primary_text_color;
|
||||||
|
}
|
||||||
|
.date {
|
||||||
|
display: block;
|
||||||
|
color: $secondary_text_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue