From d21df6ca4371e9288a97ca68086a9fbd3b727992 Mon Sep 17 00:00:00 2001 From: x4base Date: Thu, 16 Jun 2016 00:03:06 +0800 Subject: [PATCH] Redirect to druid datasource page when the user wants to add slice. Also, provide a link to the table page --- caravel/templates/caravel/add_slice.html | 6 ++++-- caravel/views.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/caravel/templates/caravel/add_slice.html b/caravel/templates/caravel/add_slice.html index 010c3b5fe7f4f..6d74fca5bcbf8 100644 --- a/caravel/templates/caravel/add_slice.html +++ b/caravel/templates/caravel/add_slice.html @@ -1,4 +1,6 @@ diff --git a/caravel/views.py b/caravel/views.py index d2e8e5b9db522..b7887cc600754 100644 --- a/caravel/views.py +++ b/caravel/views.py @@ -660,7 +660,7 @@ def shortner(self): @expose("/msg/") def msg(self): """Redirects to specified url while flash a message""" - flash(request.args.get("msg"), "info") + flash(Markup(request.args.get("msg")), "info") return redirect(request.args.get("url")) appbuilder.add_view_no_menu(R)