renamed pa_pref to better named pa_user_state, changed code to adapt and made new_view and viewlist work with newer Options/pa_user_state - still more work but it should be functional again

This commit is contained in:
2022-01-20 14:14:14 +11:00
parent 4fa7b4b2d3
commit 2dab42d712
2 changed files with 199 additions and 0 deletions

34
templates/states.html Normal file
View File

@@ -0,0 +1,34 @@
{% extends "base.html" %}
{% block main_content %}
<h3>PA User state page</h3>
<div class="container-fluid">
<div class="row">
<alert class="alert alert-warning">The following values are based on navigating the application and are not set by hand. This page is for checking/debugging only.</alert>
</div class="row">
<div class="row">
<table id="pa_user_state_tbl" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
<thead>
<tr class="table-primary"><th>Path</th><th>New or Oldest</th><th>How Many</th><th>Folders?</th><th>Group by</th><th>Thumb size</th><th>Fullscreen</th><th>DB retrieve offset</th><th>Root</th><th>cwd</th></tr>
</thead>
<tbody>
{% for st in states %}
<tr>
<td>{{st.path_type}}</td>
<td>{{st.noo}}</td>
<td>{{st.how_many}}</td>
<td>{{st.folders}}</td>
<td>{{st.grouping}}</td>
<td>{{st.size}}</td>
<td>{{st.fullscreen}}</td>
<td>{{st.st_offset}}</td>
<td>{{st.root}}</td>
<td>{{st.cwd}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div class="row">
</div class="container-fluid">
{% endblock main_content %}