mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 15:05:24 +08:00
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>
|
||||
{{#link-to 'badges.index'}}{{i18n badges.title}}{{/link-to}}
|
||||
<i class='fa fa-angle-right'></i>
|
||||
|
@ -18,7 +18,13 @@
|
|||
<br>
|
||||
{{#each userBadges}}
|
||||
{{#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}}
|
||||
{{/each}}
|
||||
{{else}}
|
||||
|
|
|
@ -74,3 +74,24 @@ table.badges-listing {
|
|||
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
Block a user