From: Radek Czajka Date: Thu, 6 Aug 2015 10:45:30 +0000 (+0200) Subject: Minor fix for image info on main. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/2881133ed8ebf9317ca216e384e7e13b8619b6a5 Minor fix for image info on main. --- diff --git a/apps/social/templates/social/cite_info.html b/apps/social/templates/social/cite_info.html index 4ee84d3c7..8f8e16d11 100644 --- a/apps/social/templates/social/cite_info.html +++ b/apps/social/templates/social/cite_info.html @@ -4,15 +4,16 @@ {% if cite.image_link %}{% endif %} {% if cite.image_title %} {{ cite.image_title }}{% else %} - untitled{% endif %}{% if cite.image_link %}{% endif %}, - {% if cite.image_author %}{{ cite.image_author }},{% endif %} + untitled{% endif %}{% if cite.image_link %}{% endif %}{% if cite.image_author %}, + {{ cite.image_author }}{% endif %}{% if cite.image_license %}, {% if cite.image_license_link %}{% endif %} {{ cite.image_license }} {% if cite.image_license_link %}{% endif %} + {% endif %} {% else %} books about architecture, saikofish@Flickr, CC BY NC SA. {% endif %} -{% endspaceless %} \ No newline at end of file +{% endspaceless %} diff --git a/apps/wolnelektury_core/templates/main_page.html b/apps/wolnelektury_core/templates/main_page.html index 17dc2e6d9..f1450cbd6 100755 --- a/apps/wolnelektury_core/templates/main_page.html +++ b/apps/wolnelektury_core/templates/main_page.html @@ -81,7 +81,7 @@ {% block add_footer %}{% spaceless %} {{ cite_pk.if }} -

{% trans "Image used:" %}

+

{% trans "Image used:" %} {% ssi_include 'social_cite_info' pk=cite_pk %}

{{ cite_pk.endif }}