diff options
author | Stephen Finucane <stephenfinucane@hotmail.com> | 2015-04-07 22:20:53 +0100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2015-05-03 13:46:52 +0800 |
commit | d4a2c1f8792f52fec0c881ab38c91635840a50c0 (patch) | |
tree | f08cb31b6c2ad4a80bacbf9ba8a2b8b2b2cdca6d /templates/patchwork/patch-list.html | |
parent | c641660e041fdf932bad89681c167328ee85249a (diff) | |
download | patchwork-d4a2c1f8792f52fec0c881ab38c91635840a50c0.tar.bz2 patchwork-d4a2c1f8792f52fec0c881ab38c91635840a50c0.tar.xz |
Integrate 'django.contrib.staticfiles'
Rather than providing a custom solution for serving static files, use
the solution provided in the upstream Django source.
This allows us to remove the top-level 'urls.py' file.
Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates/patchwork/patch-list.html')
-rw-r--r-- | templates/patchwork/patch-list.html | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html index f8049f7..675f67f 100644 --- a/templates/patchwork/patch-list.html +++ b/templates/patchwork/patch-list.html @@ -1,5 +1,6 @@ {% load person %} {% load listurl %} +{% load static %} {% include "patchwork/pagination.html" %} @@ -50,7 +51,11 @@ {% ifequal order.name "name" %} <a class="colactive" href="{% listurl order=order.reversed_name %}"><img - src="/images/16-arrow-{% if order.reversed %}up{% else %}down{%endif%}.png" + {% if order.reversed %} + src="{% static "images/16-arrow-up.png" %}" + {% else %} + src="{% static "images/16-arrow-down.png" %}" + {%endif%} width="16" height="16" ></a> <a class="colactive" href="{% listurl order=order.reversed_name %}">Patch</a> @@ -67,7 +72,11 @@ {% ifequal order.name "date" %} <a class="colactive" href="{% listurl order=order.reversed_name %}"><img - src="/images/16-arrow-{% if order.reversed %}up{% else %}down{%endif%}.png" + {% if order.reversed %} + src="{% static "images/16-arrow-up.png" %}" + {% else %} + src="{% static "images/16-arrow-down.png" %}" + {%endif%} width="16" height="16" ></a> <a class="colactive" href="{% listurl order=order.reversed_name %}">Date</a> @@ -84,7 +93,11 @@ {% ifequal order.name "submitter" %} <a class="colactive" href="{% listurl order=order.reversed_name %}"><img - src="/images/16-arrow-{% if order.reversed %}up{% else %}down{%endif%}.png" + {% if order.reversed %} + src="{% static "images/16-arrow-up.png" %}" + {% else %} + src="{% static "images/16-arrow-down.png" %}" + {%endif%} width="16" height="16" ></a> <a class="colactive" href="{% listurl order=order.reversed_name %}">Submitter</a> @@ -101,7 +114,11 @@ {% ifequal order.name "delegate" %} <a class="colactive" href="{% listurl order=order.reversed_name %}"><img - src="/images/16-arrow-{% if order.reversed %}up{% else %}down{%endif%}.png" + {% if order.reversed %} + src="{% static "images/16-arrow-up.png" %}" + {% else %} + src="{% static "images/16-arrow-down.png" %}" + {%endif%} width="16" height="16" ></a> <a class="colactive" href="{% listurl order=order.reversed_name %}">Delegate</a> @@ -118,7 +135,11 @@ {% ifequal order.name "state" %} <a class="colactive" href="{% listurl order=order.reversed_name %}"><img - src="/images/16-arrow-{% if order.reversed %}up{% else %}down{%endif%}.png" + {% if order.reversed %} + src="{% static "images/16-arrow-up.png" %}" + {% else %} + src="{% static "images/16-arrow-down.png" %}" + {%endif%} width="16" height="16" ></a> <a class="colactive" href="{% listurl order=order.reversed_name %}">State</a> |