blob: 56c5a05a035660ac99317d6997e54d753b46fa90 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
- title "Games"
.breadcrumb= link_to "← Back to home page", root_path
%h2#games-title Games
%table#games-table
%thead
%tr
%th= sortable "title"
%th= sortable "status"
%th= sortable "score"
%th= sortable "progress"
%tbody
- @games.each do |game|
%tr{ class: cycle("even", "odd") }
%td
%span.game-title= game.title
- unless game.started_on.blank?
%span.game-started
Started on
%time= game.started_on
- unless game.finished_on.blank?
%span.game-finished
Finished on
%time= game.finished_on
%td= game.status
%td= game.score
%td.game-progress= simple_format game.progress
|