Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Commit aa28edf

Browse files
authored
Merge pull request #21 from jackloughran/feat/gateway/always-show-hash
show hash if given
2 parents d9fb37f + 427874e commit aa28edf

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

dir-index-uncat.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
.ipfs-icon {
2020
width:16px;
2121
}
22+
.ipfs-hash {
23+
color: #999;
24+
}
2225
</style>
2326
<title>{{ .Path }}</title>
2427
</head>
@@ -33,6 +36,11 @@
3336
<div class="panel panel-default">
3437
<div class="panel-heading">
3538
<strong>Index of {{ .Path }}</strong>
39+
{{ if .Hash }}
40+
<div class="ipfs-hash">
41+
{{ .Hash }}
42+
</div>
43+
{{ end }}
3644
</div>
3745
<table class="table table-striped">
3846
<tr>

dir-index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
.ipfs-icon {
1818
width:16px;
1919
}
20+
.ipfs-hash {
21+
color: #999;
22+
}
2023
</style>
2124
<title>{{ .Path }}</title>
2225
</head>
@@ -31,6 +34,11 @@
3134
<div class="panel panel-default">
3235
<div class="panel-heading">
3336
<strong>Index of {{ .Path }}</strong>
37+
{{ if .Hash }}
38+
<div class="ipfs-hash">
39+
{{ .Hash }}
40+
</div>
41+
{{ end }}
3442
</div>
3543
<table class="table table-striped">
3644
<tr>

0 commit comments

Comments
 (0)