unexport page

Former-commit-id: 1ba9608a9c27334a337d3f919458c6f6116be0f9
This commit is contained in:
Henrique Dias
2017-06-25 13:00:33 +01:00
parent 7b33975f7b
commit a4fe27a6d6
5 changed files with 98 additions and 108 deletions

View File

@@ -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',