File: Squishdot_posting_html.dtml

package info (click to toggle)
squishdot 1.3.0-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 896 kB
  • ctags: 349
  • sloc: python: 2,313; makefile: 56; sh: 54
file content (161 lines) | stat: -rw-r--r-- 5,478 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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<dtml-comment >  
<!-- version : $Revision: 1.5 $  
     author  : Butch Landingin   
	    
  
     copyright (c) 1999 by Butch Landingin  
  
	  see License.txt for restrictions on distribution, use   
	  and modifications.  
  
  -->  
</dtml-comment>  
<dtml-var standard_html_header>  
<TABLE BORDER="1">  
<TR>  
<TD BGCOLOR="#EFEFEF" ALIGN="LEFT" VALIGN="TOP">  
<A HREF="<dtml-var site_url >/index_html">Return to Topic</A>  
</TD>  
<dtml-if "meta_type == 'Comment'">  
<TD>  
<A HREF="<dtml-var site_url ><dtml-var thread_path >/index_html#<dtml-var id >">Return to parent</A>  
</TD>  
<dtml-if "level > 1">  
<TD>  
<A HREF="<dtml-var site_url >/<dtml-var expr="getThread(0)" >/index_html#<dtml-var id >">Return to main thread</A>  
</TD>  
</dtml-if level>  
</dtml-if meta_type>  
</TR>  
</TABLE>  
<P>  
<STRONG><dtml-var title></STRONG><BR>  
<dtml-var date_posted>, by <dtml-var author><BR>  
<dtml-if "meta_type == 'Article'">  
<dtml-if subject>  
<STRONG> Subject :</STRONG> <dtml-var subject><BR>  
<dtml-call expr="REQUEST.set('currsubj',_['subject'])">  
<dtml-with "PARENTS[0]">  
<dtml-if "subject_image(_['currsubj'])"><img src="<dtml-var site_url >/<dtml-var "subject_image(_['currsubj'])" url_quote>"   
    ALIGN="RIGHT"></dtml-if>  
</dtml-with>  
</dtml-if subject>  
<dtml-if dept>  
<STRONG><EMPHASIS><FONT size=-1> from the <dtml-var dept> dept. </FONT></EMPHASIS></STRONG><BR>  
</dtml-if dept>  
<dtml-if summary>  
<STRONG>Summary :</STRONG><BR>  
<dtml-var showSummary>
<BR>
</dtml-if summary>  
</dtml-if meta_type>  
<dtml-if body>  
<STRONG>Text :</STRONG><BR>  
<dtml-var showBody>
<BR>
</dtml-if body>  
<dtml-if attachment>  
<dtml-in attachment>  
<A HREF="./<dtml-var file_name url_quote>">  
<IMG SRC="&dtml-site_url;/<dtml-var icon>" HEIGHT="16  
 WIDTH="16" BORDER="0" ALT="Click to download attachment"></A>    
