mirror of
https://github.com/flarum/core.git
synced 2025-05-12 10:25:20 +02:00
Add "last reply" icon to discussion list
This commit is contained in:
parent
9b3b87e4db
commit
b126055611
@ -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…
x
Reference in New Issue
Block a user