Created
July 8, 2012 18:09
-
-
Save joshskeen/3072104 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-unless @items.empty? | |
div class="row" | |
div class="span6" | |
h2 todo list: | |
div | |
table width=500 class="table-striped table-condensed table-bordered" | |
tr | |
th name | |
th description | |
th complete | |
-for item in @items do | |
tr | |
td=item.name | |
td=item.description | |
td | |
=link_to 'complete', item, :method => :delete, :class => "btn" | |
=link_to 'delete', item, :method => :delete, :class => "btn", :confirm => "are you sure you want to delete #{item.name}?" | |
div class="span6" | |
h2 template: | |
pre this | |
\is | |
-else | |
p | |
| no items found! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment