From 2d578247ef861071b1919905746cc31c5bbcd188 Mon Sep 17 00:00:00 2001 From: Antoine Augusti Date: Wed, 13 Apr 2016 17:46:07 +0200 Subject: [PATCH] Inject variables with app context and ability to change the logo --- rd_ui/app/public.html | 2 +- rd_ui/app/scripts/directives/directives.js | 1 + rd_ui/app/views/app_header.html | 2 +- redash/handlers/__init__.py | 8 ++++++++ redash/handlers/authentication.py | 1 - redash/handlers/embed.py | 7 ++----- redash/handlers/static.py | 4 +--- redash/settings.py | 4 +++- redash/templates/_includes/signed_out_navbar.html | 2 +- 9 files changed, 18 insertions(+), 13 deletions(-) diff --git a/rd_ui/app/public.html b/rd_ui/app/public.html index 63bcfcda7..9e7d1c1b8 100644 --- a/rd_ui/app/public.html +++ b/rd_ui/app/public.html @@ -5,7 +5,7 @@ diff --git a/rd_ui/app/scripts/directives/directives.js b/rd_ui/app/scripts/directives/directives.js index 91e1025a2..34875f04a 100644 --- a/rd_ui/app/scripts/directives/directives.js +++ b/rd_ui/app/scripts/directives/directives.js @@ -10,6 +10,7 @@ templateUrl: '/views/app_header.html', link: function ($scope) { $scope.dashboards = []; + $scope.logoUrl = clientConfig.logoUrl; $scope.reloadDashboards = function () { Dashboard.query(function (dashboards) { $scope.dashboards = _.sortBy(dashboards, "name"); diff --git a/rd_ui/app/views/app_header.html b/rd_ui/app/views/app_header.html index d0c19e5a4..6e70a598b 100644 --- a/rd_ui/app/views/app_header.html +++ b/rd_ui/app/views/app_header.html @@ -8,7 +8,7 @@ - +