File: printCommComments%3Bmisc%3Bdefault

package info (click to toggle)
slash 2.2.6-8etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,672 kB
  • ctags: 1,915
  • sloc: perl: 23,113; sql: 1,878; sh: 433; makefile: 233
file content (93 lines) | stat: -rwxr-xr-x 2,048 bytes parent folder | download | duplicates (3)
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
__section__
default
__description__
The printing of the comments

* can_moderate = boolean for whether current user is eligible to moderate
* comment = hashref of main comment to display (if cid is specified)
* comments = big ol' arrayref of comments
* next = hashref of next comment for "next" link
* previous = hashref of previous comment for "previous" link
* sid = story ID
* cid = comment ID
* pid = base parent ID
* cc = number of siblings of this comment
* lvl = what nesting level we're at
* lcp = linkCommentPages value
__title__

__page__
misc
__lang__
en_US
__name__
printCommComments
__template__
[% USE Slash %]

[% IF can_moderate %]
	<FORM ACTION="[% constants.rootdir %]/comments.pl" METHOD="POST">
	<INPUT TYPE="HIDDEN" NAME="sid" VALUE="[% sid %]">
	<INPUT TYPE="HIDDEN" NAME="cid" VALUE="[% cid %]">
	<INPUT TYPE="HIDDEN" NAME="pid" VALUE="[% pid %]">
[% END %]


[% IF cid %]
	[% Slash.dispComment(comment) %]
	</TD></TR>
	<TR><TD BGCOLOR="[% user.bg.2 %]" ALIGN="CENTER">

	[% IF previous %]
		&lt;&lt;[% Slash.linkComment(previous, 1) %]
	[% END %]

	[% IF previous && (comment.pid || next) %]
		|
	[% END %]

	[% IF comment.pid %]
		[% Slash.linkComment(comment, 1) %]
	[% END %]

	[% IF next && (comment.pid || previous) %]
		|
	[% END %]

	[% IF next %]
		[% Slash.linkComment(next, 1) %]&gt;&gt;
	[% END %]

	</TD></TR>
	<TR><TD ALIGN="CENTER">
	[% Slash.moderatorCommentLog(cid) %]
	</TD></TR>
[% END %]

	[% lcp %]
	[% IF lvl %]
	<TR><TD>
	[% END %]
	[% Slash.displayThread(sid, pid, lvl, comments) %]
	[% IF lvl %]
	</TD></TR>
	[% END %]
	[% lcp %]

[% IF (can_moderate && user.mode != 'archive' && !user.state.comment_read_only) %]
	<TR><TD>
		<P>Have you read the
		<A HREF="[% constants.rootdir %]/moderation.shtml">Moderator Guidelines</A>
		yet?
		<INPUT TYPE="HIDDEN" NAME="op" VALUE="moderate">
		<INPUT TYPE="SUBMIT" VALUE="moderate">
	[% IF user.is_admin && constants.authors_unlimited %]
		<BR><B>NOTE: Checked comments will be deleted.</B>
	[% END %]
	</TD></TR></FORM>
[% END %]

</TABLE>

__seclev__
10000