mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-26 07:15:30 +02:00
View logic improvements
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end items-center">
|
||||
{% if not search %}
|
||||
{% if path %}
|
||||
<a href="?zip={{ path }}" title="Download this Directory" class="inline-block text-white mx-2 p-1 hover:text-gray-400">
|
||||
<i class="fas fa-download fa-lg"></i>
|
||||
</a>
|
||||
|
@@ -21,7 +21,7 @@
|
||||
|
||||
<ul id="file-list">
|
||||
<li>
|
||||
{% if not search and path != '.' %}
|
||||
{% if path and path != '.' %}
|
||||
{{ include('components/file.twig', { parentDir: true }) }}
|
||||
{% endif %}
|
||||
</li>
|
||||
@@ -34,7 +34,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{% if readme and not search %}
|
||||
{% if readme %}
|
||||
{% include 'components/readme.twig' %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user