Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 1 | %# 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 Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 5 | id="<%= $match->{ID} %>" |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 6 | <% 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 Diewald | e8ead6b | 2014-11-07 05:00:17 +0000 | [diff] [blame^] | 13 | % if ($match->{title}) { |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 14 | <strong><%= $match->{title} %></strong> |
Nils Diewald | e8ead6b | 2014-11-07 05:00:17 +0000 | [diff] [blame^] | 15 | % }; |
| 16 | <%= $match->{author} ? ' by ' . $match->{author} : '' %><% if ($match->{title} || $match->{author}) %>;<% } %> |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 17 | 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 Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 22 | <li class="close" title="Close"><a href="#"><i class="fa fa-toggle-up"></a></i></li> |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 23 | %# <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 Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 24 | <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 Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 26 | % } |
| 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> |