diff --git a/digitalglarus/templates/digitalglarus/post_detail.html b/digitalglarus/templates/digitalglarus/post_detail.html new file mode 100644 index 00000000..f59cec48 --- /dev/null +++ b/digitalglarus/templates/digitalglarus/post_detail.html @@ -0,0 +1,48 @@ +{% load i18n thumbnail cms_tags %} + +
+ + +
+
+ + + +
+
+ +

+ {{ post.title }} +

+
+ + +

+ {% if not TRUNCWORDS_COUNT %} + {% render_model post "abstract" %} + {% else %} + {% render_model post "abstract" "" "" 'truncatewords_html:TRUNCWORDS_COUNT' %} + {% endif %} +

+ + + +
+
+ + +
+
diff --git a/digitalglarus/templates/digitalglarus/supportus.html b/digitalglarus/templates/digitalglarus/supportus.html index 28659e23..6089da99 100644 --- a/digitalglarus/templates/digitalglarus/supportus.html +++ b/digitalglarus/templates/digitalglarus/supportus.html @@ -152,7 +152,7 @@
{% for post in post_list %} - {% include "ungleich/djangocms_blog/includes/blog_item.html" with post=post image="true" TRUNCWORDS_COUNT=TRUNCWORDS_COUNT %} + {% include "digitalglarus/post_detail.html" with post=post image="true" TRUNCWORDS_COUNT=TRUNCWORDS_COUNT %} {% endfor %}
diff --git a/digitalglarus/views.py b/digitalglarus/views.py index 8474b7a4..a33775c9 100644 --- a/digitalglarus/views.py +++ b/digitalglarus/views.py @@ -40,7 +40,6 @@ class SupportusView(TemplateView): def get_context_data(self, *args, **kwargs): context = super(SupportusView, self).get_context_data(**kwargs) tags = ["dg-renovation"] - import pdb;pdb.set_trace() posts = Post.objects.filter(tags__name__in=tags, publish=True).translated(get_language()) context.update({ 'post_list': posts