From bf95415e82b5e4ad2de582309707e5cf9ebc81f1 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 31 Oct 2008 14:53:30 +0100 Subject: [PATCH] Move influence_detail_block into influence_detail. The influence_detail_block template is only used in the influence_detail template, so having it separate is not really needed. Additionally, it turns out that overriding a block in an included template is not possible, so moving it back in allows us to override the comments block (which we will introduce in the next commmit). --- templates/influences/influence_detail.html | 13 ++++++++++++- templates/influences/influence_detail_block.html | 15 --------------- 2 files changed, 12 insertions(+), 16 deletions(-) delete mode 100644 templates/influences/influence_detail_block.html diff --git a/templates/influences/influence_detail.html b/templates/influences/influence_detail.html index b06ed88..234b5d7 100644 --- a/templates/influences/influence_detail.html +++ b/templates/influences/influence_detail.html @@ -2,5 +2,16 @@ {% load i18n %} {% block content %} -{% include "influences/influence_detail_block.html" %} +

{{ object.summary }}

+ + + +{% if object.longterm %} + +{% endif %} +
{% trans "Contact" %}:{{ object.contact }}
{% trans "Character" %}:{{ object.character }}
{% trans "Long term" %}:{{ object.longterm|yesno|capfirst }}
+

{{ object.description }}

+ +

{% trans "Comments" %}

+{% include "influences/influence_comments_block.html" %} {% endblock %} diff --git a/templates/influences/influence_detail_block.html b/templates/influences/influence_detail_block.html deleted file mode 100644 index 0037d09..0000000 --- a/templates/influences/influence_detail_block.html +++ /dev/null @@ -1,15 +0,0 @@ -{% load i18n %} -{% load threadedcommentstags %} - -

{{ object.summary }}

- - - -{% if object.longterm %} - -{% endif %} -
{% trans "Contact" %}:{{ object.contact }}
{% trans "Character" %}:{{ object.character }}
{% trans "Long term" %}:{{ object.longterm|yesno|capfirst }}
-

{{ object.description }}

- -

{% trans "Comments" %}

-{% include "influences/influence_comments_block.html" %} -- 2.30.2