cdn

Log | Files | Refs | Activity

commit 622de3cce0f669ef3f0e19c1e2e4b338889c79ee
parent f9cb2bfd774e83fe90f2c54828979923aa96c39e
Author: Amit Dutta <mail@amit.is-a.dev>
Date:   Fri,  4 Sep 2026 16:41:28 +0530

Refactor index.html for clarity and functionality

Removed unnecessary comment and updated parent link logic.
Diffstat:
Mapp/templates/index.html | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/app/templates/index.html b/app/templates/index.html @@ -26,7 +26,6 @@ <meta property="og:type" content="website"> <meta name="twitter:card" content="summary"> - <!-- Turbo for fast navigation --> <script type="module" src="https://cdn.jsdelivr.net/npm/@hotwired/turbo@8.0.4/dist/turbo.es2017-esm.js"></script> <style> @@ -241,7 +240,6 @@ .container { transition: opacity 0.15s ease; } - /* Applied only during active navigations to dim the screen */ body.turbo-loading .container { opacity: 0.5; pointer-events: none; @@ -352,7 +350,12 @@ <div class="list-item" data-name=".."> <div class="item-name"> <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 14l-4-4 4-4"/><path d="M5 10h11a4 4 0 1 1 0 8h-1"/></svg> - <a href="../">..</a> + {% set parent_path = '/' %} + {% set path_parts = path.split('/') %} + {% if path_parts|length > 1 %} + {% set parent_path = '/' + path_parts[:-1]|join('/') %} + {% endif %} + <a href="{{ parent_path }}">..</a> </div> </div> {% endif %}
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror