Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheweyZ <cheweyzak002@gmail.com>2017-01-18 04:52:12 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2017-01-18 04:52:12 +0300
commit0d71046dea5c9f5ad58413f3f721833a0895c720 (patch)
tree84656d03c1411b4500e4c0016ad2491a1a065b64 /plugins/CoreHome/templates/_headerMessage.twig
parente1f2bf9bf2cf7dfebe0a425cf271c24391196ace (diff)
Fixed update button so it works appropriately on dashboard (#11211)
* Update notification dropdown not usable #11111 Patched * modifed cursor on hover to make it appear not a link for the updated button (when update avalible) * fixed update button so that cursor is shown relevant to what action can be done update also fixed so it works on dashboard not just the admin home section
Diffstat (limited to 'plugins/CoreHome/templates/_headerMessage.twig')
-rw-r--r--plugins/CoreHome/templates/_headerMessage.twig8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/CoreHome/templates/_headerMessage.twig b/plugins/CoreHome/templates/_headerMessage.twig
index 97ed8271a7..ee3b5af8f8 100644
--- a/plugins/CoreHome/templates/_headerMessage.twig
+++ b/plugins/CoreHome/templates/_headerMessage.twig
@@ -16,16 +16,20 @@
class="piwikSelector borderedControl {% if isPiwikDemo or not latest_version_available %}header_info{% else %}{% endif %} {% if isPiwikDemo %}isPiwikDemo{% else %}piwikTopControl{% endif %} {% if latest_version_available %}update_available{% endif %}"
>
- <a class="title" href="#">
{% if isPiwikDemo %}
+ <a class="title" style="cursor:default;">
{{ 'General_YouAreViewingDemoShortMessage'|translate }}
+ </a>
{% elseif latest_version_available %}
+ <a class="title" href="?module=CoreUpdater&action=newVersionAvailable" style="cursor:pointer;">
{{ 'General_NewUpdatePiwikX'|translate(latest_version_available) }}
<span class="icon-warning"></span>
+ </a>
{% elseif isSuperUser and isAdminArea is defined and isAdminArea %}
+ <a class="title">
{{ updateCheck|raw }}
+ </a>
{% endif %}
- </a>
<div class="dropdown positionInViewport">
{% if isPiwikDemo %}