diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-03-24 04:25:07 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-03-24 04:25:07 +0400 |
commit | f0b332f49db873948516297e66792fd3f4042724 (patch) | |
tree | 69997aa90b5120a569eb9a8e6ac1156e639277e5 /plugins/CoreHome | |
parent | 23eba52637bf5878f8f45797264b264bf671bb1a (diff) |
simplify and make sure to display only to superusers or piwik demo users
Diffstat (limited to 'plugins/CoreHome')
-rw-r--r-- | plugins/CoreHome/templates/_headerMessage.twig | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/plugins/CoreHome/templates/_headerMessage.twig b/plugins/CoreHome/templates/_headerMessage.twig index 543f05249c..449978f9b0 100644 --- a/plugins/CoreHome/templates/_headerMessage.twig +++ b/plugins/CoreHome/templates/_headerMessage.twig @@ -11,36 +11,34 @@ </div> {% endset %} -{% if isPiwikDemo or latest_version_available or isSuperUser %} +{% if isPiwikDemo or isSuperUser %} <span id="header_message" class="{% if isPiwikDemo or not latest_version_available %}header_info{% else %}header_alert{% endif %}"> <span class="header_short"> {% if isPiwikDemo %} {{ 'General_YouAreViewingDemoShortMessage'|translate }} - {% elseif latest_version_available %} + {% elseif latest_version_available and isSuperUser %} {{ 'General_NewUpdatePiwikX'|translate(latest_version_available) }} {% elseif isSuperUser %} {{ updateCheck|raw }} {% endif %} </span> - {% if isPiwikDemo or latest_version_available or isSuperUser %} - <span class="header_full"> - {% if isPiwikDemo %} - {{ 'General_YouAreViewingDemoShortMessage'|translate }} - <br /> - {{ 'General_DownloadFullVersion'|translate("<a href='http://piwik.org/'>","</a>","<a href='http://piwik.org'>piwik.org</a>")|raw }} - <br/> - {% endif %} - {% if latest_version_available and isSuperUser %} - {{ 'General_PiwikXIsAvailablePleaseUpdateNow'|translate(latest_version_available,"<br /><a href='index.php?module=CoreUpdater&action=newVersionAvailable'>","</a>","<a href='?module=Proxy&action=redirect&url=http://piwik.org/changelog/' target='_blank'>","</a>")|raw }} - <br/> - {{ 'General_YouAreCurrentlyUsing'|translate(piwik_version) }} - {% elseif isSuperUser %} - {{ updateCheck|raw }} - <br /> - {{ 'General_YouAreCurrentlyUsing'|translate(piwik_version) }} - {% endif %} - </span> - {% endif %} + <span class="header_full"> + {% if isPiwikDemo %} + {{ 'General_YouAreViewingDemoShortMessage'|translate }} + <br /> + {{ 'General_DownloadFullVersion'|translate("<a href='http://piwik.org/'>","</a>","<a href='http://piwik.org'>piwik.org</a>")|raw }} + <br/> + {% endif %} + {% if latest_version_available and isSuperUser %} + {{ 'General_PiwikXIsAvailablePleaseUpdateNow'|translate(latest_version_available,"<br /><a href='index.php?module=CoreUpdater&action=newVersionAvailable'>","</a>","<a href='?module=Proxy&action=redirect&url=http://piwik.org/changelog/' target='_blank'>","</a>")|raw }} + <br/> + {{ 'General_YouAreCurrentlyUsing'|translate(piwik_version) }} + {% elseif isSuperUser %} + {{ updateCheck|raw }} + <br /> + {{ 'General_YouAreCurrentlyUsing'|translate(piwik_version) }} + {% endif %} + </span> </span> {% endif %}
\ No newline at end of file |