root/branches/release-29/tmpl/cms/edit_comment.tmpl @ 1339

Revision 1339, 18.1 kB (checked in by auno, 22 months ago)

Added status comments filter for working magnifier icon on edit screen. BugzID:66382

  • Property svn:keywords set to Author Date Id Revision
Line 
1<mt:setvarblock name="page_title"><__trans phrase="Edit Comment"></mt:setvarblock>
2<$mt:setvar name="position_actions_bottom" value="1"$>
3<mt:setvarblock name="system_msg">
4    <mt:if name="saved">
5        <mtapp:statusmsg
6            id="saved"
7            class="success">
8            <__trans phrase="Your changes have been saved.">
9        </mtapp:statusmsg>
10    </mt:if>
11    <mt:if name="approved">
12        <mtapp:statusmsg
13            id="approved"
14            class="success">
15            <__trans phrase="The comment has been approved.">
16        </mtapp:statusmsg>
17    </mt:if>
18</mt:setvarblock>
19<mt:setvartemplate name="action_buttons">
20    <button
21        type="submit"
22        accesskey="s"
23        title="<__trans phrase="Save changes to this comment (s)">"
24        class="primary-button"
25        ><__trans phrase="Save Changes"></button>
26    <button
27        onclick="doRemoveItems(this.form, '<__trans phrase="comment">', '<__trans phrase="comments">', 'id', {'return_args' : '__mode=list_comments&amp;blog_id=<mt:var name="blog_id">'})"
28        type="submit"
29        accesskey="x"
30        title="<__trans phrase="Delete this comment (x)">"
31        ><__trans phrase="Delete"></button>
32    <mt:if name="is_ip_filter">
33        <mt:if name="blog_id">
34    <button
35        onclick="doBanIP('<mt:var name="filter_val">', '<mt:var name="blog_id">', '<mt:var name="magic_token">')"
36        ><__trans phrase="Ban This IP"></button>
37        </mt:if>
38    </mt:if>
39</mt:setvartemplate>
40<mt:setvarblock name="related_content">
41    <mtapp:widget
42        id="useful-links"
43        label="<__trans phrase="Useful links">">
44        <ul>
45        <mt:if name="previous_comment_id">
46            <li><a href="<mt:var name="script_url">?__mode=view&amp;_type=comment&amp;id=<mt:var name="previous_comment_id">&amp;blog_id=<mt:var name="blog_id">"><__trans phrase="Previous Comment"></a></li>
47        </mt:if>
48        <mt:if name="next_comment_id">
49            <li><a href="<mt:var name="script_url">?__mode=view&amp;_type=comment&amp;id=<mt:var name="next_comment_id">&amp;blog_id=<mt:var name="blog_id">"><__trans phrase="Next Comment"></a></li>
50        </mt:if>
51            <li><a href="<mt:var name="script_url">?__mode=list_comments&amp;blog_id=<mt:var name="blog_id">"><__trans phrase="Manage Comments"></a></li>
52            <li><mt:if name="entry_permalink"><a href="<mt:var name="entry_permalink">" target="<__trans phrase="_external_link_target">"><__trans phrase="View entry comment was left on"></a></mt:if></li>           
53        <mt:if name="comment_approved">
54            <li><a href="javascript:void(0)" onclick="return openDialog(this.form, 'dialog_post_comment', 'reply_to=<mt:var name="id">&amp;magic_token=<mt:var name="magic_token">&amp;blog_id=<mt:var name="blog_id">&amp;return_args=<mt:var name="return_args" escape="url">')"><__trans phrase="Reply to this comment"></a></li>
55        </mt:if>
56        </ul>
57    </mtapp:widget>
58    <$mtapp:PageActions$>
59</mt:setvarblock>
60<mt:include name="include/header.tmpl">
61
62<form method="post" action="<mt:var name="script_url">">
63    <input type="hidden" name="id" value="<mt:var name="id">" />
64    <input type="hidden" name="blog_id" value="<mt:var name="blog_id">" />
65    <input type="hidden" name="__mode" value="save" />
66    <input type="hidden" name="action_name" value="" />
67    <input type="hidden" name="itemset_action_input" value="" />
68    <input type="hidden" name="_type" value="comment" />
69    <input type="hidden" name="return_args" value="<mt:var name="return_args" escape="html">" />
70    <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
71
72<mt:if name="position_actions_top">
73    <mt:include name="include/actions_bar.tmpl" bar_position="top" hide_pager="1">
74</mt:if>
75
76<mt:if name="comment_pending">
77    <$mt:setvar name="comment_status" value="comment-status-unapproved"$>
78<mt:else>
79    <mt:if name="is_junk">
80        <$mt:setvar name="comment_status" value="comment-status-spam"$>
81    <mt:else>
82        <$mt:setvar name="comment_status" value="comment-status-approved"$>
83    </mt:if>
84</mt:if>
85
86    <mtapp:setting
87        id="status"
88        label="<__trans phrase="Status">"
89        label_class="left-label <$mt:var name="comment_status"$>"
90        hint="<__trans phrase="Update the status of this comment">"
91        show_hint="0">
92        <mt:if name="has_publish_access">
93        <select id="status" name="status" class="width90 comment-status">
94            <option value="publish" <mt:if name="comment_approved">selected="selected"</mt:if>><__trans phrase="Approved"></option>
95            <option value="moderate" <mt:if name="comment_pending">selected="selected"</mt:if>><__trans phrase="Unapproved"></option>
96            <option value="junk" <mt:if name="is_junk">selected="selected"</mt:if>><__trans phrase="Reported as Spam"></option>
97        </select>
98        <mt:else>
99            <mt:if name="comment_approved">
100        <span><__trans phrase="Approved"></span><input type="hidden" name="status" value="publish" />
101        <mt:else>
102            <mt:if name="comment_pending">
103        <span><__trans phrase="Unapproved"></span><input type="hidden" name="status" value="moderate" />
104            <mt:else>
105                <mt:if name="is_junk">
106        <span><__trans phrase="Reported as Spam"></span><input type="hidden" name="status" value="junk" />
107                </mt:if>
108            </mt:if>
109        </mt:if>
110        </mt:if>
111        <a title="<__trans phrase="View all comments with this status">" href="<mt:var name="script_url">?__mode=list_comments&amp;blog_id=<mt:var name="blog_id">&amp;filter=status&amp;filter_val=<mt:if name="comment_approved">approved</mt:if><mt:if name="comment_pending">pending</mt:if><mt:if name="is_junk">junk</mt:if>"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
112
113        <mt:if name="junk_log_loop">
114        <div class="width90 comment-spam-info">
115                <a href="javascript:void(0)" onclick="toggleHidden('comment-feedback-rating'); toggleActive('spam-details-toggle'); return true" id="spam-details-toggle"><__trans phrase="Spam Details"></a>
116        </div>
117        <div id="comment-feedback-rating" class="hidden">
118            <strong><__trans phrase="Total Feedback Rating: [_1]" params="<$mt:var name="junk_score"$>"></strong>
119            <div id="spam-log-listing" class="listing width90">
120                <table class="spam-log-listing-table" cellspacing="0">
121                    <thead>
122                    <tr>
123                        <th id="jl-test"><__trans phrase="Test"></th>
124                        <th id="jl-score"><__trans phrase="Score"></th>
125                        <th id="jl-results"><__trans phrase="Results"></th>
126                    </tr>
127                    </thead>
128                    <tbody>
129            <mt:loop name="junk_log_loop">
130                    <tr valign="top" class="<mt:if name="__odd__">odd<mt:else>even</mt:if>">
131                        <td><mt:var name="test" escape="html"></td>
132                        <td><mt:var name="score"></td>
133                        <td><mt:var name="log"></td>
134                    </tr>
135            </mt:loop>
136                    </tbody>
137                </table>
138            </div>
139        </div>
140        </mt:if>
141    </mtapp:setting>
142   
143    <mtapp:setting
144        id="author"
145        label="<__trans phrase="Commenter">"
146        content_class="field-content-text"
147        hint="<__trans phrase="The name of the person who posted the comment">"
148        show_hint="0">
149        <mt:if name="commenter_id">
150            <mt:if name="commenter_approved">
151                <mt:if name="commenter_url"><a href="<mt:var name="commenter_url">"><mt:var name="author" escape="html"></a><mt:else><mt:var name="nickname" escape="html"><mt:var name="author" escape="html"></mt:if>
152                <img src="<mt:var name="static_uri">images/status_icons/trusted.gif" alt="<__trans phrase="Trusted">" width="13" height="9" />
153                <span class="hint"><__trans phrase="(Trusted)"></span>
154                <mt:if name="can_edit_commenters"><mt:unless name="is_mine">
155                    <span class="commenter-actions">
156                        <a href="<mt:var name="script_url">?__mode=save_commenter_perm&amp;action=ban&amp;blog_id=<mt:var name="blog_id">&amp;commenter_id=<mt:var name="commenter_id">&amp;return_args=<mt:var name="return_args" escape="url">&amp;magic_token=<mt:var name="magic_token">" class="commenter-ban"><__trans phrase="Ban Commenter"></a>
157                        <mt:unless name="type_author"><a href="<mt:var name="script_url">?__mode=save_commenter_perm&amp;action=untrust&amp;blog_id=<mt:var name="blog_id">&amp;commenter_id=<mt:var name="commenter_id">&amp;return_args=<mt:var name="return_args" escape="url">&amp;magic_token=<mt:var name="magic_token">" class="commenter-neutral"><__trans phrase="Untrust Commenter"></a></mt:unless>
158                    </span>
159            </mt:if></mt:unless>
160            <mt:else>
161                <mt:if name="commenter_banned">
162                    <mt:if name="commenter_url"><a href="<mt:var name="commenter_url">"><mt:var name="author" escape="html"></a><mt:else><mt:var name="nickname" escape="html"><mt:var name="author" escape="html"></mt:if>
163                    <img src="<mt:var name="static_uri">images/status_icons/banned.gif" alt="<__trans phrase="Banned">" width="13" height="9" />
164                    <span class="hint"><__trans phrase="(Banned)"></span>
165                    <mt:if name="can_edit_commenters"><mt:unless name="is_mine">
166                        <span class="commenter-actions">
167                            <mt:unless name="type_author"><a href="<mt:var name="script_url">?__mode=save_commenter_perm&amp;action=trust&amp;blog_id=<mt:var name="blog_id">&amp;commenter_id=<mt:var name="commenter_id">&amp;return_args=<mt:var name="return_args" escape="url">&amp;magic_token=<mt:var name="magic_token">" class="commenter-trust"><__trans phrase="Trust Commenter"></a></mt:unless>
168                            <a href="<mt:var name="script_url">?__mode=save_commenter_perm&amp;action=unban&amp;blog_id=<mt:var name="blog_id">&amp;commenter_id=<mt:var name="commenter_id">&amp;return_args=<mt:var name="return_args" escape="url">&amp;magic_token=<mt:var name="magic_token">" class="commenter-neutral"><__trans phrase="Unban Commenter"></a>
169                        </span>
170                    </mt:if></mt:unless>
171                <mt:else>
172                    <mt:if name="commenter_url"><a href="<mt:var name="commenter_url">"><mt:var name="author" escape="html"></a><mt:else><mt:var name="nickname" escape="html"><mt:var name="author" escape="html"></mt:if>
173                    <img src="<mt:var name="static_uri">images/status_icons/authenticated.gif" alt="<__trans phrase="Pending">" width="7" height="9" />
174                    <mt:if name="can_edit_commenters"><mt:unless name="is_mine">
175                        <span class="commenter-actions">
176                            <a href="<mt:var name="script_url">?__mode=save_commenter_perm&amp;action=trust&amp;blog_id=<mt:var name="blog_id">&amp;commenter_id=<mt:var name="commenter_id">&amp;return_args=<mt:var name="return_args" escape="url">&amp;magic_token=<mt:var name="magic_token">" class="commenter-trust"><__trans phrase="Trust Commenter"></a>
177                            <a href="<mt:var name="script_url">?__mode=save_commenter_perm&amp;action=ban&amp;blog_id=<mt:var name="blog_id">&amp;commenter_id=<mt:var name="commenter_id">&amp;return_args=<mt:var name="return_args" escape="url">&amp;magic_token=<mt:var name="magic_token">" class="commenter-ban"><__trans phrase="Ban Commenter"></a>
178                        </span>
179                    </mt:if></mt:unless>
180                </mt:if>
181            </mt:if>
182        <mt:else>
183            <input name="author" id="author" value="<mt:var name="author" escape="html">" />
184        </mt:if>
185        <mt:if name="commenter_id">
186            <a title="<__trans phrase="View all comments by this commenter">" href="<mt:var name="script_url">?__mode=view&amp;_type=commenter&amp;tab=comments&amp;blog_id=<mt:var name="blog_id">&amp;id=<mt:var name="commenter_id" escape="html">"><img src="<mt:var name="static_uri">images/filter.gif" alt="" width="8" height="8" /></a>
187        <mt:else>
188            <a title="<__trans phrase="View all comments by this commenter">" href="<mt:var name="script_url">?__mode=search_replace&amp;_type=comment&amp;blog_id=<mt:var name="blog_id">&amp;is_limited=1&amp;search_cols=author&amp;search=<mt:var name="author" escape="html">&amp;do_search=1"><img src="<mt:var name="static_uri">images/filter.gif" alt="" width="8" height="8" /></a>
189        </mt:if>
190    </mtapp:setting>
191
192    <mtapp:setting
193        id="email"
194        label="<__trans phrase="Email">"
195        hint="<__trans phrase="Email address of commenter">"
196        show_hint="0">
197        <mt:if name="commenter_id">
198            <mt:if name="email_withheld">
199                <__trans phrase="None given">
200            <mt:else>
201                <mt:if name="email">
202                    <input name="email" id="email" value="<mt:var name="email" escape="html">" disabled="disabled" class="width90" />
203                    <a href="mailto:<mt:var name="email" escape="html">" title="<mt:var name="email" escape="html">"><img src="<mt:var name="static_uri">images/status_icons/email.gif" alt="<__trans phrase="Email">" width="16" height="9" /></a>
204                <mt:else>
205                    <__trans phrase="None given">
206                </mt:if>
207            </mt:if>
208        <mt:else>
209            <input name="email" id="email" value="<mt:var name="email" escape="html">" class="width90" />
210            <mt:if name="email">
211                <a href="mailto:<mt:var name="email" escape="html">" title="<mt:var name="email" escape="html">"><img src="<mt:var name="static_uri">images/status_icons/email.gif" alt="<__trans phrase="Email">" width="16" height="9" /></a>
212            </mt:if>
213        </mt:if>
214        <mt:if name="email_withheld">&nbsp;<mt:else><mt:if name="email"><a title="<__trans phrase="View all comments with this email address">" href="<mt:var name="script_url">?__mode=search_replace&amp;_type=comment&amp;blog_id=<mt:var name="blog_id">&amp;search=<mt:var name="email" escape="url">&amp;do_search=1"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a><mt:else>&nbsp;</mt:if></mt:if>
215    </mtapp:setting>
216
217    <mtapp:setting
218        id="url"
219        label="<__trans phrase="URL">"
220        hint="<__trans phrase="URL of commenter">"
221        show_hint="0">
222        <input name="url" id="url" value="<mt:var name="url" escape="html">" class="width90" />
223        <mt:if name="url">
224            <a href="<mt:var name="url" escape="html">" title="<mt:var name="url" escape="html">"><img src="<mt:var name="static_uri">images/status_icons/link.gif" alt="<__trans phrase="Link">" width="16" height="9" /></a>
225        </mt:if>
226        <a title="<__trans phrase="View all comments with this URL">" href="<mt:var name="script_url">?__mode=search_replace&amp;blog_id=<mt:var name="blog_id">&amp;_type=comment&amp;search=<mt:var name="url" escape="url">&amp;do_search=1"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
227    </mtapp:setting>
228   
229    <mtapp:setting
230        id="entry"
231        label="$entry_class_label"
232        content_class="field-content-text"
233        hint="<__trans phrase="[_1] this comment was made on" params="$entry_class_label">"
234        show_hint="0">
235        <mt:if name="no_entry">[<__trans phrase="[_1] no longer exists" params="<mt:var name="entry_class_label">">]<mt:else><a href="<mt:var name="script_url">?__mode=view&amp;_type=<mt:var name="entry_class">&amp;id=<mt:var name="entry_id">&amp;blog_id=<mt:var name="blog_id">"><mt:var name="entry_title" escape="html"></a></mt:if>
236        <a title="<__trans phrase="View all comments on this [_1]" params="<mt:var name="entry_class_label" lower_case="1">">" href="<mt:var name="script_url">?__mode=view&amp;_type=<mt:var name="entry_class">&amp;blog_id=<mt:var name="blog_id">&amp;id=<mt:var name="entry_id" escape="html">&amp;tab=comments"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
237    </mtapp:setting>
238   
239    <mtapp:setting
240        id="date"
241        label="<__trans phrase="Date">"
242        content_class="field-content-text"
243        hint="<__trans phrase="Date this comment was made">"
244        show_hint="0">
245        <mt:var name="created_on_time_formatted">
246        <a title="<__trans phrase="View all comments created on this day">" href="<mt:var name="script_url">?__mode=search_replace&amp;_type=comment&amp;from=<mt:var name="created_on_day_formatted" escape="url">&amp;to=<mt:var name="created_on_day_formatted" escape="url">&amp;show_all=1&amp;blog_id=<mt:var name="blog_id">&amp;do_search=1"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
247    </mtapp:setting>
248   
249    <mtapp:setting
250        id="ip"
251        label="<__trans phrase="IP">"
252        content_class="field-content-text"
253        hint="<__trans phrase="IP Address of the commenter">"
254        show_hint="0">
255        <mt:var name="ip" escape="html">
256        <a title="<__trans phrase="View all comments from this IP address">" href="<mt:var name="script_url">?__mode=search_replace&amp;_type=comment&amp;blog_id=<mt:var name="blog_id">&amp;is_limited=1&amp;search_cols=ip&amp;search=<mt:var name="ip" escape="html">&amp;do_search=1"><img alt="" src="<mt:var name="static_uri">images/filter.gif" width="8" height="8" border="0" /></a>
257    </mtapp:setting>
258   
259    <mtapp:setting
260        id="text"
261        label="<__trans phrase="Comment Text">"
262        hint="<__trans phrase="Fulltext of the comment entry">"
263        show_hint="0">
264        <textarea rows="" cols="" name="text" id="text" class="full-width medium"><mt:var name="text" escape="html"></textarea>
265    </mtapp:setting>
266
267<mt:if name="position_actions_bottom">
268    <mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1">
269</mt:if>
270
271</form>
272
273<mt:ignore>
274                                <mt:if name="object_loop">
275                                <h2><__trans phrase="Responses to this comment"></h2>
276                                <mt:include name="include/comment_table.tmpl">
277                                </mt:if>
278</mt:ignore>
279
280<mt:include name="include/footer.tmpl">
Note: See TracBrowser for help on using the browser.