{% extends "base.html" %} {% block content %}

Content Status

Filters:
Status:
               

Author:
uuid:
Entries Per Page:
Page:




Showing {{start_entry + 1}} - {{start_entry + num_entries}} of {{total_entries}}


{% for state in states %} {% endfor %}
Created Title Authors State Print Style Recipe Link to book Message
{{ state.created.strftime('%Y-%m-%d %H:%M:%S') }} {{ state.title }} {{ state.authors }} {{ state.state }} {{ state.print_style }} {{ state.recipie }} {{ state.content_link }} {{ state.state_message }}
{% endblock %} {% block script %} function sortBooks(col) { var new_link = ""; var current_url = window.location.href; if (current_url.includes("sort=")) { new_sort = current_url.includes("sort=" + col + "%20ASC") ? "sort=" + col + " DESC" : "sort=" + col + " ASC"; new_link = current_url.replace(/sort=[^&]*/, new_sort); } else if (current_url.includes("/?")) { // no sort filter new_link = current_url + "&sort=" + col + " ASC"; } else { // no filters of any kind new_link = current_url + "?sort=" + col + " ASC"; } window.location.href = new_link; } {% endblock %}