mirror of
https://github.com/flarum/core.git
synced 2025-10-12 23:44:27 +02:00
Replace Ember app with Mithril app
This commit is contained in:
17
js/forum/src/components/footer-secondary.js
Normal file
17
js/forum/src/components/footer-secondary.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import Component from 'flarum/component';
|
||||
import ItemList from 'flarum/utils/item-list';
|
||||
import listItems from 'flarum/helpers/list-items';
|
||||
|
||||
export default class FooterSecondary extends Component {
|
||||
view() {
|
||||
return m('ul.footer-controls', listItems(this.items().toArray()));
|
||||
}
|
||||
|
||||
items() {
|
||||
var items = new ItemList();
|
||||
|
||||
items.add('poweredBy', m('a[href=http://flarum.org][target=_blank]', 'Powered by Flarum'));
|
||||
|
||||
return items;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user