mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 04:31:57 +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('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())
|
||||
))
|
||||
])
|
||||
]) : ''
|
||||
])
|
||||
])
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user