Added server time to game hall.

This commit is contained in:
marcins78@gmail.com
2013-01-03 01:41:42 +00:00
parent 368a60ca45
commit 2980672ea7
4 changed files with 11 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ public interface TournamentDAO {
public void addTournament(String tournamentId, String draftType, String tournamentName, String format,
CollectionType collectionType, Tournament.Stage stage, String pairingMechanism, String prizeScheme, Date start);
// public List<TournamentQueueInfo> getFutureScheduledTournaments();
public List<TournamentInfo> getUnfinishedTournaments();
public List<TournamentInfo> getFinishedTournamentsSince(long time);

View File

@@ -9,6 +9,10 @@ body {
background-color: #666666;
}
.serverTime {
border: 1px solid #ffffff;
}
.leagueName, #stats .period, .tournamentName, .playerStatHeader {
font-size: 200%;
font-weight: bolder;

View File

@@ -20,6 +20,7 @@ response.setDateHeader ("Expires", -1);
$(document).ready(
function () {
$("#latestNews").append("<div class='serverTime' style='float: right'></div>");
$("#latestNews").append("<b>All sets are available to play.</b> "
+ "If you find any problems with specific card or rules in general, please report it <a href='http://lotrtcgdb.com/forums/index.php/topic,7592.0.html'>at the TLHH forums</a>.");

View File

@@ -342,6 +342,10 @@ var GempLotrHallUI = Class.extend({
if (motd != null)
$("#motd").html("<b>MOTD:</b> " + motd);
var serverTime = root.getAttribute("serverTime");
if (serverTime != null)
$(".serverTime").text("Server time: "+serverTime);
var busy = root.getAttribute("busy") == "true";
var queues = root.getElementsByTagName("queue");