[%# Journal search form.
#
# Authors:
# Mark Smith
# Jen Griffin [% '.blurb' | ml( sitename = site.name ) %]
[%- IF did_post -%] [%- IF result.size -%] [%- IF result.total > 0; FOREACH match = result.matches; mu = load_uid( match.journalid ); pu = load_uid( match.poster_id ); # Do not show filtered icon for other users IF match.security == 'usemask' && ! mu.equals( remote ); match.security = 'access'; END; icon = sec_icon( match.security ); IF match.jtalkid > 0; IF match.poster_id > 0; attrib = '.attribution.comment' | ml( journal => mu.ljuser_display, poster => pu.ljuser_display ); ELSE; attrib = '.attribution.comment.anon' | ml( journal => mu.ljuser_display ); END; ELSE; IF mu.is_comm; attrib = '.attribution.comm' | ml( journal => mu.ljuser_display, poster => pu.ljuser_display ); ELSE; attrib = '.attribution' | ml( journal => mu.ljuser_display ); END; END; -%]
[% '.results.displayed' | ml( results = matchct, total = result.total, skipped = " $skip", query = q ) %] [% '.results.time' | ml( time = result.time ) %]
[%- offsetm = offset + matchct; IF result.total > offsetm -%] [%- END -%] [%- ELSE -%] [% 'error' | ml %]: [% ".error.noresults" | ml( query = q, time = result.time ) %] [%- END -%] [%- END -%] [%- ELSE -%] [% '.security.setting' | ml( aopts => "href='$site.root/manage/settings/?cat=privacy'" ) %] [%- END -%]