mirror of
https://github.com/flarum/framework.git
synced 2024-11-27 02:53:37 +08:00
Cleanup
This commit is contained in:
parent
b829edb07c
commit
74bd697de9
|
@ -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']()))
|
||||
|
|
|
@ -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) : ''
|
||||
]))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user