Commit bc78e08

mo khan <mo@mokhan.ca>
2014-11-30 06:20:00
format the cakes#show page a little bit better.
1 parent c0720d6
Changed files (1)
app
templates
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'}}