summary refs log tree commit diff stats
path: root/templates
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2022-06-11 17:21:46 +0530
committerAndinus <andinus@nand.sh>2022-06-11 17:21:46 +0530
commit02f8885f05f09dcb57a358fcd3440eaf679c8c02 (patch)
treef194b467501e2f3c9981574952291bbd22906044 /templates
parent79aa4269eccfc6afdb6347b37956b16e7603f0b0 (diff)
downloadcrater-02f8885f05f09dcb57a358fcd3440eaf679c8c02.tar.gz
Add navigation bar to gallery
- Error on no images has been removed because there might be nested
  directories but 0 images & that is okay.
Diffstat (limited to 'templates')
-rw-r--r--templates/gallery.crotmp7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/gallery.crotmp b/templates/gallery.crotmp
index 6cc7fbf..e1d13e3 100644
--- a/templates/gallery.crotmp
+++ b/templates/gallery.crotmp
@@ -3,6 +3,13 @@
     <noscript>
       <div class="alert" role="alert">JavaScript required.</div>
     </noscript>
+    <?.show-nav>
+    <div id="nav">
+        <@nav : $p>
+        <a href="<$p.<url>>"><$p.<name>></a>&nbsp;/&nbsp;
+        </@>
+    </div>
+    </?>
     <div id="loading">
       <label for="loading-progress">Loading Images:</label>
       <progress id="loading-progress" max="100" value="0"></progress>