diff options
| author | mo khan <mo@mokhan.ca> | 2014-11-29 23:20:00 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-11-29 23:20:00 -0700 |
| commit | bc78e08345b5491bf05c00d68811565f7b1ddbd7 (patch) | |
| tree | e3e824f9ade7ad544114035c06cda8649c9c327a | |
| parent | c0720d6aac55204d8ca10941b8e1e2c9eaa29917 (diff) | |
format the cakes#show page a little bit better.
| -rw-r--r-- | app/templates/cake.hbs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/app/templates/cake.hbs b/app/templates/cake.hbs index b1e9768..3d3242c 100644 --- a/app/templates/cake.hbs +++ b/app/templates/cake.hbs @@ -1,15 +1,16 @@ <div class="row"> - <div class="col-sm-6 col-md-6"> - <img {{bind-attr src=primaryPhoto.largeUrl}} {{bind-attr alt=name}} class="thumbnail"> + <div class="col-xs-6"> + {{#link-to 'cake' this class="thumbnail"}} + <img {{bind-attr src=primaryPhoto.largeUrl}} {{bind-attr alt=name}} /> + {{/link-to}} </div> - <div class="col-sm-6 col-md-6"> + <div class="col-xs-6"> <h1>{{#link-to 'cake' this}}{{name}}{{/link-to}}</h1> <p>By {{author.name}}</p> + <p>Published: {{formatted-date createdAt }}</p> + <p><span class="glyphicon glyphicon-filter" aria-hidden="true"></span> {{category.name}}</p> <p>{{description}}</p> - <p>{{category.name}}</p> - <p>Created at: {{formatted-date createdAt 'MMM Do, YYYY [at] h:mm'}}</p> - <p>Updated at: {{formatted-date updatedAt 'MMM Do, YYYY [at] h:mm'}}</p> </div> </div> {{#if 'photos.length === 1'}} |
