superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kri...@apache.org
Subject [incubator-superset] branch master updated: fix: Superset logo link when logged out (#7118)
Date Wed, 27 Mar 2019 20:49:40 GMT
This is an automated email from the ASF dual-hosted git repository.

kristw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new cd54a56  fix: Superset logo link when logged out (#7118)
cd54a56 is described below

commit cd54a567dd421481126b7939a2c1f3772d3f3b50
Author: Enrico Berti <hello@enricoberti.com>
AuthorDate: Wed Mar 27 21:49:34 2019 +0100

    fix: Superset logo link when logged out (#7118)
    
    Closes #7107
---
 superset/templates/appbuilder/navbar.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/templates/appbuilder/navbar.html b/superset/templates/appbuilder/navbar.html
index b5cfc64..29c2241 100644
--- a/superset/templates/appbuilder/navbar.html
+++ b/superset/templates/appbuilder/navbar.html
@@ -30,7 +30,7 @@
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
       </button>
-      <a class="navbar-brand" href="/superset{{ logo_target_path }}">
+      <a class="navbar-brand" href="{{ '/superset' + logo_target_path if current_user.username
is defined else '#' }}">
         <img
           width="{{ app_icon_width }}"
           src="{{ appbuilder.app_icon }}"


Mime
View raw message