diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-05-30 16:48:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 16:48:26 +0300 |
commit | 3fcb8b915aba348e64cb8633222d5b62f4e2c29f (patch) | |
tree | b1a3a12bcbfc0aed82b941367e09993a62304450 /plugins/CoreHome/templates | |
parent | 59c2e64086d4180a7900bb252faa5f5f3e23568a (diff) |
Ensure refresh button is only shown where needed (#19292)
* Ensure refresh button is only shown where needed
* fix some deprecated method calls
* improve css
* updates expected UI files
* fix css
* updates expected UI files
Diffstat (limited to 'plugins/CoreHome/templates')
-rw-r--r-- | plugins/CoreHome/templates/_headerMessage.twig | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/CoreHome/templates/_headerMessage.twig b/plugins/CoreHome/templates/_headerMessage.twig index b1575c3321..efa5a9de5d 100644 --- a/plugins/CoreHome/templates/_headerMessage.twig +++ b/plugins/CoreHome/templates/_headerMessage.twig @@ -10,7 +10,9 @@ </span> {% endset %} -{% if (latest_version_available and not isPiwikDemo and hasSomeViewAccess and not isUserIsAnonymous and showUpdateNotificationToUser) or (isSuperUser and isAdminArea is defined and isAdminArea) %} +{% set showVersionInfo = (latest_version_available and not isPiwikDemo and hasSomeViewAccess and not isUserIsAnonymous and showUpdateNotificationToUser) or (isSuperUser and isAdminArea is defined and isAdminArea) %} + +{% if showVersionInfo %} <div piwik-expand-on-hover id="header_message" class="piwikSelector borderedControl {% if not latest_version_available %}header_info{% else %}{% endif %} piwikTopControl {% if latest_version_available %}update_available{% endif %}" @@ -58,10 +60,11 @@ </div> </div> -<span class="icon icon-reload" title="{{ 'CoreHome_Refresh'|translate }}"></span> +{% endif %} + +<span class="icon icon-reload hidden" title="{{ 'CoreHome_Refresh'|translate }}"></span> <span class="icon icon-arrowup"></span> + +{% if showVersionInfo %} <div style="clear:right"></div> -{% else %} -<span class="icon icon-reload" title="{{ 'CoreHome_Refresh'|translate }}"></span> -<span class="icon icon-arrowup"></span> {% endif %} |