File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed
framework/core/js/src/forum/components Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -60,19 +60,31 @@ export default class IndexPage<CustomAttrs extends IIndexPageAttrs = IIndexPageA
60
60
< nav className = "IndexPage-nav sideNav" >
61
61
< ul > { listItems ( this . sidebarItems ( ) . toArray ( ) ) } </ ul >
62
62
</ nav >
63
- < div className = "IndexPage-results sideNavOffset" >
64
- < div className = "IndexPage-toolbar" >
65
- < ul className = "IndexPage-toolbar-view" > { listItems ( this . viewItems ( ) . toArray ( ) ) } </ ul >
66
- < ul className = "IndexPage-toolbar-action" > { listItems ( this . actionItems ( ) . toArray ( ) ) } </ ul >
67
- </ div >
68
- < DiscussionList state = { app . discussions } />
69
- </ div >
63
+ < div className = "IndexPage-results sideNavOffset" > { this . contentItems ( ) . toArray ( ) } </ div >
70
64
</ div >
71
65
</ div >
72
66
</ div >
73
67
) ;
74
68
}
75
69
70
+ contentItems ( ) : ItemList < Mithril . Children > {
71
+ const items = new ItemList < Mithril . Children > ( ) ;
72
+
73
+ items . add ( 'toolbar' , < div className = "IndexPage-toolbar" > { this . toolbarItems ( ) . toArray ( ) } </ div > , 100 ) ;
74
+ items . add ( 'discussionList' , < DiscussionList state = { app . discussions } /> , 90 ) ;
75
+
76
+ return items ;
77
+ }
78
+
79
+ toolbarItems ( ) : ItemList < Mithril . Children > {
80
+ const items = new ItemList < Mithril . Children > ( ) ;
81
+
82
+ items . add ( 'view' , < ul className = "IndexPage-toolbar-view" > { listItems ( this . viewItems ( ) . toArray ( ) ) } </ ul > , 100 ) ;
83
+ items . add ( 'action' , < ul className = "IndexPage-toolbar-action" > { listItems ( this . actionItems ( ) . toArray ( ) ) } </ ul > , 90 ) ;
84
+
85
+ return items ;
86
+ }
87
+
76
88
setTitle ( ) {
77
89
app . setTitle ( extractText ( app . translator . trans ( 'core.forum.index.meta_title_text' ) ) ) ;
78
90
app . setTitleCount ( 0 ) ;
You can’t perform that action at this time.
0 commit comments