From 20427deb811bf091885304a785b5a8d5a731edf9 Mon Sep 17 00:00:00 2001 From: Kotiuk Nazarii Date: Fri, 15 May 2015 00:39:17 +0300 Subject: [PATCH] New logo in catalog --- .../client/includes/article/news_logo_in_catalog.html | 10 ++++++++++ templates/client/includes/news.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 templates/client/includes/article/news_logo_in_catalog.html diff --git a/templates/client/includes/article/news_logo_in_catalog.html b/templates/client/includes/article/news_logo_in_catalog.html new file mode 100644 index 00000000..5c7ab435 --- /dev/null +++ b/templates/client/includes/article/news_logo_in_catalog.html @@ -0,0 +1,10 @@ +{% load static %} +{% load thumbnail %} + +{% if obj.logo %} + {% thumbnail obj.logo "40x40" format="PNG" as im %} + + {% endthumbnail %} +{% else %} + +{% endif %} \ No newline at end of file diff --git a/templates/client/includes/news.html b/templates/client/includes/news.html index 0b48df59..3048d4b3 100644 --- a/templates/client/includes/news.html +++ b/templates/client/includes/news.html @@ -10,7 +10,7 @@
  • - {% include 'client/includes/article/news_on_main_logo.html' with obj=item %} + {% include 'client/includes/article/news_logo_in_catalog.html' with obj=item %} {{ item.main_title }}