more UI improvements

This commit is contained in:
Thibault Duplessis 2014-07-31 23:03:08 +02:00
parent ae77093543
commit 4d7ffc7943
6 changed files with 16 additions and 6 deletions

View file

@ -22,7 +22,7 @@ trait TournamentHelper { self: I18nHelper =>
}
}
def tournamentLink(tour: Tournament)(implicit ctx: Context) = Html {
def tournamentLink(tour: Tournament) = Html {
val cssClass = if (tour.scheduled) "is-gold" else ""
val url = routes.Tournament.show(tour.id)
s"""<a data-icon="g" class="$cssClass" href="$url">&nbsp;${tour.fullName}</a>"""

View file

@ -32,5 +32,4 @@ case QaComment(userId, id, title, commentId) => {
@userIdLink(userId.some, withOnline = false) commented <a href="@routes.QaQuestion.show(id, "redirect")#comment-@commentId">@title</a>
}
}
@momentFromNow(e.date)
}

View file

@ -15,8 +15,8 @@
<ol class="scheduled_tournaments">
@scheduled.map { tour =>
@tour.schedule.map { s =>
<li>
@tournamentLink(tour)<br />
<li data-icon="g" class="is-gold">
<a href="@routes.Tournament.show(tour.id)">@tour.fullName</a>
@momentFormat(s.at, "calendar")
</li>
}

View file

@ -17,8 +17,7 @@ final class Env(
private val UserDisplayMax = config getInt "user.display_max"
private val UserActorName = config getString "user.actor.name"
lazy val getter = new Getter(
userMax = UserDisplayMax)
lazy val getter = new Getter(userMax = UserDisplayMax)
system.actorOf(Props(new Push(
lobbySocket = lobbySocket,

View file

@ -242,6 +242,15 @@ ol.tournament_leaderboard a {
ol.scheduled_tournaments li {
padding: 5px 0;
}
ol.scheduled_tournaments li::before {
font-size: 30px;
float: left;
margin: 3px 5px 0 0;
opacity: 0.7;
}
ol.scheduled_tournaments li:hover::before {
opacity: 1;
}
ol.scheduled_tournaments a {
font-weight: bold;
text-decoration: none;

View file

@ -57,6 +57,9 @@ div.sub_ratings > div::before {
margin-right: 5px;
opacity: 0.6;
}
div.sub_ratings > div:hover::before {
opacity: 1;
}
div.sub_ratings h3 {
font-weight: 100;
font-size: 1.2em;