]> arthur.barton.de Git - bup.git/commitdiff
web: make leaf path component a link too
authorRob Browning <rlb@defaultvalue.org>
Sat, 1 May 2021 19:35:47 +0000 (14:35 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 15 May 2021 19:09:13 +0000 (14:09 -0500)
This allows it to serve the same purpose as the removed "." link,
without any additional clutter.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/web/list-directory.html

index 45b1f1d22e2e11ebca80bcc0906c9241ee4cb06e..db0720c64486ba01260aba477c4b16f2c20e3678 100644 (file)
@@ -9,10 +9,9 @@
     <body>
         <div id="wrapper">
             <div id="breadcrumb">
-                {% for (display, part_path) in breadcrumbs[:-1] %}
+                {% for (display, part_path) in breadcrumbs %}
                 <a href="{{ part_path }}">{{ display }}</a> /
                 {% end %}
-                <strong>{{ breadcrumbs[-1][0] }}</strong>
             </div>
             {% if files_hidden %}
             <div id="message">