import Component from 'flarum/Component';
import humanTime from 'flarum/helpers/humanTime';

/**
 * Displays information about a the first or last post in a discussion.
 *
 * ### Props
 *
 * - `discussion`
 * - `lastPost`
 */
export default class TerminalPost extends Component {
  view() {
    const discussion = this.props.discussion;
    const lastPost = this.props.lastPost && discussion.repliesCount();

    const user = discussion[lastPost ? 'lastUser' : 'startUser']();
    const time = discussion[lastPost ? 'lastTime' : 'startTime']();

    return (
      <span>
        // Core Key Reorganization: Adjusted syntax for new key names 
        {app.trans('core.discussion_list_' + (lastPost ? 'replied' : 'started') + '_text', {
          user,
          ago: humanTime(time)
        })}
      </span>
    );
  }
}

import Component from 'flarum/Component';
import humanTime from 'flarum/helpers/humanTime';
import icon from 'flarum/helpers/icon';

/**
 * Displays information about a the first or last post in a discussion.
 *
 * ### Props
 *
 * - `discussion`
 * - `lastPost`
 */
export default class TerminalPost extends Component {
  view() {
    const discussion = this.props.discussion;
    const lastPost = this.props.lastPost && discussion.repliesCount();

    const user = discussion[lastPost ? 'lastUser' : 'startUser']();
    const time = discussion[lastPost ? 'lastTime' : 'startTime']();

    return (
      <span>
        {lastPost ? icon('reply') : ''}{' '}
        {app.trans('core.discussion_list_' + (lastPost ? 'replied' : 'started') + '_text', {
          user,
          ago: humanTime(time)
        })}
      </span>
    );
  }
}

Add "last reply" icon to discussion list
Add "last reply" icon to discussion list
