mirror of
https://github.com/flarum/framework.git
synced 2025-04-28 23:54:03 +08:00
Don't show tag cloud if empty
This commit is contained in:
parent
cf89af4266
commit
d91f208b1e
@ -54,12 +54,12 @@ export default class TagsPage extends Component {
|
|||||||
]);
|
]);
|
||||||
})
|
})
|
||||||
]),
|
]),
|
||||||
m('div.tag-cloud', [
|
cloud.length ? m('div.tag-cloud', [
|
||||||
m('h4', 'Tags'),
|
m('h4', 'Tags'),
|
||||||
m('div.tag-cloud-content', cloud.map(tag =>
|
m('div.tag-cloud-content', cloud.map(tag =>
|
||||||
m('a', {href: app.route.tag(tag), config: m.route, style: tag.color() ? 'color: '+tag.color() : ''}, tag.name())
|
m('a', {href: app.route.tag(tag), config: m.route, style: tag.color() ? 'color: '+tag.color() : ''}, tag.name())
|
||||||
))
|
))
|
||||||
])
|
]) : ''
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user