Add fields to summary, also remove bold and italic.
authorJason Skomorowski <jason@indexdata.com>
Thu, 30 Oct 2014 20:30:36 +0000 (16:30 -0400)
committerJason Skomorowski <jason@indexdata.com>
Thu, 30 Oct 2014 20:30:36 +0000 (16:30 -0400)
src/templates/summary.handlebars

index aa2ed10..3838d17 100644 (file)
@@ -10,14 +10,31 @@ detailClick - a click event handler for details
 renderedDetails - active record details rendered from the details template
 md-* - metadata fields passed through from backend
 }}
+{{#if md-thumburl}}
+  <a class="result-thumb" href="#" onclick="{{detailClick}}">
+    <img src="{{md-thumburl}}"/>
+  </a>
+{{/if}}
+<span class="result-title">
 <a href="#" id="{{detailLinkId}}" onclick="{{detailClick}}">
-  <b>{{md-title}}</b>
+  {{md-title}}
 </a>
+</span>
 {{#if md-title-remainder}}
-  <span>{{md-title-remainder}}</span>
+  <span class="result-title-remainder">{{md-title-remainder}}</span>
+{{/if}}
+{{#if md-author}}
+  <span class="result-author">{{md-author}}</span>
+{{else}}
+  {{#if md-title-responsibility}}
+    <span class="result-author">{{md-title-responsibility}}</span>
+  {{/if}}
+{{/if}}
+{{#if md-description}}
+  <div class="result-description">{{md-description}}</div>
 {{/if}}
-{{#if md-title-responsibility}}
-  <span><i>{{md-title-responsibility}}</i></span>
+{{#if md-date}}
+  <span class="result-date">{{md-date}}</span>
 {{/if}}
 {{#if renderedDetails}}
   {{{renderedDetails}}}