Skip to content

Commit

Permalink
display that simul is finished
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Apr 4, 2015
1 parent 45eb34f commit 172450f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/simul/src/main/JsonView.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ final class JsonView(
"variants" -> simul.variants.map(variantJson(chess.Speed(simul.clock.chessClock.some))),
"applicants" -> simul.applicants.sortBy(-_.player.rating).map(applicantJson),
"pairings" -> simul.pairings.sortBy(-_.player.rating).map(pairingJson(games)),
"isStarted" -> simul.isStarted,
"isCreated" -> simul.isCreated,
"isRunning" -> simul.isRunning,
"isFinished" -> simul.isFinished)
}

Expand Down
7 changes: 7 additions & 0 deletions public/stylesheets/simul.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@
#simul .half.accepted tr.me {
border-right: 10px solid #d59120;
}
#simul .title_tag {
float: right;
font-size: 20px;
font-family: monospace;
font-weight: bold;
margin: 25px 25px 0 0;
}
#simul .top_right {
float: right;
margin: 20px 25px 0 0;
Expand Down
2 changes: 1 addition & 1 deletion ui/simul/src/view/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var finished = require('./finished');

module.exports = function(ctrl) {
var handler;
if (ctrl.data.isStarted) handler = started;
if (ctrl.data.isRunning) handler = started;
else if (ctrl.data.isFinished) handler = finished;
else handler = created;

Expand Down

0 comments on commit 172450f

Please sign in to comment.