mirror of
https://github.com/flarum/core.git
synced 2025-10-15 00:44:40 +02:00
Replace Ember app with Mithril app
This commit is contained in:
15
js/forum/src/components/footer-primary.js
Normal file
15
js/forum/src/components/footer-primary.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import Component from 'flarum/component';
|
||||
import ItemList from 'flarum/utils/item-list';
|
||||
import listItems from 'flarum/helpers/list-items';
|
||||
|
||||
export default class FooterPrimary extends Component {
|
||||
view() {
|
||||
return m('ul.footer-controls', listItems(this.items().toArray()));
|
||||
}
|
||||
|
||||
items() {
|
||||
var items = new ItemList();
|
||||
|
||||
return items;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user