about summary refs log tree commit diff stats
path: root/data/maps/the_door/metadata.txtpb
blob: 85dc340802647c25876fab1d43a9cc0b0c382a4d (plain) (blame)
1
display_name: "The Door"
* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
- 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