From fd2ccf68eb488365a97d6fc49d0e1c8d6f4a5b49 Mon Sep 17 00:00:00 2001 From: khashashin Date: Thu, 14 Sep 2017 16:16:33 +0200 Subject: [PATCH] template update --- modeladmin/feedler/entry/index.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modeladmin/feedler/entry/index.html b/modeladmin/feedler/entry/index.html index 3289d81..09a3d40 100644 --- a/modeladmin/feedler/entry/index.html +++ b/modeladmin/feedler/entry/index.html @@ -1,7 +1,11 @@ {% extends "modeladmin/index.html %} {% block header_extra %} - {% include 'modeladmin/includes/button.html' with button=view.button_helper.export_button %} - My New Button - {{ block.super }}{% comment %}Display the original buttons {% endcomment %} + {% if user_can_create %} +
+
+ {% include 'modeladmin/includes/button.html' with button=view.button_helper.export_button %} +
+
+ {% endif %} {% endblock %}