Add "last reply" icon to discussion list

This commit is contained in:
Toby Zerner 2015-09-24 09:05:52 +09:30
parent 579fe64e90
commit 69388f4101

View File

@ -1,5 +1,6 @@
import Component from 'flarum/Component'; import Component from 'flarum/Component';
import humanTime from 'flarum/helpers/humanTime'; import humanTime from 'flarum/helpers/humanTime';
import icon from 'flarum/helpers/icon';
/** /**
* Displays information about a the first or last post in a discussion. * Displays information about a the first or last post in a discussion.
@ -19,7 +20,7 @@ export default class TerminalPost extends Component {
return ( return (
<span> <span>
// Core Key Reorganization: Adjusted syntax for new key names {lastPost ? icon('reply') : ''}{' '}
{app.trans('core.discussion_list_' + (lastPost ? 'replied' : 'started') + '_text', { {app.trans('core.discussion_list_' + (lastPost ? 'replied' : 'started') + '_text', {
user, user,
ago: humanTime(time) ago: humanTime(time)