<A HREF="./<dtml-var file_name url_quote>"><dtml-var file_name></A>   
<dtml-var file_kbytes>KB (<dtml-var file_bytes> bytes)<BR>  
</dtml-in attachment><BR>  
</dtml-if attachment>  
<A HREF="./addPostingForm"><STRONG>Reply</STRONG></A><BR>  
<!--this is the start of the replies -->  
<dtml-if reply_cnt>  
<HR>  
<dtml-if mod_comment >  
<dtml-with "_.namespace(comment_count = reply_cnt, maxlimit=50)">  
<dtml-if "comment_count > maxlimit">  
<CENTER><FONT size=-2> Over <dtml-var maxlimit> comments, printing index only </FONT></CENTER>  
</dtml-if comment_count>  
<dtml-call "REQUEST.set('prevlevel',0)">  
<dtml-in desc_items>  
<dtml-if reviewed>  
<dtml-if "level > prevlevel">  
<UL>  
<dtml-call "REQUEST.set('prevlevel',level)">  
<dtml-elif "level < prevlevel">  
<dtml-var "dupString('</UL>',prevlevel - level)">  
<dtml-call "REQUEST.set('prevlevel',level)">  
</dtml-if level>  
<LI>  
<A NAME="<dtml-var id>">  
<dtml-if "comment_count > maxlimit">  
<A HREF="<dtml-var site_url ><dtml-var thread_path>/<dtml-var id>/index_html"><STRONG><dtml-var title></STRONG></A><BR>  
<dtml-var date_posted>, by <dtml-var author><BR>  
<dtml-else>  
<STRONG><dtml-var title></STRONG><BR>  
<dtml-var date_posted>, by <dtml-var author><BR>  
<dtml-if body>  
<dtml-var showBody>
</dtml-if body>  
<BR>  
<A HREF="<dtml-var site_url ><dtml-var thread_path >/<dtml-var id >/addPostingForm"><STRONG>Reply</STRONG></A><BR>  
<BR>  
</dtml-if comment_count>  
</A>  
</LI>  
</dtml-if reviewed>  
</dtml-in desc_items>  
<dtml-if "prevlevel > 0">  
</UL>  
</dtml-if prevlevel>  
</dtml-with namespace>  
<dtml-else>  
<dtml-with "_.namespace(comment_count=reply_cnt,maxlimit=50)">  
<dtml-if "reply_cnt > maxlimit">  
<CENTER><FONT size=-2> Over <dtml-var maxlimit> comments, printing index only </FONT></CENTER>  
</dtml-if reply_cnt>  
<dtml-call "REQUEST.set('prevlevel',0)">  
<dtml-in desc_items>  
<dtml-if "level > prevlevel">  
<UL>  
<dtml-call "REQUEST.set('prevlevel',level)">  
<dtml-elif "level < prevlevel">  
<dtml-var "dupString('</UL>',prevlevel - level)">  
<dtml-call "REQUEST.set('prevlevel',level)">  
</dtml-if level>  
<LI>  
<A NAME="<dtml-var id>">  
<dtml-if "comment_count > maxlimit">  
<A HREF="<dtml-var site_url ><dtml-var thread_path >/<dtml-var id >/index_html"><STRONG><dtml-var title></STRONG></A><BR>  
<dtml-var date_posted>, by <dtml-var author><BR>  
<dtml-else>  
<STRONG><dtml-var title></STRONG><BR>  
<dtml-var date_posted>, by <dtml-var author><BR>  
<dtml-if body>  
<dtml-var showBody>
<BR>
</dtml-if body>  
<dtml-with "_.namespace(file_id=_['id'])">  
<dtml-if attachment>  
<dtml-in attachment>  
<A HREF="<dtml-var site_url ><dtml-var thread_path >/<dtml-var file_id >/<dtml-var file_name url_quote>">  
<IMG SRC="&dtml-site_url;/<dtml-var icon >" HEIGHT=16  
  WIDTH=16 BORDER="0" ALT="Click to download attachment"></A>    
<A HREF="<dtml-var site_url ><dtml-var thread_path >/<dtml-var file_id >/<dtml-var file_name url_quote>">  
<dtml-var file_name></A>   
<dtml-var file_kbytes>KB (<dtml-var file_bytes> bytes)<BR>  
</dtml-in attachment><BR>  
</dtml-if>  
</dtml-with>  
<A HREF="<dtml-var site_url ><dtml-var thread_path >/<dtml-var id >/addPostingForm"><STRONG>Reply</STRONG></A><BR>  
<BR>  
</dtml-if comment_count>  
</A>  
</LI>  
</dtml-in desc_items>  
<dtml-if "prevlevel > 0">  
</UL>  
</dtml-if>  
</dtml-with>  
</dtml-if mod_comment>  
</dtml-if reply_cnt>  
<p><a href="http://squishdot.org"><img src="&dtml-site_url;/<dtml-var squishlogo>"  alt="Squishdot Powered" border=1 height=50 width=75></a>  
<dtml-var standard_html_footer>