From 0bc2d9c96abf0f0a85f6e804ff9c892649b28cb9 Mon Sep 17 00:00:00 2001 From: E Rasche Date: Sun, 2 Jul 2017 05:45:09 +0000 Subject: [PATCH 1/3] Uniform html titles --- templates/base.mako | 8 +++++++- templates/base/base_panels.mako | 12 +++++++----- templates/display_base.mako | 2 +- templates/js-app.mako | 8 +++++++- templates/user/logout.mako | 2 +- templates/webapps/galaxy/admin/center.mako | 2 +- templates/webapps/galaxy/base_panels.mako | 2 +- templates/webapps/galaxy/dataset/display.mako | 2 +- templates/webapps/galaxy/dataset/errors.mako | 8 +++++++- templates/webapps/galaxy/galaxy.panels.mako | 10 +++++++--- templates/webapps/galaxy/history/list_published.mako | 2 +- templates/webapps/galaxy/mobile/form.mako | 8 +++++++- templates/webapps/galaxy/mobile/index.mako | 7 ++++++- templates/webapps/galaxy/root/tool_runner.mako | 7 ++++++- templates/webapps/reports/base_panels.mako | 2 +- templates/webapps/tool_shed/admin/center.mako | 2 +- templates/webapps/tool_shed/base_panels.mako | 2 +- .../webapps/tool_shed/repository/tool_form.mako | 8 +++++++- 18 files changed, 70 insertions(+), 24 deletions(-) diff --git a/templates/base.mako b/templates/base.mako index 22af35c1e4f..c1bdd1ba3da 100644 --- a/templates/base.mako +++ b/templates/base.mako @@ -13,7 +13,13 @@ ## Force IE to standards mode, and prefer Google Chrome Frame if the user has already installed it - ${self.title()} + + Galaxy + %if app.config.brand: + | ${app.config.brand} + %endif + | ${self.title()} + ## relative href for site root ${self.metas()} diff --git a/templates/base/base_panels.mako b/templates/base/base_panels.mako index 0beaa5d6540..96612f8eadd 100644 --- a/templates/base/base_panels.mako +++ b/templates/base/base_panels.mako @@ -166,11 +166,13 @@ ## Force IE to standards mode, and prefer Google Chrome Frame if the user has already installed it - %if app.config.brand: - ${self.title()} / ${app.config.brand} - %else: - ${self.title()} - %endif + + Galaxy + %if app.config.brand: + | ${app.config.brand} + %endif + | ${self.title()} + ## relative href for site root ${self.stylesheets()} diff --git a/templates/display_base.mako b/templates/display_base.mako index d80d31d3347..f0780e2f31c 100644 --- a/templates/display_base.mako +++ b/templates/display_base.mako @@ -17,7 +17,7 @@ ## <%def name="title()"> - Galaxy | ${iff( item.published, "Published ", iff( item.importable , "Accessible ", iff( item.users_shared_with, "Shared ", "Private " ) ) ) + get_class_display_name( item.__class__ )} | ${get_item_name( item ) | h} + ${iff( item.published, "Published ", iff( item.importable , "Accessible ", iff( item.users_shared_with, "Shared ", "Private " ) ) ) + get_class_display_name( item.__class__ )} | ${get_item_name( item ) | h} <%def name="init()"> diff --git a/templates/js-app.mako b/templates/js-app.mako index 4deff5a7e4b..ad3e4368a4b 100644 --- a/templates/js-app.mako +++ b/templates/js-app.mako @@ -9,7 +9,13 @@ ## Force IE to standards mode, and prefer Google Chrome Frame if the user has already installed it - Galaxy + + Galaxy + %if app.config.brand: + | ${app.config.brand} + %endif + | ${self.title()} + ## relative href for site root ## TODO: use loaders to move everything but the essentials below the fold diff --git a/templates/user/logout.mako b/templates/user/logout.mako index fe0a0376bb9..ff0c3fe3e60 100644 --- a/templates/user/logout.mako +++ b/templates/user/logout.mako @@ -32,7 +32,7 @@ def inherit(context): -<%def name="title()">Galaxy :: Logout +<%def name="title()">Logout <%def name="center_panel()"> ${self.body()} diff --git a/templates/webapps/galaxy/admin/center.mako b/templates/webapps/galaxy/admin/center.mako index d87009949c4..8bed99c55e9 100644 --- a/templates/webapps/galaxy/admin/center.mako +++ b/templates/webapps/galaxy/admin/center.mako @@ -1,7 +1,7 @@ <%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> -<%def name="title()">Galaxy Administration +<%def name="title()">Administration

Administration

Please visit the Galaxy administration hub to learn how to keep your Galaxy in best shape. diff --git a/templates/webapps/galaxy/base_panels.mako b/templates/webapps/galaxy/base_panels.mako index 735ee10d615..dc3fa31e8be 100644 --- a/templates/webapps/galaxy/base_panels.mako +++ b/templates/webapps/galaxy/base_panels.mako @@ -3,7 +3,7 @@ <%namespace name="mod_masthead" file="/webapps/galaxy/galaxy.masthead.mako"/> ## Default title -<%def name="title()">Galaxy +<%def name="title()"> <%def name="javascripts()"> ${parent.javascripts()} diff --git a/templates/webapps/galaxy/dataset/display.mako b/templates/webapps/galaxy/dataset/display.mako index 4feef6d97e5..b22a1d3c1ad 100644 --- a/templates/webapps/galaxy/dataset/display.mako +++ b/templates/webapps/galaxy/dataset/display.mako @@ -44,7 +44,7 @@ <%def name="title()"> - Galaxy | ${get_class_display_name( item.__class__ )} | ${get_item_name( item ) | h} + ${get_class_display_name( item.__class__ )} | ${get_item_name( item ) | h} <%def name="render_item_links( data )"> diff --git a/templates/webapps/galaxy/dataset/errors.mako b/templates/webapps/galaxy/dataset/errors.mako index 7e7f989c7cf..17df5868296 100644 --- a/templates/webapps/galaxy/dataset/errors.mako +++ b/templates/webapps/galaxy/dataset/errors.mako @@ -1,7 +1,13 @@ - Dataset generation errors + + Galaxy + %if app.config.brand: + | ${app.config.brand} + %endif + | Dataset generation errors +