/
display;article;default
133 lines (116 loc) · 3.17 KB
/
display;article;default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
__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 %] < [% p %][% END %]
[% IF n %] [% IF p %] | [% END %][% n %] > [% END %]
<P> </TD><TD> </TD><TD WIDTH="210" ALIGN="RIGHT" 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 %]/my/homepage/">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 %]/~[% user.nickname | fixparam %]/">You</A> have moderator access and
<B>[% user.points %]</B> point[% user.points == 1 ? '' : 's' %].
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>
· You can't post & moderate the same discussion.
<BR>· Concentrate on Promoting more than Demoting.
<BR>· Browse at -1 to keep an eye out for abuses.
<BR>· <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 ($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 authortext;
PROCESS fancybox
title = 'Story Admin'
contents = authortext
center = 1;
END;
IF section_block.block;
PROCESS fancybox
title = section.title
contents = section_block.block
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,
tid => s.tid,
section => s.section
};
Slash.linkStory(ls);
END;
END %]
__seclev__
1000