mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 09:03:36 +08:00
Add "last reply" icon to discussion list
This commit is contained in:
parent
579fe64e90
commit
69388f4101
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user