Link peers in mod zone to games

This commit is contained in:
clarkerubber 2015-02-02 02:16:44 +11:00
parent 5f47058df5
commit 750406d135
2 changed files with 7 additions and 4 deletions

View file

@ -107,19 +107,19 @@
<td>@(result.blur)%</td>
<td>@if(result.hold){Yes} else {No}</td>
<td>
<div class="hint--top" data-hint="@result.bestMatch.explanation">
<a href="@routes.Round.watcher(result.bestMatch.gameId, result.bestMatch.color.name)" class="peerLink hint--top" data-hint="@result.bestMatch.explanation">
<span class="assessment sig_@(result.bestMatch.assessment)">@result.bestMatch.assessmentString</span>
<br /><span class="@if(result.bestMatch.positiveMatch) {match} else {partial}">@(result.bestMatch.matchPercentage)%</span>
</div>
</a>
</td>
@Range(0, 4).map { i =>
@result.secondaryMatches.lift(i) match {
case Some(peer) => {
<td>
<div class="hint--top" data-hint="@peer.explanation">
<a href="@routes.Round.watcher(peer.gameId, peer.color.name)" class="peerLink hint--top" data-hint="@peer.explanation">
<span class="assessment sig_@(peer.assessment)">@peer.assessmentString</span>
<br /><span class="@if(peer.positiveMatch) {match} else {partial}">@(peer.matchPercentage)%</span>
</div>
</a>
</td>
}
case _ => {

View file

@ -264,3 +264,6 @@ div.user_show div.content_box_inter.tabs {
div.user_show #crosstable {
margin: 25px auto 15px auto;
}
div.user_show .evaluation .peerLink {
text-decoration: none;
}