moved qdb here because matt is lazy
[public/www-new.git] / pub / qdb / src / templates / default / quote_list.html
1 <TMPL_INCLUDE NAME="_head.html">\r
2         <script type="text/javascript">\r
3                 var locale = new Array();\r
4                 locale["processing"] = "<TMPL_VAR NAME="PROCESSING">";\r
5                 locale["error"] = "<TMPL_VAR NAME="ERROR">";\r
6                 locale["timeout_text"] = "<TMPL_VAR NAME="QUOTE_RATING_TIMED_OUT">";\r
7                 locale["already_rated_text"] = "<TMPL_VAR NAME="QUOTE_ALREADY_RATED_TEXT">";\r
8                 locale["limit_exceeded_text"] = "<TMPL_VAR NAME="LIMIT_EXCEEDED_TEXT">";\r
9                 locale["quote_not_found_text"] = "<TMPL_VAR NAME="QUOTE_NOT_FOUND_TEXT">";\r
10                 locale["session_required_text"] = "<TMPL_VAR NAME="SESSION_REQUIRED_TEXT">";\r
11                 locale["flagged"] = "<TMPL_VAR NAME="FLAGGED">";\r
12         </script>\r
13         <script type="text/javascript" src="<TMPL_VAR NAME="RESOURCES_URL">/js/ajax.js"></script>\r
14         <script type="text/javascript" src="<TMPL_VAR NAME="RESOURCES_URL">/js/live_rating.js"></script>\r
15         <TMPL_IF NAME="BROWSER">\r
16         <div class="quote-browser" id="quote-browser-top">\r
17                 <TMPL_IF NAME="PREVIOUS_URL">\r
18                 <a href="<TMPL_VAR NAME="PREVIOUS_URL">">&larr; <TMPL_VAR NAME="PREVIOUS_PAGE_TITLE"></a>\r
19                 <TMPL_ELSE>\r
20                 <span class="inactive">&larr; <TMPL_VAR NAME="PREVIOUS_PAGE_TITLE"></span>\r
21                 </TMPL_IF>\r
22                 <TMPL_IF NAME="NEXT_URL">\r
23                 <a href="<TMPL_VAR NAME="NEXT_URL">"><TMPL_VAR NAME="NEXT_PAGE_TITLE"> &rarr;</a>\r
24                 <TMPL_ELSE>\r
25                 <span class="inactive"><TMPL_VAR NAME="NEXT_PAGE_TITLE"> &rarr;</span>\r
26                 </TMPL_IF>\r
27         </div>\r
28         </TMPL_IF>\r
29         <h2>\r
30                 <TMPL_VAR NAME="PAGE_TITLE">\r
31         </h2>\r
32         <TMPL_IF NAME="SEARCHED">\r
33         <TMPL_INCLUDE NAME="_search_form.html">\r
34         </TMPL_IF>\r
35         <ul class="quote-list">\r
36         <TMPL_LOOP NAME="QUOTES">\r
37                 <li id="quote-<TMPL_VAR NAME="ID">" class="quote <TMPL_UNLESS NAME="IS_APPROVED">unapproved</TMPL_UNLESS> <TMPL_IF NAME="IS_FLAGGED">flagged</TMPL_IF>">\r
38                         <div class="quote-container">\r
39                                 <h3 class="quote-header" id="quote-header-<TMPL_VAR NAME="ID">">\r
40                                 <TMPL_IF NAME="IS_APPROVED">\r
41                                         <span id="quote-live-vote-result-<TMPL_VAR NAME="ID">" class="quote-live-vote-result"></span>\r
42                                         <a href="<TMPL_VAR NAME="LINK_URL">"\r
43                                         title="<TMPL_VAR NAME="LINK_DESCRIPTION">" class="quote-permalink"><span class="quote-id">#<TMPL_VAR NAME="ID"></span></a>\r
44                                         <a href="<TMPL_VAR NAME="RATING_UP_URL">" rel="nofollow"\r
45                                         onclick="return sendRating(this, <TMPL_VAR NAME="ID">)"\r
46                                         title="<TMPL_VAR NAME="RATING_UP_DESCRIPTION">" class="quote-rating-up<TMPL_IF NAME="WAS_VOTED_UP"> casted-vote</TMPL_IF>" id="quote-rating-up-<TMPL_VAR NAME="ID">"><TMPL_VAR NAME="UP">&uarr;</a>\r
47                                         <span id="quote-rating-<TMPL_VAR NAME="ID">" class="quote-rating" title="<TMPL_VAR NAME="RATING_DESCRIPTION">"><TMPL_VAR NAME="RATING_TEXT"></span><span\r
48                                         class="quote-vote-count" title="<TMPL_VAR NAME="VOTE_COUNT_DESCRIPTION">">/<span id="quote-vote-count-<TMPL_VAR NAME="ID">"><TMPL_VAR NAME="VOTE_COUNT"></span></span>\r
49                                         <a href="<TMPL_VAR NAME="RATING_DOWN_URL">" rel="nofollow"\r
50                                         onclick="return sendRating(this, <TMPL_VAR NAME="ID">)"\r
51                                         title="<TMPL_VAR NAME="RATING_DOWN_DESCRIPTION">" class="quote-rating-down<TMPL_IF NAME="WAS_VOTED_DOWN"> casted-vote</TMPL_IF>" id="quote-rating-down-<TMPL_VAR NAME="ID">"><TMPL_VAR NAME="DOWN">&darr;</a>\r
52                                         <TMPL_IF NAME="IS_FLAGGED">\r
53                                         <span class="quote-flagged">[<TMPL_VAR NAME="FLAGGED">]</span>\r
54                                         <TMPL_ELSE>\r
55                                         <a href="<TMPL_VAR NAME="REPORT_URL">" rel="nofollow"\r
56                                         onclick="return sendReport(this, <TMPL_VAR NAME="ID">)"\r
57                                         title="<TMPL_VAR NAME="REPORT_DESCRIPTION">" class="quote-report" id="quote-report-<TMPL_VAR NAME="ID">">[<TMPL_VAR NAME="REPORT">]</a>\r
58                                         </TMPL_IF>\r
59                                         <span class="quote-date" title="<TMPL_VAR NAME="DATE_DESCRIPTION">"><TMPL_VAR NAME="SUBMITTED_TEXT"></span>\r
60                                         <TMPL_IF NAME="ALLOW_EDIT">\r
61                                         <a href="<TMPL_VAR NAME="EDIT_URL">" class="quote-edit"\r
62                                         title="<TMPL_VAR NAME="EDIT_DESCRIPTION">">[<TMPL_VAR NAME="EDIT">]</a>\r
63                                         </TMPL_IF>\r
64                                         <TMPL_IF NAME="ALLOW_UNFLAG">\r
65                                         <a href="<TMPL_VAR NAME="UNFLAG_URL">" class="quote-unflag"\r
66                                         title="<TMPL_VAR NAME="UNFLAG_DESCRIPTION">">[<TMPL_VAR NAME="UNFLAG">]</a>\r
67                                         </TMPL_IF>\r
68                                         <TMPL_IF NAME="ALLOW_REMOVE">\r
69                                         <a href="<TMPL_VAR NAME="REMOVE_URL">" class="quote-remove"\r
70                                         title="<TMPL_VAR NAME="REMOVE_DESCRIPTION">"\r
71                                         onclick="if (!confirm(&quot;<TMPL_VAR NAME="REMOVAL_CONFIRMATION">&quot;)) return false; this.href += &quot;&amp;confirm=1&quot;; return true;">[<TMPL_VAR NAME="REMOVE">]</a>\r
72                                         </TMPL_IF>\r
73                                 <TMPL_ELSE>\r
74                                         <span id="quote-live-vote-result-<TMPL_VAR NAME="ID">" class="quote-live-vote-result"></span>\r
75                                         <a href="<TMPL_VAR NAME="LINK_URL">"\r
76                                         title="<TMPL_VAR NAME="LINK_DESCRIPTION">" class="quote-permalink"><span class="quote-id">#<TMPL_VAR NAME="ID"></span></a>\r
77                                         <a href="<TMPL_VAR NAME="RATING_UP_URL">" rel="nofollow"\r
78                                         onclick="return sendRating(this, <TMPL_VAR NAME="ID">)"\r
79                                         title="<TMPL_VAR NAME="RATING_UP_DESCRIPTION">" class="quote-rating-up<TMPL_IF NAME="WAS_VOTED_UP"> casted-vote</TMPL_IF>" id="quote-rating-up-<TMPL_VAR NAME="ID">"><TMPL_VAR NAME="UP">&uarr;</a>\r
80                                         <span id="quote-rating-<TMPL_VAR NAME="ID">" class="quote-rating" title="<TMPL_VAR NAME="RATING_DESCRIPTION">"><TMPL_VAR NAME="RATING_TEXT"></span><span\r
81                                         class="quote-vote-count" title="<TMPL_VAR NAME="VOTE_COUNT_DESCRIPTION">">/<span id="quote-vote-count-<TMPL_VAR NAME="ID">"><TMPL_VAR NAME="VOTE_COUNT"></span></span>\r
82                                         <a href="<TMPL_VAR NAME="RATING_DOWN_URL">" rel="nofollow"\r
83                                         onclick="return sendRating(this, <TMPL_VAR NAME="ID">)"\r
84                                         title="<TMPL_VAR NAME="RATING_DOWN_DESCRIPTION">" class="quote-rating-down<TMPL_IF NAME="WAS_VOTED_DOWN"> casted-vote</TMPL_IF>" id="quote-rating-down-<TMPL_VAR NAME="ID">"><TMPL_VAR NAME="DOWN">&darr;</a>\r
85                                         <span class="quote-date" title="<TMPL_VAR NAME="DATE_DESCRIPTION">"><TMPL_VAR NAME="SUBMITTED_TEXT"></span>\r
86                                 </TMPL_IF>\r
87                                 </h3>\r
88                                 <blockquote class="quote-body">\r
89                                         <p><TMPL_VAR NAME="BODY"></p>\r
90                                 </blockquote>\r
91                                 <TMPL_IF NAME="NOTES_OR_TAGS">\r
92                                 <div class="quote-footer">\r
93                                 <TMPL_IF NAME="NOTES">\r
94                                 <div class="quote-notes">\r
95                                         <p><em class="quote-notes-title"><TMPL_VAR NAME="NOTES_TITLE"></em>\r
96                                         <TMPL_VAR NAME="NOTES"></p>\r
97                                 </div>\r
98                                 </TMPL_IF>\r
99                                 <TMPL_IF NAME="TAGS">\r
100                                 <div class="quote-tags">\r
101                                         <p><em class="quote-tags-title"><TMPL_VAR NAME="TAGS_TITLE"></em>\r
102                                         <TMPL_LOOP NAME="TAGS">\r
103                                         <a href="<TMPL_VAR NAME="URL">"\r
104                                         title="<TMPL_VAR NAME="LINK_DESCRIPTION">"><TMPL_VAR NAME="TAG"></a>\r
105                                         </TMPL_LOOP></p>\r
106                                 </div>\r
107                                 </TMPL_IF>\r
108                                 </div>\r
109                                 </TMPL_IF>\r
110                         </div>\r
111                 </li>\r
112         </TMPL_LOOP>\r
113         </ul>\r
114         <TMPL_IF NAME="BROWSER">\r
115         <div class="quote-browser" id="quote-browser-bottom">\r
116                 <TMPL_IF NAME="PREVIOUS_URL">\r
117                 <a href="<TMPL_VAR NAME="PREVIOUS_URL">">&larr; <TMPL_VAR NAME="PREVIOUS_PAGE_TITLE"></a>\r
118                 <TMPL_ELSE>\r
119                 <span class="inactive">&larr; <TMPL_VAR NAME="PREVIOUS_PAGE_TITLE"></span>\r
120                 </TMPL_IF>\r
121                 <TMPL_IF NAME="NEXT_URL">\r
122                 <a href="<TMPL_VAR NAME="NEXT_URL">"><TMPL_VAR NAME="NEXT_PAGE_TITLE"> &rarr;</a>\r
123                 <TMPL_ELSE>\r
124                 <span class="inactive"><TMPL_VAR NAME="NEXT_PAGE_TITLE"> &rarr;</span>\r
125                 </TMPL_IF>\r
126         </div>\r
127         </TMPL_IF>\r
128 <TMPL_INCLUDE NAME="_foot.html">