{% extends "base.html" %} {% block title %}GOB - {{ domain }}{% endblock %} {% block content %}

Content Status

Status:
{% for state, state_icon in STATE_ICONS %} {% endfor %}

{% if states %} Showing {{ start_entry + 1 }} - {{ [start_entry + num_entries, total_entries]|sort|first }} of {{ total_entries }} {% else %} Showing 0 - 0 of {{ total_entries }} {% endif %}

{% for state in states %} {% endfor %}
Created Status Link Authors State Print Style Recipe Link to book Message
{{ state.created.strftime('%Y-%m-%d %H:%M:%S') }} {{ state.title }} {{ state.authors }} {{ state.state }} {% if state.print_style %} {{ state.print_style }} {% else %} None {% endif %} {% if state.recipe %} {{ state.recipe_name }} ({{ state.recipe_tag }}) {% else %} None {% endif %} {{ 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 %}