Skip to content

Commit

Permalink
Merge pull request ipfs#21 from jackloughran/feat/gateway/always-show…
Browse files Browse the repository at this point in the history
…-hash

show hash if given
  • Loading branch information
Stebalien committed Dec 20, 2018
2 parents d9fb37f + 427874e commit aa28edf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dir-index-uncat.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
.ipfs-icon {
width:16px;
}
.ipfs-hash {
color: #999;
}
</style>
<title>{{ .Path }}</title>
</head>
Expand All @@ -33,6 +36,11 @@
<div class="panel panel-default">
<div class="panel-heading">
<strong>Index of {{ .Path }}</strong>
{{ if .Hash }}
<div class="ipfs-hash">
{{ .Hash }}
</div>
{{ end }}
</div>
<table class="table table-striped">
<tr>
Expand Down
8 changes: 8 additions & 0 deletions dir-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
.ipfs-icon {
width:16px;
}
.ipfs-hash {
color: #999;
}
</style>
<title>{{ .Path }}</title>
</head>
Expand All @@ -31,6 +34,11 @@
<div class="panel panel-default">
<div class="panel-heading">
<strong>Index of {{ .Path }}</strong>
{{ if .Hash }}
<div class="ipfs-hash">
{{ .Hash }}
</div>
{{ end }}
</div>
<table class="table table-striped">
<tr>
Expand Down

0 comments on commit aa28edf

Please sign in to comment.