add comments and unexport some fields

Former-commit-id: fffbcc7098e7eab38351dc7e202983f4749a74eb
This commit is contained in:
Henrique Dias
2017-06-25 14:24:26 +01:00
parent 475a07671d
commit 99d99843b7
8 changed files with 94 additions and 76 deletions

View File

@@ -78,17 +78,19 @@ func serveListing(w http.ResponseWriter, r *http.Request, c *FileManager, u *use
})
p := &page{
Minimal: r.Header.Get("Minimal") == "true",
Name: listing.Name,
Path: i.VirtualPath,
IsDir: true,
User: u,
Config: c,
Display: displayMode,
Data: listing,
minimal: r.Header.Get("Minimal") == "true",
Name: listing.Name,
Path: i.VirtualPath,
IsDir: true,
User: u,
PrefixURL: c.PrefixURL,
BaseURL: c.AbsoluteURL(),
WebDavURL: c.AbsoluteWebDavURL(),
Display: displayMode,
Data: listing,
}
return p.PrintAsHTML(w, "listing")
return p.PrintAsHTML(w, c.Assets.Templates, "listing")
}
// handleSortOrder gets and stores for a Listing the 'sort' and 'order',