fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes #3393: sponsor logo on picture viewer page.
[wolnelektury.git]
/
apps
/
picture
/
templates
/
picture
/
picture_viewer.html
diff --git
a/apps/picture/templates/picture/picture_viewer.html
b/apps/picture/templates/picture/picture_viewer.html
index
65b689d
..
a1fb991
100644
(file)
--- a/
apps/picture/templates/picture/picture_viewer.html
+++ b/
apps/picture/templates/picture/picture_viewer.html
@@
-42,7
+42,11
@@
</a></li>
<li id="sponsors">
</a></li>
<li id="sponsors">
- <a href="http://www.nck.pl"><img src="{% static "img/logo_nck.jpg" %}" alt="Narodowe Centrum Kultury" ></img></a>
+ {% for sponsor in sponsors %}
+ {% thumbnail sponsor.logo "80x200" as logo %}
+ <a href="{{ sponsor.url }}" target="_blank"><img src="{{ logo.url }}" alt="{{ sponsor.name }}" /></a>
+ {% endthumbnail %}
+ {% endfor %}
</li>
{% endblock %}
</li>
{% endblock %}
@@
-67,7
+71,11
@@
<div class="sponsors">
<a href="/"><img src="{% static "img/logo-220.png" %}" alt="Wolne Lektury" ></img>
</a>
<div class="sponsors">
<a href="/"><img src="{% static "img/logo-220.png" %}" alt="Wolne Lektury" ></img>
</a>
- <a href="http://www.nck.pl"><img src="{% static "img/logo_nck_200horiz_trans.png" %}" alt="Narodowe Centrum Kultury" ></img></a>
+ {% for sponsor in sponsors %}
+ {% thumbnail sponsor.logo "220x220" as logo %}
+ <a href="{{ sponsor.url }}" target="_blank"><img src="{{ logo.url }}" alt="{{ sponsor.name }}" /></a>
+ {% endthumbnail %}
+ {% endfor %}
</div>
{% book_info picture %}
</div>
{% book_info picture %}