about summary refs log tree commit diff stats
path: root/app/views/games/index.html.haml
blob: f7e7a447ba5949406a5942ad4541ff7138c4e53a (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
- title "Games"
%h2 Games
%table#games-table
  %tr
    %th Title
    %th Status
    %th Score
    %th Progress
  - @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