about summary refs log tree commit diff
path: root/hosted
diff options
context:
space:
mode:
Diffstat (limited to 'hosted')
-rw-r--r--hosted/tmpl/index.html29
1 files changed, 23 insertions, 6 deletions
diff --git a/hosted/tmpl/index.html b/hosted/tmpl/index.html
index ba9471c..2cfa2c8 100644
--- a/hosted/tmpl/index.html
+++ b/hosted/tmpl/index.html
@@ -77,6 +77,7 @@
                 </g>
             </defs>
         </svg>
+
         <header>
             <h1>
                 {{range $i, $crumb := .Breadcrumbs}}<a
@@ -89,7 +90,7 @@
                     <span class="meta-item"><b>{{.NumDirs}}</b> director{{if eq 1 .NumDirs}}y
                         {{else}}ies{{end}}</span>
                     <span class="meta-item"><b>{{.NumFiles}}</b> file{{if ne 1 .NumFiles}}s{{end}}</span>
-                    <span class="meta-item"><input type="text" placeholder="filter" id="filter"
+                    <span class="meta-item"><input class="right" type="text" placeholder="filter" id="filter"
                             onkeyup='filter()'></span>
                 </div>
             </div>
@@ -99,6 +100,8 @@
                         <tr>
                             <th></th>
                             <th>
+
+                                <!-- {{/*
                                 {{- if and (eq .Sort "namedirfirst") (ne .Order "desc")}}
                                 <a href="?sort=namedirfirst&order=desc"
                                     class="icon"><svg width="1em" height=".5em" version="1.1"
@@ -121,7 +124,9 @@
                                         <use xlink:href="#down-arrow"></use>
                                     </svg></a>
                                 {{- end}}
+                                */}} -->
 
+                                <!-- {{/*
                                 {{- if and (eq .Sort "name") (ne .Order "desc")}}
                                 <a
                                     href="?sort=name&order=desc">Name
@@ -135,11 +140,15 @@
                                         <use xlink:href="#down-arrow"></use>
                                     </svg></a>
                                 {{- else}}
+                                */}} -->
                                 <a
-                                    href="?sort=name&order=asc{{if ne 0 .ItemsLimitedTo}}&limit={{.ItemsLimitedTo}}{{end}}">Name</a>
+                                    href="#">Name</a>
+                                <!-- {{/*
                                 {{- end}}
+                                */}} -->
                             </th>
                             <th>
+                                <!-- {{/*
                                 {{- if and (eq .Sort "size") (ne .Order "desc")}}
                                 <a
                                     href="?sort=size&order=desc{{if ne 0 .ItemsLimitedTo}}&limit={{.ItemsLimitedTo}}{{end}}">Size
@@ -153,11 +162,15 @@
                                         <use xlink:href="#down-arrow"></use>
                                     </svg></a>
                                 {{- else}}
+                                */}} -->
                                 <a
-                                    href="?sort=size&order=asc{{if ne 0 .ItemsLimitedTo}}&limit={{.ItemsLimitedTo}}{{end}}">Size</a>
+                                    href="#">Size</a>
+                                <!-- {{/*
                                 {{- end}}
+                                */}} -->
                             </th>
                             <th class="hideable">
+                                <!-- {{/*
                                 {{- if and (eq .Sort "time") (ne .Order "desc")}}
                                 <a
                                     href="?sort=time&order=desc{{if ne 0 .ItemsLimitedTo}}&limit={{.ItemsLimitedTo}}{{end}}">Modified
@@ -171,9 +184,12 @@
                                         <use xlink:href="#down-arrow"></use>
                                     </svg></a>
                                 {{- else}}
+                                */}} -->
                                 <a
-                                    href="?sort=time&order=asc{{if ne 0 .ItemsLimitedTo}}&limit={{.ItemsLimitedTo}}{{end}}">Modified</a>
+                                    href="#">Modified</a>
+                                <!-- {{/*
                                 {{- end}}
+                                */}} -->
                             </th>
                             <th class="hideable"></th>
                         </tr>
@@ -196,7 +212,7 @@
                         <tr class="file">
                             <td></td>
                             <td>
-                                <a href="{{html .URL}}">
+                                <a href="{{html .URL}}{{if $item.Download}}?download{{end}}">
                                     {{- if $item.IsDir}}
                                     <svg width="1.5em" height="1em" version="1.1" viewBox="0 0 317 259">
                                         <use xlink:href="#folder{{if $item.IsSymlink}}-shortcut{{end}}"></use>
@@ -225,7 +241,8 @@
             </div>
         </main>
         <footer>
-            Served with <a rel="noopener noreferrer" href="https://caddyserver.com">Caddy</a>
+            Served with <a rel="noopener noreferrer" href="https://git.darknebu.la/emile/faila">faila</a>.
+            Theme by <a rel="noopener noreferrer" href="https://caddyserver.com">Caddy</a>.
         </footer>
         <script>
             var filterEl = document.getElementById('filter');