Skip to content

Instantly share code, notes, and snippets.

@gcollazo
Created September 26, 2014 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gcollazo/289ef033591b703c5d79 to your computer and use it in GitHub Desktop.
Save gcollazo/289ef033591b703c5d79 to your computer and use it in GitHub Desktop.
<div class="container">
<div class="row">
<div class="col-sm-3">
{{#link-to 'documents.new' class="btn btn-default btn-create-document"}}Create Document{{/link-to}}
<hr>
<div class="list-group">
{{#each document in controller}}
{{#link-to 'document' document class="list-group-item"}}
<h4 class="list-group-item-heading">{{document.name}}</h4>
<p class="list-group-item-text">Created {{date-relative document.created}}</p>
{{/link-to}}
{{/each}}
</div>
</div>
<div class="col-sm-9">
{{outlet}}
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment