[%# Interest search, based on code from LiveJournal.
#
# Authors:
# Jen Griffin [% warn_toolong %]
[% '.morestuff2' | ml(aopts = "href='$site.root/interests'") %]
[%- intadd = dw.create_url( '/interests', args =>
{ mode = 'add', intid = intid } ) -%]
[%- '.addint3' | ml(int = int, aopts = "href='${intadd}'") -%]
[%- '.nocomms2' | ml(aopts = "href='$site.root/communities/new'", num = query_count) %] [% '.nomatch' | ml(link = type_link('none')) %] [% '.noshown' | ml %]
[%- '.nocomms2' | ml(aopts = "href='$site.root/communities/new'", num = query_count) %]
[%- IF no_users -%]
[%- '.nousers3' | ml(aopts = "href='$site.root/interests?mode=addnew&keyword=$no_users'", num = no_users_count, interests = no_users ) %][% ".header" | ml(interest = interest) %]
[%- IF allcount -%]
[%- IF type_count.defined -%]
[% '.filtered' | ml(num = allcount, count = type_count) %]
[%- ELSE -%]
[% '.matches2' | ml(num = allcount) %]
[%- END -%]
[%- IF data -%]
[%- FOREACH data -%]
[%- ELSIF filtered -%]
[% desclabel %] [% desc %]
[%- END -%]
(
[%- IF updated; '.lastupdated.true' | ml(time = updated) -%]
[%- ELSE; '.lastupdated.false' | ml; END -%]
)
[%- intadd = dw.create_url( '/interests', args => { mode = 'add', intid = intid } ) -%] [%- '.addint3' | ml(int = int, aopts = "href='${intadd}'") -%]
[%- END -%] [%- END -%] [%- END -%]