blob: 3beeba3c418d7dc211b2a3ee8d290d9c25cb24d3 [file] [log] [blame]
Nils Diewald2329e1d2014-06-12 16:07:57 +00001<h2>Virtual Collections</h2>
2<ul>
Nils Diewald8f4b5da2014-12-03 22:13:39 +00003% foreach my $vc (@{stash('search.resource') // []}) {
Nils Diewald44a72782014-06-20 16:03:21 +00004 <li class="active" title="<%= $vc->{description} // '' %>"><h3><%= $vc->{name} %></h3>
Nils Diewald4e9fbcb2014-07-15 11:45:09 +00005% my $stats = $vc->{statistics};
Nils Diewald44a72782014-06-20 16:03:21 +00006 <dl class="info">
Nils Diewald13bad6a2014-07-18 16:44:51 +00007 <dt>Texts</dt> <dd><%= commify($stats->{documents} // $stats->{texts}) %></dd>
Nils Diewald44a72782014-06-20 16:03:21 +00008 <dt>Paragraphs</dt> <dd><%= commify $stats->{paragraphs} %></dd>
9 <dt>Sentences</dt> <dd><%= commify $stats->{sentences} %></dd>
10 <dt>Tokens</dt> <dd><%= commify $stats->{tokens} %></dd>
11 </dl>
12 </li>
Nils Diewald2329e1d2014-06-12 16:07:57 +000013% };
14</ul>
Nils Diewald2fe12e12015-03-06 16:47:06 +000015% if (kalamar_test_port()) {
16<p style="font-size: 9pt; padding-left: 1em">Index port: <%= $c->url_for($c->config('Kalamar')->{'api-0.1'})->port %></p>
Nils Diewald36630132014-11-07 03:52:00 +000017% };