diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2023-12-01 00:26:06 +0100 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2023-12-01 00:26:06 +0100 |
commit | 14e5580efd51c7b9e70d304715e512a2ea2a1b21 (patch) | |
tree | 8d118d355f631fd9225354d8dc65b4b225946489 /templates | |
parent | c3ea735c0f03a0827a8e753a5b5adf6e31f4c925 (diff) | |
download | lens-14e5580efd51c7b9e70d304715e512a2ea2a1b21.tar.gz lens-14e5580efd51c7b9e70d304715e512a2ea2a1b21.tar.bz2 lens-14e5580efd51c7b9e70d304715e512a2ea2a1b21.zip |
feat: Add option to download file
Diffstat (limited to 'templates')
-rw-r--r-- | templates/fs.qtpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/fs.qtpl b/templates/fs.qtpl index 3dc2c5a..7ffc39c 100644 --- a/templates/fs.qtpl +++ b/templates/fs.qtpl @@ -25,11 +25,11 @@ type FilePage struct { <span class="text-size-2"> {% if p.ShowMode %}{%s f.Info.Mode().String() %} {% endif %} {% if p.ShowOwner %}{%d f.GetGid() %}:{%d f.GetUid() %} {% endif %} - {% if f.Info.IsDir() %} </span> + {% if f.Info.IsDir() %} <a class="text-size-2" href="/?path={%s f.UrlEncodedPath %}">{%s f.Info.Name() %}/</a> {% else %} - {%s f.Info.Name() %} + <a class="text-size-2" href="/?path={%s f.UrlEncodedPath %}">{%s f.Info.Name() %}</a> {% endif %} </div> <div class="column text-size-2 has-text-right">{%dl f.Info.Size() %} B</div> |