emoji: Display emoji author in admin interface.

Fixes: #984.
This commit is contained in:
Igor Tokarev 2016-12-20 17:18:26 +05:00 committed by Tim Abbott
parent 1238d08f72
commit 3cb7d665da
3 changed files with 10 additions and 1 deletions

View File

@ -173,7 +173,8 @@ exports.populate_emoji = function (emoji_data) {
emoji_table.append(templates.render('admin_emoji_list', {
emoji: {
name: name, source_url: data.source_url,
display_url: data.display_url
display_url: data.display_url,
author: data.author
}
}));
});

View File

@ -6,6 +6,13 @@
<td>
<span class="emoji_image"><a href="{{source_url}}"><img src="{{display_url}}" alt="{{name}}" /></a></span>
</td>
<td>
{{#if author}}
<span class="emoji_author">{{author.full_name}}</span>
{{else}}
<span class="emoji_author">Unknown Author</span>
{{/if}}
</td>
<td>
<button class="button delete btn-danger" data-emoji-name="{{name}}">
{{t "Delete" }}

View File

@ -7,6 +7,7 @@
<tbody id="admin_emoji_table">
<th>{{t "Name" }}</th>
<th class="image">{{t "Image" }}</th>
<th class="image">{{t "Author" }}</th>
<th class="actions">{{t "Actions" }}</th>
</tbody>
</table>