Sindbad~EG File Manager
<h5 class="mb-1">Files : <span class="h5">({{ files|length }}) </span></h5>
{% if files %}
<table class="table" >
<thead>
<tr>
<!-- <th width="10%">
thumbnail
</th> -->
<th width="60%">
Name
</th>
<th width="20%">
Modified
</th>
<th>
</th>
</tr>
<tbody id="search_files">
{% for file in files %}
<tr>
<!-- <td valign="middle" class="text-center">
<img src="" class="thumbnail" data-path="{{file.path_display}}" alt="Thumbnail" style="width: 50px;height: 50px;display: none;">
</td> -->
<td valign="middle">
{{ file.name }}
</td>
<td valign="middle">
{{ Helper.convert_indian_datetime(file.client_modified).strftime('%d-%m-%Y') if file.server_modified else '' }}
{{ Helper.convert_indian_datetime(file.client_modified).strftime('%I:%M %p') if file.server_modified else '' }}
</td>
<td valign="middle">
<button type="button" class="btn btn-outline-primary" onclick="previewModal('{{file.path_display}}')">
<i class="fa-regular fa-eye"></i></button>
<button type="button" class="btn btn-outline-danger" onclick="downloadFile('{{file.path_display}}')">
<i class="fa-regular fa-download"></i></button>
<!--<a href="{{ url_for('dropbox.download_file',path=file.path_display)|unquote }}" class="btn btn-outline-danger"><i class="fa-regular fa-download"></i> 1</a> -->
</td>
</tr>
{% endfor %}
</tbody>
</thead>
</table>
{% else %}
<h6 class="text-danger">Files not found</h6>
{% endif %}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists