refactored view package
This commit is contained in:
11
internal/view/adminview/dashboard_layout.templ
Normal file
11
internal/view/adminview/dashboard_layout.templ
Normal file
@@ -0,0 +1,11 @@
|
||||
package adminview
|
||||
|
||||
import "git.haelnorr.com/h/oslstats/internal/view/baseview"
|
||||
|
||||
templ DashboardLayout() {
|
||||
@baseview.Layout("Admin") {
|
||||
<div>
|
||||
{ children... }
|
||||
</div>
|
||||
}
|
||||
}
|
||||
9
internal/view/adminview/dashboard_page.templ
Normal file
9
internal/view/adminview/dashboard_page.templ
Normal file
@@ -0,0 +1,9 @@
|
||||
package adminview
|
||||
|
||||
import "git.haelnorr.com/h/oslstats/internal/db"
|
||||
|
||||
templ DashboardPage(users *db.List[db.User]) {
|
||||
@DashboardLayout() {
|
||||
@UserList(users)
|
||||
}
|
||||
}
|
||||
6
internal/view/adminview/user_list.templ
Normal file
6
internal/view/adminview/user_list.templ
Normal file
@@ -0,0 +1,6 @@
|
||||
package adminview
|
||||
|
||||
import "git.haelnorr.com/h/oslstats/internal/db"
|
||||
|
||||
templ UserList(users *db.List[db.User]) {
|
||||
}
|
||||
Reference in New Issue
Block a user