__section__
default
__description__
Template which describes the layout of the article display (and included comments if preferred).

* poll = pollbooth block
* section = section hashref
* section_block = section block hashref
* show_poll = boolean for showing poll or not
* story = story data structure
* next = data structure for next story
* prev = data structure for previous story

__title__

__page__
article
__lang__
en_US
__name__
display
__template__
[% USE Slash %]

[% data = Slash.displayStory(story.sid, 'Full'); data.0 %]

[% IF form.refresh %]
<FONT COLOR="white" SIZE="1">How Refreshing! ([% form.sid %]) </FONT>

[% END %]
<P>

[% n = BLOCK; PROCESS nextStory s=next; END %]
[% p = BLOCK; PROCESS nextStory s=prev; END %]
[% IF p %] &lt;&nbsp; [% p %][% END %]
[% IF n %] [% IF p %] | [% END %][% n %] &nbsp;&gt; [% END %]
<P>&nbsp;</TD><TD>&nbsp;</TD><TD VALIGN="TOP">

[% # -- User's Article Box. %]
[% IF user.is_anon;
	# User is anonymous
	contents = BLOCK;
		PROCESS userlogin
			return_url = "${constants.rootdir}/article.pl?sid=${form.sid}";
	END;
	PROCESS fancybox
		title		= "${constants.sitename} Login"
		contents	= contents
		center		= 1;
ELSE;
	# User is logged in.
	M = BLOCK %][ <A HREF="[% constants.rootdir %]/users.pl?op=edithome">Preferences</A>[% END %]
	[% IF user.seclev > 99 && user.uid;
		M = BLOCK %]
[% M %] | <A HREF="[% constants.rootdir %]/admin.pl">Admin</A> |
	  <A HREF="[% constants.rootdir %]/admin.pl?op=edit&sid=[% story.sid %]">Editor</A>
		[% END;
	END;
	M = "$M ]<P>\n";
	IF user.points || user.seclev > 99;
		M = BLOCK %]
[% M %]<A HREF="[% constants.rootdir %]/users.pl">You</A> have moderator access and
<B>[% user.points %]</B> points. Welcome to those of you just joining: <B>please</B>
read the <A HREF="[% constants.rootdir %]/moderation.shtml">moderator guidelines</A>
for instructions. (<B>updated 9.9!</B>)

<P>

<LI>You can't post & moderate the same discussion.
<LI>Concentrate on Promoting more than Demoting.
<LI>Browse at -1 to keep an eye out for abuses.
<LI><A HREF="mailto:[% constants.adminmail %]">Mail the admin</A> URLs showing abuse
(the cid link please!).
		[% END;
	END;
	M = "$M<P> $user.mylinks ";
	# User can be logged in as both a regular user and author. This box should probably
	# show both names to make the user aware.
	name = user.nickname;
	IF user.uid; name = "$name &nbsp;($user.uid)"; END;
	PROCESS fancybox
		title		= name
		contents	= M
		center		= 1;
END %]

[% IF show_poll;
	PROCESS fancybox
		title		= 'Article Poll'
		contents	= poll
		center		= 1;
END;

PROCESS fancybox
	title		= 'Related Links'
	contents	= story.relatedtext
	center		= 1;

IF section_block.block;
	PROCESS fancybox
		title		= section.title
		contents	= section_block.block
		center		= 1;
END;

IF user.is_admin AND form.op == 'preview';
	PROCESS fancybox
		title		= 'Story admin'
		contents	= authorbox
		center		= 1;
END %]    
 
</TD></TR><TR><TD COLSPAN="4">

[% BLOCK nextStory;
	IF !s;
		RETURN;
	ELSIF s.title == story.title;
		RETURN;
	ELSE;
		ls = {
			link	=> s.title,
			sid	=> s.sid,
			section	=> s.section
		};
		Slash.linkStory(ls);
	END;
END %]

__seclev__
1000
