Merge pull request #4579 from michellethomas/removing_title_label

Removing [dashboard] and [slice] titles to show name
This commit is contained in:
John Bodley 2018-03-13 12:00:11 -07:00 committed by GitHub
commit 4e494b264b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1315,9 +1315,9 @@ class Superset(BaseSupersetView):
if datasource_type == 'table' \
else datasource.datasource_name
if slc:
title = '[slice] ' + slc.slice_name
title = slc.slice_name
else:
title = '[explore] ' + table_name
title = 'Explore - ' + table_name
return self.render_template(
'superset/basic.html',
bootstrap_data=json.dumps(bootstrap_data),
@ -2082,7 +2082,7 @@ class Superset(BaseSupersetView):
'superset/dashboard.html',
entry='dashboard',
standalone_mode=standalone_mode,
title='[dashboard] ' + dash.dashboard_title,
title=dash.dashboard_title,
bootstrap_data=json.dumps(bootstrap_data),
)