blob: 99e6171c94529c038d8bcb6ea0c8261810f21ca3 [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>
Nils Diewaldf2e02a92014-11-12 18:31:05 +000011%# <div class="treeInfo"></div>
Nils Diewald4af3f0b2014-06-25 01:43:17 +000012 </div>
13 <p>
Nils Diewalde8ead6b2014-11-07 05:00:17 +000014% if ($match->{title}) {
Nils Diewald4af3f0b2014-06-25 01:43:17 +000015 <strong><%= $match->{title} %></strong>
Nils Diewalde8ead6b2014-11-07 05:00:17 +000016% };
Nils Diewaldf49633a2014-11-08 22:33:25 +000017 <%= $match->{author} ? ' by ' . $match->{author} : '' %><% if ($match->{title} || $match->{author}) { %>;<% } %>
Nils Diewald4af3f0b2014-06-25 01:43:17 +000018 published on <%= date_format $match->{pubDate} %>
19 as <%= $match->{docID} %> (<%= $match->{corpusID} %>)
20 </p>
21 <ul class="action right">
22% if (current_route ne 'match') {
Nils Diewald7cad8402014-07-08 17:06:56 +000023 <li class="close" title="Close"><a href="#"><i class="fa fa-toggle-up"></a></i></li>
Nils Diewald4af3f0b2014-06-25 01:43:17 +000024%# <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 +000025 <li class="open" title="Open in new tab"><a href="#<%= $match->{ID} %>" target="_blank"><i class="fa fa-external-link-square"></i></a></li>
26
Nils Diewald4af3f0b2014-06-25 01:43:17 +000027% }
28 <li onclick="showTable(this)" title="Annotations"><i class="fa fa-info-circle"></i></li>
Nils Diewaldf2e02a92014-11-12 18:31:05 +000029%# <li onclick="showTree(this, 'xip', 'c')" title="Tree Visualizations"><i class="fa fa-sitemap"></i></li>
Nils Diewald4af3f0b2014-06-25 01:43:17 +000030%# <li title="Remember"><i class="fa fa-star-o"></i></li>
31 </ul>
32</li>