blob: 42ac9b3f66d685a48bef9efc69245d71cdd0def5 [file] [log] [blame]
Nils Diewald2329e1d2014-06-12 16:07:57 +00001<h2>Virtual Collections</h2>
2<ul>
Nils Diewald1eba6572014-06-17 19:49:53 +00003% foreach my $vc (@{resource_info('collection')}) {
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">
7 <dt>Documents</dt> <dd><%= commify $stats->{documents} %></dd>
8 <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>