diff piecrust/admin/views/publish.py @ 961:b1a00c2c0c7f

admin: Use URL routes for static assets. This removes the need for `base_url` and other workarounds for when the admin panel is under a sub-folder.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 07 Oct 2017 12:16:04 -0700
parents 94fd4f07da83
children 20f49786937c
line wrap: on
line diff
--- a/piecrust/admin/views/publish.py	Sat Oct 07 12:13:57 2017 -0700
+++ b/piecrust/admin/views/publish.py	Sat Oct 07 12:16:04 2017 -0700
@@ -4,7 +4,6 @@
 from flask.ext.login import login_required
 from ..blueprint import foodtruck_bp
 from ..pubutil import PublishLogReader
-from ..views import with_menu_context, with_base_data
 
 
 logger = logging.getLogger(__name__)
@@ -25,7 +24,6 @@
     if not pub_cfg:
         data = {'error': "There are no publish targets defined in your "
                          "configuration file."}
-        with_base_data(data)
         return render_template('error.html', **data)
 
     try: