From 2881133ed8ebf9317ca216e384e7e13b8619b6a5 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 6 Aug 2015 12:45:30 +0200 Subject: [PATCH 1/1] Minor fix for image info on main. --- apps/social/templates/social/cite_info.html | 7 ++++--- apps/wolnelektury_core/templates/main_page.html | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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 }} -- 2.20.1