From 758ab2a4ec361a8f8a904449356f71a87d57fd8d Mon Sep 17 00:00:00 2001 From: spaghetti Date: Fri, 30 Sep 2016 22:27:48 -0400 Subject: [PATCH] Add contest scoreboard --- design/privateheader.php | 7 +++++++ static/styles/global.css | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/design/privateheader.php b/design/privateheader.php index 5667c2f..a117c83 100755 --- a/design/privateheader.php +++ b/design/privateheader.php @@ -461,6 +461,13 @@ if ($NotificationsManager->is_traditional(NotificationsManager::TORRENTS)) { $NotificationsManager->clear_notifications_array(); } +// Contests +if ($ContestSettings = G::$Cache->get_value('contest_settings')) { + if (time() > $ContestSettings['start'] && time() < $ContestSettings['end']) { + $Alerts[] = 'A Contest is Underway!'; + } +} + if (check_perms('users_mod')) { $ModBar[] = 'Toolbox'; } diff --git a/static/styles/global.css b/static/styles/global.css index bf6cb82..2c56368 100755 --- a/static/styles/global.css +++ b/static/styles/global.css @@ -853,6 +853,16 @@ div.torrent_artists { width: 100%; } +.flex { + display: flex; +} +.flex > .grow { + flex-grow: 1 +} +.flex > .shrink { + flex-shrink: 1 +} + input[type="search"] { -webkit-appearance: textfield; }