You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
move templates to separate file
This commit is contained in:
2
page.go
2
page.go
@@ -103,6 +103,8 @@ func (p page) PreviousLink() string {
|
||||
|
||||
// PrintAsHTML formats the page in HTML and executes the template
|
||||
func (p page) PrintAsHTML(w http.ResponseWriter, m *FileManager, templates ...string) (int, error) {
|
||||
templates = append(templates, "templates")
|
||||
|
||||
if p.minimal {
|
||||
templates = append(templates, "minimal")
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user