From 856e51ec1881c3864d2beee27e8fc66cf3918c4f Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 4 Nov 2008 11:55:33 +0100 Subject: [PATCH] Add comment-related admin templates. The change_form template adds a "comment" link to the influence admin page, the comments template provides the content for that page. --- .../influences/influence/change_form.html | 11 ++++++++ .../admin/influences/influence/comments.html | 26 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 templates/admin/influences/influence/change_form.html create mode 100644 templates/admin/influences/influence/comments.html diff --git a/templates/admin/influences/influence/change_form.html b/templates/admin/influences/influence/change_form.html new file mode 100644 index 0000000..7d1a794 --- /dev/null +++ b/templates/admin/influences/influence/change_form.html @@ -0,0 +1,11 @@ +{% extends "admin/change_form.html" %} +{% load i18n %} + +{% block object-tools %} +{% if change %}{% if not is_popup %} + +{% endif %}{% endif %} +{% endblock %} diff --git a/templates/admin/influences/influence/comments.html b/templates/admin/influences/influence/comments.html new file mode 100644 index 0000000..f5343e6 --- /dev/null +++ b/templates/admin/influences/influence/comments.html @@ -0,0 +1,26 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block extrahead %}{{ block.super }} +{{ media }} +{% endblock %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block content %} +
+
+{% block comments %} +{% include "influences/influence_comments_block.html" %} +{% endblock %} +
+
+{% endblock %} -- 2.30.2