Skip to content

Commit

Permalink
convert list to table
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jun 11, 2015
1 parent 16dc0f8 commit c90812b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions client/v2.html
Expand Up @@ -10,11 +10,16 @@
<script src="v2.js"></script>

<script id="show-items-template" type="text/x-handlebars-template">
<ul>
<table>
<thead>
<tr><th>Item</th><th>Date</th><th>X</th></tr>
</thead>
<tbody>
{{#each data.items}}
<li>{{ text }} {{ date }} <button class="delete" data-id="{{ _id.$oid }}">x</a></li>
<tr><td>{{ text }}</td><td>{{ date }}</td><td><button class="delete" data-id="{{ _id.$oid }}">x</a></td></tr>
{{/each}}
</ul>
</tbody>
</table>
</script>

</head>
Expand Down

0 comments on commit c90812b

Please sign in to comment.