[% IF c.action.class.match('^Vee::Controller::Forum') %]

[% END %] [% FILTER null %] [% BLOCK wrap_breadcrumbs %][% END %] [% BLOCK postbar %][%# posts %] [% IF posts != 0 %] [% postct_percent = log(posts) / log(2) %] [% postct_barsize = postct_percent * 4 %] [% ELSE %] [% postct_percent = 0; %] [% END %] [% IF postct_barsize > 100; postct_barsize = 97.5; END %] [% postct_hue = posts * 0.32 # not quite 360! %]
[% END %] [% BLOCK contact_icons -%][%# user, style (1, short version, 2, long version) -%] [% DEFAULT style = 1 %]
[% FOREACH contact IN ContactTypes %] [% tmp = 'contact_' _ contact.name | lower; value = user.$tmp; url = contact.url; name = contact.name %] [% IF value %] [% '
' IF style == 2 %][% IF url %][% END %][% name %]: [% value %] [% IF style == 2 %][% name %]
[% value %][% END %][% IF url %][% END %][% '
' IF style == 2 %] [% END %] [% END %] [% '
' IF style == 2 %]Send private message [% 'PM
not yet' IF style == 2 %]
[% END %] [% BLOCK post_form -%][%# url %]

[% IF form.exists('subject'); ''; END %]

[% IF form.exists('blurb'); ''; END %]

[% form.get_tag('id') %][% IF form.exists('content'); form.get_tag('content'); END %]

[% END %] [% BLOCK post_buttons -%][%# post, thread, forum %] [% is_deleted = post.flags.match('deleted') %] [% IF c.can_i("postedit", post) OR post.user_id == c.user.obj.id; can_edit = 1; END %] [% IF c.can_i("postdelete", post) OR (post.user_id == c.user.obj.id AND post.id == thread.last_post_id); can_delete = 1; END %] [% IF c.can_i("postnuke"); can_nuke = 1; END %] [% RETURN UNLESS can_edit || can_delete || can_nuke %]
[% IF can_edit %] Edit[% END %] [% IF can_delete %] [% IF is_deleted %] Undelete [% ELSE %] Delete [% END %] [% END %] [% IF can_nuke %] Nuke[% END %]
[% END %] [% BLOCK show_announcements %][%# announcements_rs %] [% RETURN IF announcements_rs.is_empty %]

Announcements

[% INCLUDE threads_start -%] [% WHILE (t = announcements_rs.next) %] [% INCLUDE threads_each thread=t show_forum=1 %] [% END %] [% INCLUDE threads_end %]

Threads

[%+ END %] [% BLOCK posts_start %] [% c.stash.posts_color = 1 %] [% END %] [% BLOCK posts_each %][%# post, thread, forum, show_deleted %] [% is_deleted = post.flags.match('deleted') %]
[% IF is_deleted AND !show_deleted %]
[% RETURN %] [% END %]
[% IF 0 AND post.id AND pos %] [%# fix this for filters and then re-enable it %] post #[% pos %] -- [% END %] posted at [% post.time | date %] [% IF timediff %] -- [% timediff | timespan %] since previous post [% END %] [% INCLUDE post_buttons post=post thread=thread forum=forum %]
[% IF post.news_pic %] [% post.name %]'s news pic [% END %] [% IF post.lastedit %]
Post last edited on [% post.lastedit.time | date %] by [% post.lastedit.user.name %]
[% END %]
[%+ post.content | bbcode | indent(12) %]
[% IF post.user.signature %]
[% post.user.signature | bbcode %]
[% END %]
[% c.stash.posts_color = 3 - c.stash.posts_color %] [%+ END %] [% BLOCK posts_end %][% END %] [% BLOCK threads_start %] [% c.stash.threads_color = 1 %] [% END %] [% BLOCK threads_each %][%# thread, ?show_forum -%] [% c.stash.threads_color = 3 - c.stash.threads_color %] [% END -%] [% BLOCK threads_message %][%# content -%] [% END -%] [% BLOCK threads_end %]
ThreadRepliesViews
[% IF is_unread(thread) %]Unread[% END %]
[% FOREACH flag IN ThreadFlagArray %] [% NEXT UNLESS thread.flags.match(flag.name) %] [% flag.name %] [% END %] [% thread.subject %]
[% IF thread.blurb %]
[% thread.blurb %]
[% END %]
[% IF show_forum %] [% END %]
[%# this is stupid fix it lati, but if all posts are deleted this will show -1 %][% IF thread.post_count > 0; thread.post_count - 1; ELSE; thread.post_count; END %][% thread.view_count %]
[% content %]
[% END %] [% BLOCK forums_start %] [% c.stash.forums_color = 1 %] [% END %] [% BLOCK forums_header %][%# title, blurb -%] [% END %] [% BLOCK forums_each %][%# forum -%] [% c.stash.forums_color = 3 - c.stash.forums_color %] [% END %] [% BLOCK forums_message %][%# content -%] [% END %] [% BLOCK forums_end %]
ForumThreadsPosts
[% title %][% IF blurb %]
[% blurb %]
[% END %]
[% IF is_unread(forum) %]Unread[% END %] [% UNLESS forum.accessibility == 'normal' %][% forum.accessibility %][% END %] [% forum.name %] [% IF forum.blurb %] [% forum.blurb %] [% END %] [% forum.thread_count %][% forum.post_count %]
[% content %]
[% END %] [% END # null %]