Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[24.0] Backport 18458 #18474

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/tool_shed/webapp/templates/galaxy_client_app.mako
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ${ h.dumps( dictionary, indent=( 2 if trans.debug else 0 ) ) }

<%def name="config_plausible_analytics(plausible_server, plausible_domain)">
%if plausible_server and plausible_domain:
<script async defer data-domain="${plausible_domain}" src="${plausible_server}/js/plausible.js"></script>
<script async defer data-domain="${plausible_domain}" src="${plausible_server}/js/script.js"></script>
%else:
<script>console.warn("Missing plausible server or plausible domain");</script>
%endif
Expand Down
2 changes: 1 addition & 1 deletion templates/galaxy_client_app.mako
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ${ h.dumps( dictionary, indent=( 2 if trans.debug else 0 ) ) }

<%def name="config_plausible_analytics(plausible_server, plausible_domain)">
%if plausible_server and plausible_domain:
<script async defer data-domain="${plausible_domain}" src="${plausible_server}/js/plausible.js"></script>
<script async defer data-domain="${plausible_domain}" src="${plausible_server}/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
%else:
<script>
Expand Down
8 changes: 4 additions & 4 deletions templates/js-app.mako
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
| ${app.config.brand}
%endif
</title>

## relative href for site root
<link rel="index" href="${ h.url_for( '/' ) }"/>

## TODO: use loaders to move everything but the essentials below the fold
${ h.dist_css(
'base',
Expand Down Expand Up @@ -86,10 +86,10 @@
${ galaxy_client.config_google_analytics(app.config.ga_code) }
%endif
%if app.config.plausible_server and app.config.plausible_domain:
${ galaxy_client.config_plausible_analytics(app.config.plausible_server, app.config.plausible_domain) }
${ galaxy_client.config_plausible_analytics(app.config.plausible_server, app.config.plausible_domain) }
%endif
%if app.config.matomo_server and app.config.matomo_site_id:
${ galaxy_client.config_matomo_analytics(app.config.matomo_server, app.config.matomo_site_id) }
${ galaxy_client.config_matomo_analytics(app.config.matomo_server, app.config.matomo_site_id) }
%endif
</%def>

Expand Down
Loading