diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2016-02-03 17:23:06 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2016-02-03 17:23:06 +0100 |
| commit | e5c7780adb59e8038a040a1e534a4cee1fac8cd8 (patch) | |
| tree | 2f8be5ac975398a7cb1084dd13c9350514119d85 /data/templates/search/hit.htm | |
| parent | 226508cd8d3e8c147ad314a0de483e08be71c254 (diff) | |
| download | phinde-e5c7780adb59e8038a040a1e534a4cee1fac8cd8.tar.gz phinde-e5c7780adb59e8038a040a1e534a4cee1fac8cd8.zip | |
filtering works
Diffstat (limited to 'data/templates/search/hit.htm')
| -rw-r--r-- | data/templates/search/hit.htm | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/data/templates/search/hit.htm b/data/templates/search/hit.htm index 3d8f633..4981017 100644 --- a/data/templates/search/hit.htm +++ b/data/templates/search/hit.htm @@ -1,11 +1,23 @@ {% set doc = hit._source %} <li class="hit"> - <a href="{{doc.url}}">{{doc.title}}</a> - {% if doc.author.name %} - by <a href="{{doc.author.url}}">{{doc.author.name}}</a> - {% endif %} - <br/><tt>{{doc.extra.cleanUrl}}</tt> - {% if doc.modate %} - <br/>Changed: {{doc.extra.day}} - {% endif %} + <span class="title"> + <a href="{{doc.url}}">{{doc.title}}</a> + {% if doc.author.name %} + by + <em> + {% if doc.author.url %} + <a href="{{doc.author.url}}">{{doc.author.name}}</a> + {% else %} + {{doc.author.name}} + {% endif %} + </em> + {% endif %} + </span> + <br/><tt class="url" title="{{doc.extra.cleanUrl}}">{{ellipsis(doc.extra.cleanUrl, 60)}}</tt> + <span class="extract"> + <br/> + {% if doc.modate %} + <span class="date">{{doc.extra.day|date("Y-m-d")}}</span> + {% endif %} + </span> </li> |
