Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove dir-index-html submodule #8555

Merged
merged 117 commits into from
Nov 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
2089c6e
fork
jbenet Jul 16, 2015
d7dd53a
First commit
rht Jul 16, 2015
166064b
Update README.md
jbenet Aug 28, 2015
9fa10e5
Remove 'bytes'
rht Aug 28, 2015
63f5015
Embed directory-listing styles
rht Sep 4, 2015
eda829e
Adds url escaping of entries.
hackergrrl Mar 3, 2016
27a7bf8
Merge pull request #9 from noffle/master
noffle Mar 3, 2016
b60dfd0
Standardize README
RichardLitt Jun 18, 2016
91b190c
Added note about usage from #11
RichardLitt Jun 19, 2016
e4598c9
Merge pull request #10 from ipfs/feature/standardize-readme
Jun 19, 2016
b03c338
Fill in package.json
Sep 1, 2016
d274359
Release v1.0.1
Sep 1, 2016
8d06168
Add an empty Go file for imports
Sep 1, 2016
66cbbeb
Release v1.0.2
Sep 1, 2016
3bca0e5
Fix version for gx
Sep 1, 2016
76b6774
Release v1.0.3
Sep 1, 2016
5d5d7c6
Add "jpeg" as an alias to "jpg".
TUSF Jul 4, 2018
d9fb37f
Merge pull request #16 from TUSF/master
Stebalien Jul 5, 2018
427874e
show hash if given
jackloughran Dec 11, 2018
aa28edf
Merge pull request #21 from jackloughran/feat/gateway/always-show-hash
Stebalien Dec 20, 2018
a2330df
gx publish 1.0.4
Stebalien Dec 20, 2018
6681721
dir-index.html only: header colors
jessicaschilling Apr 21, 2020
6895e1c
dir-index.html only: updated IPFS logo
jessicaschilling Apr 21, 2020
b976e3c
dir-index.html only: wrap up header styling, add bug report icon
jessicaschilling Apr 21, 2020
9044547
Revert "dir-index.html only: wrap up header styling, add bug report i…
jessicaschilling Apr 21, 2020
67f1ee2
Revert "dir-index.html only: updated IPFS logo"
jessicaschilling Apr 21, 2020
0bd2fe1
Revert "dir-index.html only: header colors"
jessicaschilling Apr 21, 2020
5fda019
dir-index-html only: header colors/border, updated IPFS logo, add lin…
jessicaschilling Apr 21, 2020
9ebbd58
Duplicated dir-index.html changes to dir-index-uncat.html
jessicaschilling Apr 21, 2020
545a1fd
Merge pull request #26 from ipfs/issue-1
Stebalien Apr 21, 2020
936511a
doc: document how to update
Stebalien Apr 21, 2020
72bd9a0
Merge pull request #27 from ipfs/doc/document-how-to-update
jessicaschilling Apr 21, 2020
5ac9f15
Update screenshot in README.md (#28)
jessicaschilling Apr 23, 2020
31176ee
Add standard issue template
hsanjuan Apr 27, 2020
6f49361
Prettify CSS so to be able to pull it apart
jessicaschilling Apr 30, 2020
514701a
Adds meta viewport to enable responsive behavior; starts rearranging …
jessicaschilling Apr 30, 2020
d1706c9
Heavy-duty css cleanup; more to come
jessicaschilling May 1, 2020
b08a78a
Add autocomment configuration
hsanjuan May 4, 2020
7ad16db
feat: add a test server
Stebalien May 4, 2020
96c9242
Update test/main.go
jessicaschilling May 4, 2020
ff81d2e
Update test/main.go
jessicaschilling May 4, 2020
4624f09
Update test/main.go
jessicaschilling May 4, 2020
2d4c67e
Merge pull request #31 from ipfs/feat/test-server
jessicaschilling May 4, 2020
5ee46bb
Prettify CSS so to be able to pull it apart
jessicaschilling Apr 30, 2020
9b847f9
Adds meta viewport to enable responsive behavior; starts rearranging …
jessicaschilling Apr 30, 2020
d74941a
Heavy-duty css cleanup; more to come
jessicaschilling May 1, 2020
d760862
Update print styles
jessicaschilling May 4, 2020
1c937ad
Update path to match example hash
jessicaschilling May 4, 2020
b11ebc4
Added word-break, converted px to em, misc tightening
jessicaschilling May 4, 2020
18f090e
all extraneous style should be removed now
jessicaschilling May 4, 2020
96ea8c9
Alphabetized styles
jessicaschilling May 4, 2020
e8d38c9
No line breaks in file sizes; applied file icon width to parent td
jessicaschilling May 4, 2020
3cf460a
Added test rows and known icons for 5 most common video format
jessicaschilling May 4, 2020
f09a17a
Added .mkv format to knownIcons and test
jessicaschilling May 4, 2020
ead870f
Added icons for mkv, mov, wmv per #19
jessicaschilling May 4, 2020
702b775
Remove extra video test items
jessicaschilling May 4, 2020
d9abf94
Updated uncat linked files, minified dir-index
jessicaschilling May 4, 2020
6332a7d
Update hash for linked CSS assets in uncat
jessicaschilling May 4, 2020
174672a
Merge branch 'makeresponsive-removefontrefs' of https://github.com/ip…
jessicaschilling May 5, 2020
4bd6455
Updated link color; removed extraneous style from dir-index-uncat.html
jessicaschilling May 5, 2020
e391655
Merge pull request #29 from ipfs/makeresponsive-removefontrefs
jessicaschilling May 5, 2020
632e26d
update contributing link
stensonb May 12, 2020
08410fc
Merge pull request #32 from stensonb/patch-1
jessicaschilling May 12, 2020
9b59f1c
Add base64 favicon
jessicaschilling Jun 22, 2020
0bebaf5
Add social card meta tags
jessicaschilling Jun 22, 2020
972d42a
Remove duplicate
jessicaschilling Jun 22, 2020
8b9a9e8
Update dir-index-uncat.html
jessicaschilling Jun 22, 2020
6c8ed61
Update dir-index-uncat.html
jessicaschilling Jun 22, 2020
0accd43
Update dir-index-uncat.html
jessicaschilling Jun 22, 2020
59b8599
Dynamic titles in both places
jessicaschilling Jun 22, 2020
7f75e7b
Reverses meta content order for Facebook and others that use the og:f…
jessicaschilling Jun 22, 2020
269b1d0
Merge pull request #36 from ipfs/feat/favicon
jessicaschilling Jun 25, 2020
beb1120
Display viewed directory's size
Jul 2, 2020
8c03fc4
Make path components into links
Jul 3, 2020
51e423e
Add CID column
Jul 3, 2020
84cf3eb
minify css additions
Jul 7, 2020
c5d042a
Fix type-icon size at narrow viewport widths
Jul 7, 2020
ce0dcea
Use short hash for uniform CID presentation of directory items
Jul 15, 2020
deab971
Use gateway URL when linking to another CID root
Jul 18, 2020
fbb6b72
chore: format test/main.go
Jul 18, 2020
354f12b
Merge pull request #38 from neatonk/master
jessicaschilling Jul 23, 2020
3527e53
Remove extraneous meta keywords
jessicaschilling Jul 23, 2020
bdc382b
Make ipfs-hash class monospace and reuse in table rows
jessicaschilling Jul 23, 2020
06c0303
Temp switch to in-project local style and icons; WILL NEED TO REVERT …
jessicaschilling Jul 23, 2020
96eed24
Replaces style.css from style used in head of dir-index.html; replace…
jessicaschilling Jul 23, 2020
2d873fd
Update stylesheet CID
jessicaschilling Jul 23, 2020
92c9126
Merge pull request #39 from ipfs/chore/reconcile-uncat
jessicaschilling Jul 24, 2020
fa0f5a0
Update screenshot
jessicaschilling Jul 24, 2020
bc0496d
Move html and beautified css into src directory
jessicaschilling Jul 24, 2020
414c0e9
Relative path css links
jessicaschilling Jul 24, 2020
3e83eba
Tidy package.json and add description, homepage
jessicaschilling Jul 24, 2020
f181cbc
Move icons credit comment; basic build script but minifying goes too far
jessicaschilling Jul 24, 2020
674440b
Don't minify spaces
jessicaschilling Jul 24, 2020
f10bbf5
Remove superflous spaces after colons in css
jessicaschilling Jul 24, 2020
fde086d
Point test at dist dir
jessicaschilling Jul 24, 2020
cf842f9
Explicit paths in scripts; add script for removing unused items
jessicaschilling Jul 24, 2020
269976b
Add dist asset generated by build script
jessicaschilling Jul 24, 2020
45869d3
Update readme for changes in update/test/release process
jessicaschilling Jul 24, 2020
5b78881
Update package.json
jessicaschilling Jul 27, 2020
39d74cd
Complete with newline from @ribasushi
jessicaschilling Jul 27, 2020
02bcd04
Minified file to top level, changes scripts and test accordingly
jessicaschilling Jul 27, 2020
8a9c62e
Create build.yml
lidel Jul 27, 2020
9603194
Merge pull request #40 from ipfs/feat/add-build-script
jessicaschilling Jul 27, 2020
df92aca
fix: run CI checks on PRs (#41)
lidel Jul 28, 2020
dc0400b
Create CHANGELOG.md
jessicaschilling Aug 24, 2020
3f67a81
feat: improved CID column
lidel Sep 26, 2020
b12c35a
fix(ci): avoid uncommited changes with custom shells
lidel Sep 26, 2020
92efd3d
Merge pull request #43 from ipfs/fix/links-when-dnslink
jessicaschilling Sep 28, 2020
594c218
Update package.json
jessicaschilling Sep 28, 2020
5c6147f
Merge pull request #44 from ipfs/chore-bump-version-in-package.json
jessicaschilling Sep 28, 2020
4ca119c
fix: avoid unnecessary css parsing (#53)
BenLubar Oct 1, 2021
5d9b6d5
fix: disable translation of cids
lidel Oct 1, 2021
8deaff5
fix: explicit language of the document
lidel Oct 1, 2021
67e75cd
Merge pull request #56 from ipfs/fix/disable-i18n-for-cids
lidel Oct 1, 2021
24ab9af
removed dir-index-html submodule
longfeiWan9 Nov 18, 2021
87fb60b
Update go generate command and edit readme accordingly
longfeiWan9 Nov 18, 2021
302c97f
chore: cleanup after merging dir-index-html
lidel Nov 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

37 changes: 2 additions & 35 deletions assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This directory contains the go-ipfs assets:

* Getting started documentation (`init-doc`).
* Directory listing HTML template (`dir-index-html` git submodule).
* Directory listing HTML template (`dir-index-html`).

These assets are compiled into `bindata.go` with `go generate`.

Expand All @@ -16,37 +16,4 @@ assets directory:

```
go generate .
```

## Updating dir-index-html

Upstream: https://github.com/ipfs/dir-index-html

dir-index-html is a git submodule. To update, run the following commands from
this directory.

```bash
> git -C dir-index-html pull
> git -C dir-index-html checkout vX.Y.Z # target version
```

Then, you'll need to commit the updated submodule _before_ regenerating
`bindata.go`. Otherwise, `go generate` will checkout the checked-in version of
dir-index-html.

```bash
> git add dir-index-html
> git commit -m 'chore: update dir-index-html to vX.Y.Z'
```

Finally, re-generate the directory index HTML template, tidy, and amend the previous
commit.

```bash
> go generate .
> git add bindata.go
> git add bindata_version_hash.go
> go mod tidy
> git commit --amend --no-edit

```
```
2 changes: 1 addition & 1 deletion assets/assets.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:generate git submodule update --init ./dir-index-html
longfeiWan9 marked this conversation as resolved.
Show resolved Hide resolved
//go:generate npm run build --prefix ./dir-index-html/
//go:generate go run github.com/go-bindata/go-bindata/v3/go-bindata -mode=0644 -modtime=1403768328 -pkg=assets init-doc dir-index-html/dir-index.html dir-index-html/knownIcons.txt
//go:generate gofmt -s -w bindata.go
//go:generate sh -c "sed -i \"s/.*BindataVersionHash.*/BindataVersionHash=\\\"$(git hash-object bindata.go)\\\"/\" bindata_version_hash.go"
Expand Down
1 change: 0 additions & 1 deletion assets/dir-index-html
Submodule dir-index-html deleted from 67e75c
26 changes: 26 additions & 0 deletions assets/dir-index-html/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# dir-index-html

> Directory listing HTML for `go-ipfs` gateways

![](https://user-images.githubusercontent.com/157609/88379209-ce6f0600-cda2-11ea-9620-20b9237bb441.png)

## Updating

When making updates to the directory listing page template, please note the following:

1. Make your changes to the (human-friendly) source documents in the `src` directory and run `npm run build`
3. Before testing or releasing, go to the top-level `./assets` directory and make sure to run the `go generate .` script to update the bindata version

## Testing

1. Make sure you have [Go](https://golang.org/dl/) installed
2. Start the test server, which lives in its own directory:

```bash
> cd test
> go run .
```
This will listen on [`localhost:3000`](http://localhost:3000/) and reload the template every time you refresh the page.

If you get a "no such file or directory" error upon trying `go run .`, make sure you ran `npm run build` to generate the minified artifact that the test is looking for.

97 changes: 97 additions & 0 deletions assets/dir-index-html/dir-index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/dir-index-html/index.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package dirindexhtml
65 changes: 65 additions & 0 deletions assets/dir-index-html/knownIcons.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
.aac
.aiff
.ai
.avi
.bmp
.c
.cpp
.css
.dat
.dmg
.doc
.dotx
.dwg
.dxf
.eps
.exe
.flv
.gif
.h
.hpp
.html
.ics
.iso
.java
.jpg
.jpeg
.js
.key
.less
.mid
.mkv
.mov
.mp3
.mp4
.mpg
.odf
.ods
.odt
.otp
.ots
.ott
.pdf
.php
.png
.ppt
.psd
.py
.qt
.rar
.rb
.rtf
.sass
.scss
.sql
.tga
.tgz
.tiff
.txt
.wav
.wmv
.xls
.xlsx
.xml
.yml
.zip
17 changes: 17 additions & 0 deletions assets/dir-index-html/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "dir-index-html",
"description": "Directory listing HTML for go-ipfs gateways",
"version": "1.3.0",
"private": true,
"homepage": "https://github.com/ipfs/go-ipfs",
"license": "MIT",
"scripts": {
"start": "cd test && go run .",
"build": "npm run build:clean && npm run build:remove-style-links && npm run build:minify-wrap-css && npm run build:combine-html-css && npm run build:remove-unused",
longfeiWan9 marked this conversation as resolved.
Show resolved Hide resolved
"build:clean": "rm dir-index.html",
"build:remove-style-links": "sed '/<link rel=\"stylesheet\"/d' ./src/dir-index.html > ./base-html.html",
"build:minify-wrap-css": "(echo \"<style>\" && cat ./src/icons.css ./src/style.css | tr -d \"\t\n\r\" && echo && echo \"</style>\") > ./minified-wrapped-style.html",
"build:combine-html-css": "sed '/<\\/title>/ r ./minified-wrapped-style.html' ./base-html.html > ./dir-index.html",
"build:remove-unused": "rm ./base-html.html && rm ./minified-wrapped-style.html"
}
}
96 changes: 96 additions & 0 deletions assets/dir-index-html/src/dir-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<!DOCTYPE html>
{{ $root := . }}
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="description" content="A directory of files hosted on the distributed, decentralized web using IPFS">
<meta property="og:title" content="Files on IPFS">
<meta property="og:description" content="{{ .Path }}">
<meta property="og:type" content="website">
<meta property="og:image" content="https://gateway.ipfs.io/ipfs/QmSDeYAe9mga6NdTozAZuyGL3Q1XjsLtvX28XFxJH8oPjq">
<meta name="twitter:title" content="{{ .Path }}">
<meta name="twitter:description" content="A directory of files hosted on the distributed, decentralized web using IPFS">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://gateway.ipfs.io/ipfs/QmSDeYAe9mga6NdTozAZuyGL3Q1XjsLtvX28XFxJH8oPjq">
<meta name="twitter:creator" content="@ipfs">
<meta name="twitter:site" content="@ipfs">
<meta name="image" content="https://gateway.ipfs.io/ipfs/QmSDeYAe9mga6NdTozAZuyGL3Q1XjsLtvX28XFxJH8oPjq">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlo89/56ZQ/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUjDu1lo89/6mhTP+zrVP/nplD/5+aRK8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHNiIS6Wjz3/ubFY/761W/+vp1D/urRZ/8vDZf/GvmH/nplD/1BNIm8AAAAAAAAAAAAAAAAAAAAAAAAAAJaPPf+knEj/vrVb/761W/++tVv/r6dQ/7q0Wf/Lw2X/y8Nl/8vDZf+tpk7/nplD/wAAAAAAAAAAAAAAAJaPPf+2rVX/vrVb/761W/++tVv/vrVb/6+nUP+6tFn/y8Nl/8vDZf/Lw2X/y8Nl/8G6Xv+emUP/AAAAAAAAAACWjz3/vrVb/761W/++tVv/vrVb/761W/+vp1D/urRZ/8vDZf/Lw2X/y8Nl/8vDZf/Lw2X/nplD/wAAAAAAAAAAlo89/761W/++tVv/vrVb/761W/++tVv/r6dQ/7q0Wf/Lw2X/y8Nl/8vDZf/Lw2X/y8Nl/56ZQ/8AAAAAAAAAAJaPPf++tVv/vrVb/761W/++tVv/vbRa/5aPPf+emUP/y8Nl/8vDZf/Lw2X/y8Nl/8vDZf+emUP/AAAAAAAAAACWjz3/vrVb/761W/++tVv/vrVb/5qTQP+inkb/op5G/6KdRv/Lw2X/y8Nl/8vDZf/Lw2X/nplD/wAAAAAAAAAAlo89/761W/++tVv/sqlS/56ZQ//LxWb/0Mlp/9DJaf/Kw2X/oJtE/7+3XP/Lw2X/y8Nl/56ZQ/8AAAAAAAAAAJaPPf+9tFr/mJE+/7GsUv/Rymr/0cpq/9HKav/Rymr/0cpq/9HKav+xrFL/nplD/8vDZf+emUP/AAAAAAAAAACWjz3/op5G/9HKav/Rymr/0cpq/9HKav/Rymr/0cpq/9HKav/Rymr/0cpq/9HKav+inkb/nplD/wAAAAAAAAAAAAAAAKKeRv+3slb/0cpq/9HKav/Rymr/0cpq/9HKav/Rymr/0cpq/9HKav+1sFX/op5G/wAAAAAAAAAAAAAAAAAAAAAAAAAAop5GUKKeRv/Nxmf/0cpq/9HKav/Rymr/0cpq/83GZ/+inkb/op5GSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAop5G16KeRv/LxWb/y8Vm/6KeRv+inkaPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAop5G/6KeRtcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/n8AAPgfAADwDwAAwAMAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAwAMAAPAPAAD4HwAA/n8AAA==" />
<link rel="stylesheet" href="style.css"/>
<link rel="stylesheet" href="icons.css">
<title>{{ .Path }}</title>
</head>
<body>
<div id="page-header">
<div id="page-header-logo" class="ipfs-logo">&nbsp;</div>
<div id="page-header-menu">
<div class="menu-item-wide"><a href="https://ipfs.io" target="_blank" rel="noopener noreferrer">About IPFS</a></div>
<div class="menu-item-wide"><a href="https://ipfs.io#install" target="_blank" rel="noopener noreferrer">Install IPFS</a></div>
<div class="menu-item-narrow"><a href="https://ipfs.io" target="_blank" rel="noopener noreferrer">About</a></div>
<div class="menu-item-narrow"><a href="https://ipfs.io#install" target="_blank" rel="noopener noreferrer">Install</a></div>
<div>
<a href="https://github.com/ipfs/dir-index-html/issues/" target="_blank" rel="noopener noreferrer">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18.4 21"><circle cx="7.5" cy="4.8" r="1"/><circle cx="11.1" cy="4.8" r="1"/><path d="M12.7 8.4c-0.5-1.5-1.9-2.5-3.5-2.5 -1.6 0-3 1-3.5 2.5H12.7z"/><path d="M8.5 9.7H5c-0.5 0.8-0.7 1.7-0.7 2.7 0 2.6 1.8 4.8 4.2 5.2V9.7z"/><path d="M13.4 9.7H9.9v7.9c2.4-0.4 4.2-2.5 4.2-5.2C14.1 11.4 13.9 10.5 13.4 9.7z"/><circle cx="15.7" cy="12.9" r="1"/><circle cx="15.1" cy="15.4" r="1"/><circle cx="15.3" cy="10.4" r="1"/><circle cx="2.7" cy="12.9" r="1"/><circle cx="3.3" cy="15.4" r="1"/><circle cx="3.1" cy="10.4" r="1"/></svg>
</a>
</div>
</div>
</div>
<div id="content">
<div id="content-header" class="d-flex flex-wrap">
<div>
<strong>
Index of
{{ range .Breadcrumbs -}}
/{{ if .Path }}<a href="{{ $root.GatewayURL }}{{ .Path | urlEscape }}">{{ .Name }}</a>{{ else }}{{ .Name }}{{ end }}
{{- else }}
{{ .Path }}
{{ end }}
</strong>
{{ if .Hash }}
<div class="ipfs-hash" translate="no">
{{ .Hash }}
</div>
{{ end }}
</div>
{{ if .Size }}
<div class="no-linebreak flex-shrink-1 ml-auto">
<strong>&nbsp;{{ .Size }}</strong>
</div>
{{ end }}
</div>
<div class="table-responsive">
<table>
<tr>
<td class="type-icon">
<div class="ipfs-_blank">&nbsp;</div>
</td>
<td>
<a href="{{.BackLink | urlEscape}}">..</a>
</td>
<td></td>
<td></td>
</tr>
{{ range .Listing }}
<tr>
<td class="type-icon">
<div class="{{iconFromExt .Name}}">&nbsp;</div>
</td>
<td>
<a href="{{ .Path | urlEscape }}">{{ .Name }}</a>
</td>
<td class="no-linebreak">
{{ if .Hash }}
<a class="ipfs-hash" translate="no" href={{ if $root.DNSLink }}"https://cid.ipfs.io/#{{ .Hash | urlEscape}}" target="_blank" rel="noreferrer noopener"{{ else }}"{{ $root.GatewayURL }}/ipfs/{{ .Hash | urlEscape}}?filename={{ .Name | urlEscape }}"{{ end }}>
{{ .ShortHash }}
</a>
{{ end }}
</td>
<td class="no-linebreak">{{ .Size }}</td>
</tr>
{{ end }}
</table>
</div>
</div>
</body>
</html>
Loading