Browse Source

Add contest scoreboard

undefined
spaghetti 8 years ago
committed by Tomochin
parent
commit
758ab2a4ec
2 changed files with 17 additions and 0 deletions
  1. +7
    -0
      design/privateheader.php
  2. +10
    -0
      static/styles/global.css

+ 7
- 0
design/privateheader.php View File

@@ -461,6 +461,13 @@ if ($NotificationsManager->is_traditional(NotificationsManager::TORRENTS)) {
$NotificationsManager->clear_notifications_array(); $NotificationsManager->clear_notifications_array();
} }


// Contests
if ($ContestSettings = G::$Cache->get_value('contest_settings')) {
if (time() > $ContestSettings['start'] && time() < $ContestSettings['end']) {
$Alerts[] = '<a href="/contest.php">A Contest is Underway!</a>';
}
}

if (check_perms('users_mod')) { if (check_perms('users_mod')) {
$ModBar[] = '<a href="tools.php">Toolbox</a>'; $ModBar[] = '<a href="tools.php">Toolbox</a>';
} }


+ 10
- 0
static/styles/global.css View File

@@ -853,6 +853,16 @@ div.torrent_artists {
width: 100%; width: 100%;
} }


.flex {
display: flex;
}
.flex > .grow {
flex-grow: 1
}
.flex > .shrink {
flex-shrink: 1
}

input[type="search"] { input[type="search"] {
-webkit-appearance: textfield; -webkit-appearance: textfield;
} }

Loading…
Cancel
Save