mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-03 15:27:57 +08:00
Display viewed directory's size
This commit is contained in:
parent
269b1d03eb
commit
beb1120fde
File diff suppressed because one or more lines are too long
@ -13,6 +13,7 @@ const templateFile = "../dir-index.html"
|
||||
// Copied from go-ipfs/core/corehttp/gateway_indexPage.go
|
||||
type listingTemplateData struct {
|
||||
Listing []directoryItem
|
||||
Size string
|
||||
Path string
|
||||
BackLink string
|
||||
Hash string
|
||||
@ -34,6 +35,7 @@ var testData = listingTemplateData{
|
||||
Name: "this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt",
|
||||
Path: "this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt",
|
||||
}},
|
||||
Size: "25 MiB",
|
||||
Path: "/ipfs/QmFooBarQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7RgQm",
|
||||
BackLink: "/..",
|
||||
Hash: "QmFooBarQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7RgQm",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user