blob: 447ad321c0ef49cfdc45d3aa0f37998111a1e87b [file] [log] [blame]
Nils Diewald4af3f0b2014-06-25 01:43:17 +00001%# ID, title, corpusID, author, pubDate, textClass
2<li data-corpus-id="<%= $match->{corpusID} %>"
3 data-doc-id="<%= $match->{docID} %>"
4 data-match-id="<%= $match->{ID} %>"
Nils Diewald7cad8402014-07-08 17:06:56 +00005 id="<%= $match->{ID} %>"
Nils Diewald4af3f0b2014-06-25 01:43:17 +00006<% if (current_route eq 'match') { %>class="active"<% } %>
7 >
8 <div>
9 <div class="snippet"><%== $match->{snippet} %></div>
10 <div class="tokenInfo"></div>
11 </div>
12 <p>
Nils Diewalde8ead6b2014-11-07 05:00:17 +000013% if ($match->{title}) {
Nils Diewald4af3f0b2014-06-25 01:43:17 +000014 <strong><%= $match->{title} %></strong>
Nils Diewalde8ead6b2014-11-07 05:00:17 +000015% };
Nils Diewaldf49633a2014-11-08 22:33:25 +000016 <%= $match->{author} ? ' by ' . $match->{author} : '' %><% if ($match->{title} || $match->{author}) { %>;<% } %>
Nils Diewald4af3f0b2014-06-25 01:43:17 +000017 published on <%= date_format $match->{pubDate} %>
18 as <%= $match->{docID} %> (<%= $match->{corpusID} %>)
19 </p>
20 <ul class="action right">
21% if (current_route ne 'match') {
Nils Diewald7cad8402014-07-08 17:06:56 +000022 <li class="close" title="Close"><a href="#"><i class="fa fa-toggle-up"></a></i></li>
Nils Diewald4af3f0b2014-06-25 01:43:17 +000023%# <li class="open" title="Open in new tab"><%= link_to 'match', { corpus_id => $match->{corpusID}, doc_id => $match->{docID}, match_id => $match->{ID} }, target => '_blank', begin %><i class="fa fa-external-link-square"></i><% end %></li>
Nils Diewald7cad8402014-07-08 17:06:56 +000024 <li class="open" title="Open in new tab"><a href="#<%= $match->{ID} %>" target="_blank"><i class="fa fa-external-link-square"></i></a></li>
25
Nils Diewald4af3f0b2014-06-25 01:43:17 +000026% }
27 <li onclick="showTable(this)" title="Annotations"><i class="fa fa-info-circle"></i></li>
28%# <li title="Tree Visualizations"><i class="fa fa-sitemap"></i></li>
29%# <li title="Remember"><i class="fa fa-star-o"></i></li>
30 </ul>
31</li>