View logic improvements

This commit is contained in:
Chris Kankiewicz
2020-02-17 23:31:57 -07:00
parent 4ee4326f3b
commit f714ac5b55
2 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

@@ -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>