From 6d84464d15efe7e6fc845b1bfc0689d34ca13a1f Mon Sep 17 00:00:00 2001 From: Manuel Date: Mon, 4 Apr 2016 23:37:11 +0200 Subject: [PATCH 1/2] Fix for #1195 This fixes #1195 --- templates/header.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/header.inc.php b/templates/header.inc.php index 87dbeb95..2aa7ed6c 100644 --- a/templates/header.inc.php +++ b/templates/header.inc.php @@ -434,7 +434,7 @@ $_SESSION['login'] = false;
- +
From 3201efa5e63f0a5f116f8cedd573011f7e6e7bba Mon Sep 17 00:00:00 2001 From: Manuel Date: Tue, 5 Apr 2016 03:57:27 +0200 Subject: [PATCH 2/2] New position for update notification: Since ever, I hated it that the Update notification is within the headerbox. Now it's on the top of the content div like the "updated config" notification. I also kicked out one permission check so the "autoupdate" notification and/or the "new config" notification is only shown if the permission is 100... Like before but in another way. ^^ Before, there was a `...`, no matter what user was logged in. Now there is a div with `id="update_notify"` what is also only shown, if the admin is logged in. I also cleaned the depending CSS rule in `/reborn/templates/default.css` --- lib/class/autoupdate.class.php | 2 +- templates/header.inc.php | 54 ++++++++++++++++------------- themes/reborn/templates/default.css | 4 --- 3 files changed, 31 insertions(+), 29 deletions(-) diff --git a/lib/class/autoupdate.class.php b/lib/class/autoupdate.class.php index 7ed3921d..55c8d0f5 100644 --- a/lib/class/autoupdate.class.php +++ b/lib/class/autoupdate.class.php @@ -226,7 +226,7 @@ class AutoUpdate */ public static function show_new_version() { - echo '
'; + echo '
'; echo '' . T_('Update available') . ''; echo ' (' . self::get_latest_version() . ').
'; diff --git a/templates/header.inc.php b/templates/header.inc.php index 2aa7ed6c..60d306ee 100644 --- a/templates/header.inc.php +++ b/templates/header.inc.php @@ -408,16 +408,7 @@ $_SESSION['login'] = false; - - playlist->get_items()); - ?> - +
@@ -527,20 +518,35 @@ $_SESSION['login'] = false;
Loading . . .
+
- has_access(100)) { - ?> -
- - | - -
- + '; + if (AmpConfig::get('autoupdate') && AutoUpdate::is_update_available()) { + AutoUpdate::show_new_version(); + echo '
'; + } + $count_temp_playlist = count($GLOBALS['user']->playlist->get_items()); + + if (AmpConfig::get('int_config_version') != AmpConfig::get('config_version')) { + ?> +
+ +
+ | + +
+ '; + } + ?>
diff --git a/themes/reborn/templates/default.css b/themes/reborn/templates/default.css index 1300bd39..adaeeb4d 100644 --- a/themes/reborn/templates/default.css +++ b/themes/reborn/templates/default.css @@ -248,10 +248,6 @@ input[type=button]:focus:active, input[type=submit]:focus:active { top: 20px; } -#updateInfo { - float: left; -} - #sb_Subsearch input[type=submit] { min-width: 100px; font-size: 15px;