Commit 427874e3 authored by Jack Loughran's avatar Jack Loughran

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: default avatarJack Loughran <j@ckloughran.com>
parent d9fb37f9
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
.ipfs-icon { .ipfs-icon {
width:16px; width:16px;
} }
.ipfs-hash {
color: #999;
}
</style> </style>
<title>{{ .Path }}</title> <title>{{ .Path }}</title>
</head> </head>
...@@ -33,6 +36,11 @@ ...@@ -33,6 +36,11 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<strong>Index of {{ .Path }}</strong> <strong>Index of {{ .Path }}</strong>
{{ if .Hash }}
<div class="ipfs-hash">
{{ .Hash }}
</div>
{{ end }}
</div> </div>
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
......
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
.ipfs-icon { .ipfs-icon {
width:16px; width:16px;
} }
.ipfs-hash {
color: #999;
}
</style> </style>
<title>{{ .Path }}</title> <title>{{ .Path }}</title>
</head> </head>
...@@ -31,6 +34,11 @@ ...@@ -31,6 +34,11 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<strong>Index of {{ .Path }}</strong> <strong>Index of {{ .Path }}</strong>
{{ if .Hash }}
<div class="ipfs-hash">
{{ .Hash }}
</div>
{{ end }}
</div> </div>
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
......
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