blob: 95055ccb95ac5da32d9a81dc20c918891b17986a [file] [log] [blame]
Nils Diewald4af3f0b2014-06-25 01:43:17 +00001%# ID, title, corpusID, author, pubDate, textClass
Nils Diewald996aa552014-12-02 03:26:44 +00002<li data-corpus-id="<%= $match->{corpusID} %>" \
3data-doc-id="<%= $match->{docID} %>" \
4data-match-id="<%= $match->{ID} %>" \
5id="<%= $match->{corpusID} %>-<%= $match->{docID} %>-<%= $match->{ID} %>"\
6<% if (current_route eq 'match') { %> class="active"<% } =%>
7>
8%#
9%# -- Match information (snippet, morph table, tree information etc.)
Nils Diewald4af3f0b2014-06-25 01:43:17 +000010 <div>
Nils Diewald791b5902014-12-04 04:47:24 +000011 <div class="snippet<%= $match->{startMore} ? ' startMore' : '' %><%= $match->{endMore} ? ' endMore' : '' %>"><%== $match->{snippet} %></div>
Nils Diewald4af3f0b2014-06-25 01:43:17 +000012 <div class="tokenInfo"></div>
Nils Diewald8f4b5da2014-12-03 22:13:39 +000013%# <div class="treeInfo"></div>
Nils Diewald4af3f0b2014-06-25 01:43:17 +000014 </div>
Nils Diewald996aa552014-12-02 03:26:44 +000015%#
16%# -- Reference string
17 <p>\
Nils Diewalde8ead6b2014-11-07 05:00:17 +000018% if ($match->{title}) {
Nils Diewald996aa552014-12-02 03:26:44 +000019<strong><%= $match->{title} %></strong>\
Nils Diewalde8ead6b2014-11-07 05:00:17 +000020% };
Nils Diewald996aa552014-12-02 03:26:44 +000021<%= $match->{author} ? ' by ' . $match->{author} : '' %><% if ($match->{title} || $match->{author}) { %>;<% } =%>
22 published on <%= date_format $match->{pubDate} %>\
23 as <%= $match->{docID} %> (<%= $match->{corpusID} %>)\
24</p>
25%#
26%# -- Action buttons
Nils Diewald4af3f0b2014-06-25 01:43:17 +000027 <ul class="action right">
28% if (current_route ne 'match') {
Nils Diewald996aa552014-12-02 03:26:44 +000029 <li class="close" title="Close"><a href="#"><i class="fa fa-toggle-up"></i></a></li>
30%# <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 Diewald77812322014-11-12 18:44:51 +000031 <li class="open" title="Open in new tab"><a href="#<%= $match->{corpusID} %>-<%= $match->{docID} %>-<%= $match->{ID} %>" target="_blank"><i class="fa fa-external-link-square"></i></a></li>
Nils Diewald996aa552014-12-02 03:26:44 +000032% };
Nils Diewald4af3f0b2014-06-25 01:43:17 +000033 <li onclick="showTable(this)" title="Annotations"><i class="fa fa-info-circle"></i></li>
Nils Diewald8f4b5da2014-12-03 22:13:39 +000034%# <li onclick="showTree(this, 'xip', 'c')" title="Tree Visualizations"><i class="fa fa-sitemap"></i></li>
Nils Diewald4af3f0b2014-06-25 01:43:17 +000035%# <li title="Remember"><i class="fa fa-star-o"></i></li>
36 </ul>
37</li>