Refactor html templates
This commit entirely refactors the use of html templates. Instead of inheriting from a shared template, we insert the results into a base template.
This commit is contained in:
parent
6ede99d7c6
commit
d235ee4e5c
59 changed files with 869 additions and 777 deletions
|
|
@ -19,6 +19,12 @@ type MenuItem struct {
|
|||
Priority MenuPriority // menu priority
|
||||
}
|
||||
|
||||
// DummyMenuItem is a dummy menu item
|
||||
// It should be replaced before being displayed to the user
|
||||
var DummyMenuItem = MenuItem{
|
||||
Title: "* to be replaced *",
|
||||
}
|
||||
|
||||
func MenuItemSort(a, b MenuItem) bool {
|
||||
return a.Priority < b.Priority
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue