You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/11/05 17:17:57 UTC

[GitHub] [incubator-superset] etr2460 commented on a change in pull request #8507: Allow customization of documentation icon and text

etr2460 commented on a change in pull request #8507: Allow customization of documentation icon and text
URL: https://github.com/apache/incubator-superset/pull/8507#discussion_r342688125
 
 

 ##########
 File path: superset/templates/appbuilder/navbar_right.html
 ##########
 @@ -17,8 +17,11 @@
   under the License.
 #}
 
-{% set bug_report_url = appbuilder.app.config['BUG_REPORT_URL'] %}
-{% set documentation_url = appbuilder.app.config['DOCUMENTATION_URL'] %}
+{% set bug_report_url = appbuilder.app.config.get('BUG_REPORT_URL') %}
+{% set documentation_url = appbuilder.app.config.get('DOCUMENTATION_URL') %}
+{% set documentation_icon = appbuilder.app.config.get('DOCUMENTATION_ICON') %}
+{% set documentation_text = appbuilder.app.config.get('DOCUMENTATION_TEXT', 'Documentation') %}
 
 Review comment:
   instead of this, let's default the config var value in `config.py` and keep the `[]` syntax for getting params from this dict. Same goes for all the other config vars here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org