show hash if given
This template will only get passed the hash value if the hash is not already being shown in the path. If a hash value is passed in, it will display under the path in grey. License: MIT Singed-off-by: Jack Loughran <j@ckloughran.com>
Jack Loughran committed
Dec 11, 2018 at 07:04 UTC
427874e3ccab7876bb4127d24635d0287bb81ca2
2 files changed
+16
dir-index-uncat.html
+8
@@ -19,6 +19,9 @@
19
.ipfs-icon {
20
width:16px;
21
}
22
+ .ipfs-hash {
23
+ color: #999;
24
+ }
25
</style>
26
<title>{{ .Path }}</title>
27
</head>
@@ -33,6 +36,11 @@
36
<div class="panel panel-default">
37
<div class="panel-heading">
38
<strong>Index of {{ .Path }}</strong>
39
+ {{ if .Hash }}
40
+ <div class="ipfs-hash">
41
+ {{ .Hash }}
42
+ </div>
43
+ {{ end }}
44
</div>
45
<table class="table table-striped">
46
<tr>
dir-index.html
+8
@@ -17,6 +17,9 @@
17
.ipfs-icon {
18
width:16px;
19
}
20
+ .ipfs-hash {
21
+ color: #999;
22
+ }
23
</style>
24
<title>{{ .Path }}</title>
25
</head>
@@ -31,6 +34,11 @@
34
<div class="panel panel-default">
35
<div class="panel-heading">
36
<strong>Index of {{ .Path }}</strong>
37
+ {{ if .Hash }}
38
+ <div class="ipfs-hash">
39
+ {{ .Hash }}
40
+ </div>
41
+ {{ end }}
42
</div>
43
<table class="table table-striped">
44
<tr>