2011-11-15 02:13:39 +00:00
{% extends "base.html" %}
{% block content %}
< div id = "js-topsection" >
< div class = "js-main" >
< h1 > Subjects< / h1 >
< p >
Below is a list of subjects for books that users have added to
wishlists. It is here primarily to show what subjects are present
2014-12-14 15:28:58 +00:00
in the database to guide further development.
2011-11-15 02:13:39 +00:00
< / p >
2014-12-14 15:28:58 +00:00
< ul >
< li > ordered by < a href = "{% url subjects %}" > subject name< / a > < / li >
< li > ordered by < a href = "{% url subjects %}?order=count" > number< / a > of works with the subject.< / li >
< li > ordered by < a href = "{% url subjects %}?subset=free" > subject name< / a > (free works only)< / li >
< li > ordered by < a href = "{% url subjects %}?order=count&subset=free" > number< / a > of free works with the subject.< / li >
2015-01-26 19:46:37 +00:00
< li > < a href = "{% url free %}?order_by=subjects" > free works needing subjects< / a >
2014-12-14 15:28:58 +00:00
< / ul >
2011-11-15 02:13:39 +00:00
< p >
< ul >
{% for subject in subjects %}
2014-12-11 00:29:27 +00:00
2014-12-14 15:28:58 +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).
{% if request.user.is_staff %} < a href = "{% url free %}?setkw={{ subject.name }}" > set keywords< / a > {% endif %}
< / li >
2011-11-15 02:13:39 +00:00
{% endfor %}
< / ul >
< / p >
< / div >
< / div >
{% endblock %}