From d41b6007254fcd5edaa7c4001a11cd8d2597ec9a Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 24 Apr 2013 18:47:38 +0200 Subject: [PATCH] Add an update notification on every page for admin users --- core/css/styles.css | 3 +++ core/templates/layout.user.php | 3 +++ lib/templatelayout.php | 14 +++++++++++ lib/updater.php | 46 +++++++++------------------------- settings/templates/admin.php | 3 +-- 5 files changed, 33 insertions(+), 36 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index 4dfa3f64a3..49cdc8836f 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -345,6 +345,9 @@ li.update, li.error { width:640px; margin:4em auto; padding:1em 1em 1em 4em; bac #notification { z-index:101; background-color:#fc4; border:0; padding:0 .7em .3em; display:none; position: relative; top:0; -moz-border-radius-bottomleft:1em; -webkit-border-bottom-left-radius:1em; border-bottom-left-radius:1em; -moz-border-radius-bottomright:1em; -webkit-border-bottom-right-radius:1em; border-bottom-right-radius:1em; } #notification span { cursor:pointer; font-weight:bold; margin-left:1em; } +#update-notification { z-index:101; background-color:#fc4; border:0; padding:0 .7em .3em; display:none; position: relative; top:0; -moz-border-radius-bottomleft:1em; -webkit-border-bottom-left-radius:1em; border-bottom-left-radius:1em; -moz-border-radius-bottomright:1em; -webkit-border-bottom-right-radius:1em; border-bottom-right-radius:1em; } +#update-notification span { cursor:pointer; font-weight:bold; margin-left:1em; } + tr .action:not(.permanent), .selectedActions a { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter:alpha(opacity=0); opacity:0; } tr:hover .action, tr .action.permanent, .selectedActions a { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; filter:alpha(opacity=50); opacity:.5; } tr .action { width:16px; height:16px; } diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index cfe0a55194..12509019b0 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -32,6 +32,9 @@
+ + +