projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f855834
)
Add fields to summary, also remove bold and italic.
author
Jason Skomorowski
<jason@indexdata.com>
Thu, 30 Oct 2014 20:30:36 +0000
(16:30 -0400)
committer
Jason Skomorowski
<jason@indexdata.com>
Thu, 30 Oct 2014 20:30:36 +0000
(16:30 -0400)
src/templates/summary.handlebars
patch
|
blob
|
history
diff --git
a/src/templates/summary.handlebars
b/src/templates/summary.handlebars
index
aa2ed10
..
3838d17
100644
(file)
--- a/
src/templates/summary.handlebars
+++ b/
src/templates/summary.handlebars
@@
-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
}}
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}}">
<a href="#" id="{{detailLinkId}}" onclick="{{detailClick}}">
- <b>{{md-title}}</b>
+ {{md-title}}
</a>
</a>
+</span>
{{#if md-title-remainder}}
{{#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}}
-{{#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}}}
{{/if}}
{{#if renderedDetails}}
{{{renderedDetails}}}