Commit ce0dceac authored by Kevin Neaton's avatar Kevin Neaton

Use short hash for uniform CID presentation of directory items

parent c5d042ac
This diff is collapsed.
......@@ -25,6 +25,7 @@ type directoryItem struct {
Name string
Path string
Hash string
ShortHash string
}
type breadcrumb struct {
......@@ -39,11 +40,13 @@ var testData = listingTemplateData{
Name: "short-film.mov",
Path: testPath + "/short-film.mov",
Hash: "QmQuxBarQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7",
ShortHash: "QmQu\u2026xDu7",
}, {
Size: "1 KiB",
Name: "this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt",
Path: testPath + "/this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt",
Hash: "QmquXbaRQXB2mzChmMeKY47C43LxUdg1NDJ5MWcKMKxDu7",
ShortHash: "Qmqu\u2026xDu7",
}},
Size: "25 MiB",
Path: testPath,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment