This commit is contained in:
Toby Zerner 2015-05-02 08:45:52 +09:30
parent b829edb07c
commit 74bd697de9
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ export default class TerminalPost extends Component {
var discussion = this.props.discussion;
var lastPost = this.props.lastPost && discussion.repliesCount();
return m('li', [
return m('span', [
m('span.username', discussion[lastPost ? 'lastUser' : 'startUser']().username()),
lastPost ? ' replied ' : ' started ',
m('time', humanTime(discussion[lastPost ? 'lastTime' : 'startTime']()))

View File

@ -3,11 +3,11 @@ import icon from 'flarum/helpers/icon'
export default class NavItem extends Component {
view() {
var active = NavItem.active(this.props);
var active = this.constructor.active(this.props);
return m('li'+(active ? '.active' : ''), m('a', {href: this.props.href, config: m.route}, [
icon(this.props.icon+' icon'),
this.props.label, ' ',
m('span.count', this.props.badge)
this.props.badge ? m('span.count', this.props.badge) : ''
]))
}