From: Matthijs Kooijman Date: Fri, 31 Oct 2008 13:53:30 +0000 (+0100) Subject: Move influence_detail_block into influence_detail. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=commitdiff_plain;h=bf95415e82b5e4ad2de582309707e5cf9ebc81f1 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). --- 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" %}