Show More
Commit Description:
Merge pull request #17 from nattee/master...
Commit Description:
Merge pull request #17 from nattee/master upgrade to current working snapshot
References:
File last commit:
Show/Diff file:
Action:
app/views/sites/index.html.haml | 24 lines | 818 B | text/x-haml | HamlLexer |
%h1 Listing sites
%table.table.table-striped
%tr
%th Name
%th Password
%th Started
%th Start time
%th
%th
%th
- for site in @sites
- background = "white"
- background = "grey" if (site.started==true) and (site.finished? == true)
- background = "lightgreen" if (site.started==true) and (site.finished? != true)
%tr{:style => "background: #{background};"}
%td= h site.name
%td= h site.password
%td= h site.started
%td= h site.start_time
%td= link_to 'Show', site, class: 'btn btn-default'
%td= link_to 'Edit', edit_site_path(site), class: 'btn btn-default'
%td= link_to 'Destroy', site, :confirm => 'Are you sure?', :method => :delete, class: 'btn btn-default'
%br/
= link_to '+ New site', new_site_path, class: 'btn btn-success'