fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Work list: don't care about types of objects on other pages.
[wolnelektury.git]
/
apps
/
catalogue
/
templates
/
catalogue
/
work-list.html
diff --git
a/apps/catalogue/templates/catalogue/work-list.html
b/apps/catalogue/templates/catalogue/work-list.html
index
19ca7c7
..
fa33557
100755
(executable)
--- a/
apps/catalogue/templates/catalogue/work-list.html
+++ b/
apps/catalogue/templates/catalogue/work-list.html
@@
-1,13
+1,17
@@
{% load pagination_tags %}
{% load pagination_tags %}
-{% load book_short from catalogue_tags %}
+{% load book_short class_name book_short from catalogue_tags %}
+{% load picture_short from picture_tags %}
{% autopaginate object_list 10 %}
{% spaceless %}
<ol class='work-list'>
{% for item in object_list %}
{% autopaginate object_list 10 %}
{% spaceless %}
<ol class='work-list'>
{% for item in object_list %}
- <li class='{{
object_typ
e }}-item'>
+ <li class='{{
item|class_nam
e }}-item'>
{% if item.short_html %}
{{ item.short_html }}
{% if item.short_html %}
{{ item.short_html }}
+{# since we are using shor_html eerywhere, is it needed anymore? #}
+ {% elif item|class_name == "Picture" %}
+ {% picture_short item %}
{% else %}
{% book_short item %}
{% endif %}
{% else %}
{% book_short item %}
{% endif %}
@@
-15,4
+19,4
@@
{% endfor %}
</ol>
{% endspaceless %}
{% endfor %}
</ol>
{% endspaceless %}
-{% paginate %}
\ No newline at end of file
+{% paginate %}