From 7a0cdd41297431fcb515efea98c6ba2bc9a993c8 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 15 Mar 2019 23:32:06 +0100 Subject: Redesign everything with bootstrap 4 and bootswatch themes --- pastepy/pastepy.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pastepy/pastepy.py') diff --git a/pastepy/pastepy.py b/pastepy/pastepy.py index 472f6e2..f6b68ef 100644 --- a/pastepy/pastepy.py +++ b/pastepy/pastepy.py @@ -59,8 +59,7 @@ init_lexers() @app.route('/paste') def paste(): context = { - 'title': current_app.config['PASTEBIN_NAME'], - 'header': current_app.config['PASTEBIN_NAME'], + 'title': 'New paste', } return render_template('paste.html', **context) @@ -156,8 +155,10 @@ def view_paste(paste_hash): ) @app.route('/highlight_stylesheet') -def highlight_stylesheet(): - return current_app.config['FORMATTER'].get_style_defs(), 200, {'Content-Type': 'text/css'} +@app.route('/highlight_stylesheet/