mourningdove/views/interests/popular.tt
2026-05-24 01:03:05 +00:00

45 lines
1.3 KiB
Text

[%# Interest search, based on code from LiveJournal.
#
# Authors:
# Jen Griffin <kareila@livejournal.com>
#
# Copyright (c) 2010 by Dreamwidth Studios, LLC.
#
# This program is free software; you may redistribute it and/or modify it
# under the same terms as Perl itself. For a copy of the license, please
# reference 'perldoc perlartistic' or 'perldoc perlgpl'.
#
%]
[%- sections.head = BLOCK %]
<style type='text/css'>
div.tagcloud a { text-decoration: none; }
ul.contentlist li { padding-bottom: 3px; }
</style>
[% END -%]
[%- CALL dw.active_resource_group( "foundation" ) -%]
[%- sections.title='.title' | ml -%]
<h2>[% '.popular.head' | ml %]</h2><p>[% '.popular.text' | ml %]
[%- IF no_text_mode -%]
[% '.popular.textmode'
| ml(aopts = "href='$site.root/interests?view=popular&mode=text'") %]
[%- END -%]
</p>
[%- IF pop_ints -%]
[%- IF no_text_mode; pop_cloud; ELSE -%]
<table class="table"><thead><tr>
<th width='150' style="text-align: left">
[% '.interest' | ml %]</th>
<th>[% '.count' | ml %]</th>
</tr></thead>
[%- FOREACH i = pop_ints -%]
<tr>
<td><a href='[% i.url | url %]'>[% i.eint %]</a></td>
<td>[% i.value %]</td>
</tr>
[%- END -%]
</table>
[%- END -%]
[%- ELSE; '.error.nodata' | ml; END -%]