1 parent
7b33975f7b
commit
a4fe27a6d6
5 files changed
+98
-108
No files matched your search
+9
-11
@@ -77,20 +77,18 @@ func serveListing(w http.ResponseWriter, r *http.Request, c *FileManager, u *use
|
||||
Secure: r.TLS != nil,
|
||||
})
|
||||
|
||||
page := &Page{
|
||||
p := &page{
|
||||
Minimal: r.Header.Get("Minimal") == "true",
|
||||
PageInfo: &PageInfo{
|
||||
Name: listing.Name,
|
||||
Path: i.VirtualPath,
|
||||
IsDir: true,
|
||||
User: u,
|
||||
Config: c,
|
||||
Display: displayMode,
|
||||
Data: listing,
|
||||
},
|
||||
Name: listing.Name,
|
||||
Path: i.VirtualPath,
|
||||
IsDir: true,
|
||||
User: u,
|
||||
Config: c,
|
||||
Display: displayMode,
|
||||
Data: listing,
|
||||
}
|
||||
|
||||
return page.PrintAsHTML(w, "listing")
|
||||
return p.PrintAsHTML(w, "listing")
|
||||
}
|
||||
|
||||
// handleSortOrder gets and stores for a Listing the 'sort' and 'order',
|
||||
|
||||
Reference in new issue
Block a user