regluit/frontend/templates/subjects.html

43 lines
1.7 KiB
HTML
Raw Normal View History

2015-04-28 03:24:02 +00:00
{% extends 'base.html' %}
2016-05-11 14:41:50 +00:00
{% block content %}
<div id="js-topsection">
<div class="js-main">
2015-03-12 15:58:49 +00:00
<h1>Keywords</h1>
<p>
2015-03-12 15:58:49 +00:00
Below is a list of keywords for books that users have added to
wishlists. It is here primarily to show what keywords are present
in the database to guide further development.
</p>
<ul>
2015-04-28 03:24:02 +00:00
<li> ordered by <a href="{% url 'subjects' %}">keyword name</a> </li>
<li> ordered by <a href="{% url 'subjects' %}?order=count">number</a> of works with the keyword.</li>
<li> ordered by <a href="{% url 'subjects' %}?subset=free">keyword name</a> (free works only)</li>
<li> ordered by <a href="{% url 'subjects' %}?order=count&amp;subset=free">number</a> of free works with the keyword.</li>
<li> <a href="{% url 'free' %}?order_by=subjects">free works needing keywords</a></li>
2015-03-12 15:58:49 +00:00
{% if request.user.is_staff %}
2015-04-28 03:24:02 +00:00
<li> <a href="{% url 'map_subject' %}">keyword mapping form</a></li>
2015-03-12 15:58:49 +00:00
{% endif %}
</ul>
<p>
<ul>
{% for subject in subjects %}
2014-12-11 00:29:27 +00:00
2015-04-28 03:24:02 +00:00
<li><a href="{% url 'free' %}kw.{{ subject.name }}/">{{ subject.name }}</a>
({% if subject.works__is_free__count %}{{ subject.works__is_free__count }} free out of {{ subject.works.all.count }}{% else %}{{ subject.works__count }}{% endif %} total works).
2015-04-28 03:24:02 +00:00
{% if request.user.is_staff %} <a href="{% url 'free' %}?setkw={{ subject.name }}">set</a> keywords.
<a href="{% url 'admin:core_subject_change' subject.id %}">edit</a>{% endif %} keyword.
</li>
{% endfor %}
</ul>
</p>
</div>
</div>
{% endblock %}