fixed BUG-36: view details showing all entries -- its a bit crap as its only import dir, but its functional again
This commit is contained in:
@@ -1,9 +1,28 @@
|
||||
{% extends "base.html" %} {% block main_content %}
|
||||
<div class="container">
|
||||
<h3 class="offset-lg-2">{{page_title}}</h3>
|
||||
<form id="main_form" method="POST">
|
||||
<input id="offset" type="hidden" name="offset" value="{{offset}}">
|
||||
<input id="grouping" type="hidden" name="grouping" value="">
|
||||
<input id="size" type="hidden" name="size" value="">
|
||||
<input id="cwd" type="hidden" name="cwd" value="">
|
||||
<input id="folders" type="hidden" name="folders" value="False">
|
||||
<div class="row">
|
||||
<div class="px-0 input-group col-lg-4">
|
||||
{{CreateSelect( "noo", noo, ["Oldest", "Newest","A to Z", "Z to A"], "$('#offset').val(0)")|safe }}
|
||||
{{CreateSelect( "how_many", how_many, ["10", "25", "50", "75", "100", "150", "200", "500"])|safe }}
|
||||
</div class="input-group...">
|
||||
<div class="col my-auto d-flex justify-content-center">
|
||||
<button id="prev" name="prev" class="prev sm-txt btn btn-info"><i class="fas fa-arrow-alt-circle-left"></i></button>
|
||||
<span class="sm-txt my-auto"> {{how_many}} files </span>
|
||||
<button id="next" name="next" class="next sm-txt btn btn-info"><i class="fas fa-arrow-alt-circle-right"></i></button>
|
||||
</div class="col...">
|
||||
</div class="row">
|
||||
</form
|
||||
<div class="row">
|
||||
<table class="table table-striped table-sm col-xl-12">
|
||||
<thead><tr class="thead-light"><th>Name</th><th>Size (MB)</th><th>Path Prefix</th><th>Hash</th></tr></thead><tbody>
|
||||
|
||||
{% for obj in entry_data %}
|
||||
<tr><td>
|
||||
{% if obj.type.name == "Directory" %}
|
||||
@@ -35,7 +54,7 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
{% if obj.type.name != "Directory" %}
|
||||
<td>{{obj.file_details.size_mb}}</td><td>{{obj.in_dir.path_prefix}}</td><td>{{obj.file_details.hash}}</td>
|
||||
<td>{{obj.file_details.size_mb}}</td><td>{{obj.in_dir.in_path.path_prefix.replace("static/","")}}/{{obj.in_dir.rel_path}}</td><td>{{obj.file_details.hash}}</td>
|
||||
{% else %}
|
||||
<td></td><td></td><td></td>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user