| 1 | <mt:setvarblock name="action_buttons"> |
|---|
| 2 | <mt:unless name="filter_spam"> |
|---|
| 3 | <mt:if name="state_editable"><a href="javascript:void(0)" |
|---|
| 4 | onclick="doForMarkedInThisWindow(getByID('<$mt:var name="object_type"$>-listing-form'), '<__trans phrase="comment" escape="js">', '<__trans phrase="comments" escape="js">', 'id', 'approve_item', {}, '<__trans phrase="to publish" escape="js">'); return false;" |
|---|
| 5 | accesskey="a" |
|---|
| 6 | title="<__trans phrase="Publish selected comments (a)">" |
|---|
| 7 | ><__trans phrase="Publish"></a></mt:if> |
|---|
| 8 | </mt:unless> |
|---|
| 9 | <a href="javascript:void(0)" |
|---|
| 10 | onclick="doRemoveItems(getByID('<$mt:var name="object_type"$>-listing-form'), '<__trans phrase="comment" escape="js">', '<__trans phrase="comments" escape="js">'); return false;" |
|---|
| 11 | accesskey="x" |
|---|
| 12 | title="<__trans phrase="Delete selected comments (x)">" |
|---|
| 13 | ><__trans phrase="Delete"></a> |
|---|
| 14 | <mt:unless name="filter_spam"> |
|---|
| 15 | <mt:if name="state_editable"><a href="javascript:void(0)" |
|---|
| 16 | onclick="doItemsAreJunk(getByID('<$mt:var name="object_type"$>-listing-form'), '<__trans phrase="comment" escape="js">', '<__trans phrase="comments" escape="js">'); return false;" |
|---|
| 17 | accesskey="j" |
|---|
| 18 | title="<__trans phrase="Report selected comments as Spam (j)">" |
|---|
| 19 | ><__trans phrase="Spam"></a></mt:if> |
|---|
| 20 | <mt:else> |
|---|
| 21 | <mt:if name="state_editable"><a href="javascript:void(0)" |
|---|
| 22 | onclick="doItemsAreNotJunk(getByID('<$mt:var name="object_type"$>-listing-form'), '<__trans phrase="comment" escape="js">', '<__trans phrase="comments" escape="js">'); return false;" |
|---|
| 23 | accesskey="j" |
|---|
| 24 | title="<__trans phrase="Report selected comments as Not Spam and Publish (j)">" |
|---|
| 25 | ><__trans phrase="Not Spam"></a></mt:if> |
|---|
| 26 | <mt:if name="can_empty_junk"><a href="javascript:void(0)" mt:command="submit" mt:mode="empty_junk" |
|---|
| 27 | mt:confirm-msg="<__trans phrase="Are you sure you want to remove all comments reported as spam?">" |
|---|
| 28 | title="<__trans phrase="Delete all comments reported as Spam">" |
|---|
| 29 | ><__trans phrase="Empty"></a></mt:if> |
|---|
| 30 | </mt:unless> |
|---|
| 31 | <mt:if name="is_ip_filter"> |
|---|
| 32 | <a href="javascript:void(0)" |
|---|
| 33 | onclick="doBanIP('<mt:var name="filter_val">'); return false;" |
|---|
| 34 | ><__trans phrase="Ban This IP"></a> |
|---|
| 35 | </mt:if> |
|---|
| 36 | </mt:setvarblock> |
|---|
| 37 | |
|---|
| 38 | <mtapp:listing id="comment-listing"> |
|---|
| 39 | <mt:if __first__> |
|---|
| 40 | <thead> |
|---|
| 41 | <tr> |
|---|
| 42 | <th class="cb"><input type="checkbox" name="id-head" value="all" class="select" /></th> |
|---|
| 43 | <mt:unless name="tab_junk"> |
|---|
| 44 | <th class="si"><img src="<mt:var name="static_uri">images/status_icons/invert-flag.gif" alt="<__trans phrase="Status">" title="<__trans phrase="Status">" width="9" height="9" /></th> |
|---|
| 45 | </mt:unless> |
|---|
| 46 | <th class="comment"><__trans phrase="Comment"></th> |
|---|
| 47 | <mt:if name="mode_view_entry"> |
|---|
| 48 | <th class="entry"> </th> |
|---|
| 49 | </mt:if> |
|---|
| 50 | <th class="commenter"><mt:unless name="mode_view_commenter"><__trans phrase="Commenter"><mt:else> </mt:unless></th> |
|---|
| 51 | <mt:if name="system_overview_nav"> |
|---|
| 52 | <th class="weblog"><__trans phrase="Blog"></th> |
|---|
| 53 | </mt:if> |
|---|
| 54 | <mt:unless name="mode_view_entry"> |
|---|
| 55 | <th class="entry"><__trans phrase="Entry/Page"></th> |
|---|
| 56 | </mt:unless> |
|---|
| 57 | <th class="date"><__trans phrase="Date"></th> |
|---|
| 58 | <mt:if name="show_ip_info"> |
|---|
| 59 | <th class="ip"><__trans phrase="IP"></th> |
|---|
| 60 | </mt:if> |
|---|
| 61 | </tr> |
|---|
| 62 | </thead> |
|---|
| 63 | <tbody> |
|---|
| 64 | </mt:if> |
|---|
| 65 | <tr class="<mt:if name="__odd__">odd<mt:else>even</mt:if>"<mt:if name="visible"> onmouseover="showReply('replyto_<mt:var name="id">',document,'visible');" onmouseout="hideReply('replyto_<mt:var name="id">');"</mt:if>> |
|---|
| 66 | <td class="cb"> |
|---|
| 67 | <mt:if name="has_edit_access"> |
|---|
| 68 | <input type="checkbox" name="id" value="<mt:var name="id">" class="select" /> |
|---|
| 69 | <mt:else> |
|---|
| 70 | |
|---|
| 71 | </mt:if> |
|---|
| 72 | </td> |
|---|
| 73 | <mt:unless name="tab_junk"> |
|---|
| 74 | <td class="si <mt:if name="visible">status-publish<mt:else>status-pending</mt:if>"> |
|---|
| 75 | <mt:if name="visible"> |
|---|
| 76 | <a href="<mt:var name="script_url">?__mode=list_comment<mt:if name="blog_id">&blog_id=<mt:var name="blog_id"></mt:if>&filter_key=published" title="<__trans phrase="Only show published comments">"><img src="<mt:var name="static_uri">images/spacer.gif" alt="<__trans phrase="Published">" width="9" height="9" /></a> |
|---|
| 77 | <mt:else> |
|---|
| 78 | <a href="<mt:var name="script_url">?__mode=list_comment<mt:if name="blog_id">&blog_id=<mt:var name="blog_id"></mt:if>&filter_key=unpublished" title="<__trans phrase="Only show pending comments">"><img src="<mt:var name="static_uri">images/spacer.gif" alt="<__trans phrase="Pending">" width="9" height="9" /></a> |
|---|
| 79 | </mt:if> |
|---|
| 80 | </td> |
|---|
| 81 | </mt:unless> |
|---|
| 82 | <td class="comment"<mt:if name="view_expanded"> colspan="<mt:if name="system_overview_nav"><mt:if name="show_ip_info">7<mt:else>6</mt:if><mt:else><mt:if name="show_ip_info">6<mt:else>5</mt:if></mt:if>"<mt:else><mt:if name="mode_view_commenter"> colspan="2"</mt:if><mt:if name="mode_view_entry"> colspan="2"</mt:if></mt:if>> |
|---|
| 83 | <mt:if name="view_expanded"> |
|---|
| 84 | <mt:var name="comment_long" escape="html"> |
|---|
| 85 | <mt:else> |
|---|
| 86 | <mt:if name="has_edit_access"> |
|---|
| 87 | <a href="<mt:var name="script_url">?__mode=view&_type=comment&id=<mt:var name="id">&blog_id=<mt:var name="blog_id">" title="<__trans phrase="Edit this comment">"><mt:var name="comment_short" escape="html"></a> |
|---|
| 88 | <mt:else> |
|---|
| 89 | <mt:var name="comment_short" escape="html"> |
|---|
| 90 | </mt:if> |
|---|
| 91 | </mt:if> |
|---|
| 92 | <mt:if name="reply_count"><__trans phrase="([quant,_1,reply,replies])" params="<mt:var name="reply_count">"></mt:if> |
|---|
| 93 | <mt:unless name="view_expanded"> |
|---|
| 94 | <mt:if name="has_edit_access"><mt:if name="visible"><span id="replyto_<mt:var name="id">" style="visibility: hidden; margin-left: 10px"><a href="javascript:void(0)" onclick="return openDialog(this.form, 'dialog_post_comment', 'reply_to=<mt:var name="id">&magic_token=<mt:var name="magic_token" encode="url">&blog_id=<mt:var name="blog_id"><mt:if name="return_args">&return_args=<mt:var name="return_args" escape="url"></mt:if>')"><__trans phrase="Reply"></a></span></mt:if></mt:if> |
|---|
| 95 | </mt:unless> |
|---|
| 96 | </td> |
|---|
| 97 | <mt:if name="view_expanded"> |
|---|
| 98 | </tr> |
|---|
| 99 | <tr class="<mt:if name="__odd__">odd<mt:else>even</mt:if> slave" <mt:if name="visible"> onmouseover="show('replyto_<mt:var name="id">');" onmouseout="hide('replyto_<mt:var name="id">');"</mt:if>> |
|---|
| 100 | <td> </td> |
|---|
| 101 | <mt:unless name="tab_junk"> |
|---|
| 102 | <td> </td> |
|---|
| 103 | </mt:unless> |
|---|
| 104 | <td> |
|---|
| 105 | <mt:if name="has_edit_access"> |
|---|
| 106 | <a href="<mt:var name="script_url">?__mode=view&_type=comment&id=<mt:var name="id">&blog_id=<mt:var name="blog_id">" title="<__trans phrase="Edit this comment">"><__trans phrase="Edit"></a> |
|---|
| 107 | <mt:if name="visible">| <a href="javascript:void(0)" onclick="return openDialog(this.form, 'dialog_post_comment', 'reply_to=<mt:var name="id">&magic_token=<mt:var name="magic_token" encode="url">&blog_id=<mt:var name="blog_id"><mt:if name="return_args">&return_args=<mt:var name="return_args" escape="url"></mt:if>')"><__trans phrase="Reply"></a></mt:if> |
|---|
| 108 | <mt:else> |
|---|
| 109 | |
|---|
| 110 | </mt:if> |
|---|
| 111 | </td></td> |
|---|
| 112 | </mt:if> |
|---|
| 113 | <mt:unless name="mode_view_commenter"> |
|---|
| 114 | <td class="commenter status-<mt:if name="commenter_approved">trusted<mt:else><mt:if name="commenter_banned">banned<mt:else>authenticated</mt:if></mt:if>"> |
|---|
| 115 | <mt:if name="commenter_id"> |
|---|
| 116 | <mt:if name="commenter_approved"> |
|---|
| 117 | <$mt:setvar name="commenter_status" value="<__trans phrase="Trusted">"$> |
|---|
| 118 | <mt:else> |
|---|
| 119 | <mt:if name="commenter_banned"> |
|---|
| 120 | <$mt:setvar name="commenter_status" value="<__trans phrase="Blocked">"$> |
|---|
| 121 | <mt:else> |
|---|
| 122 | <$mt:setvar name="commenter_status" value="<__trans phrase="Authenticated">"$> |
|---|
| 123 | </mt:if> |
|---|
| 124 | </mt:if> |
|---|
| 125 | <mt:if name="auth_icon_url"><img style="background-image: none" src="<mt:var name="auth_icon_url">" height="9" width="9" alt="" border="0" /></mt:if> |
|---|
| 126 | <mt:if name="can_edit_commenter"> |
|---|
| 127 | <a href="<mt:var name="script_url">?__mode=view&_type=commenter&blog_id=<mt:var name="blog_id">&id=<mt:var name="commenter_id">" class="icon-right-wide icon-<mt:if name="commenter_approved">trusted<mt:else><mt:if name="commenter_banned">banned<mt:else>authenticated</mt:if></mt:if>" title="<__trans phrase="Edit this [_1] commenter" params="<$mt:var name="commenter_status" escape="html"$>">"><mt:var name="author" escape="html"></a> |
|---|
| 128 | <mt:else> |
|---|
| 129 | <span class="icon-right-wide icon-<mt:if name="commenter_approved">trusted<mt:else><mt:if name="commenter_banned">banned<mt:else>authenticated</mt:if></mt:if>"><mt:var name="author" escape="html"></span> |
|---|
| 130 | </mt:if> |
|---|
| 131 | <mt:else> |
|---|
| 132 | <mt:if name="author"> |
|---|
| 133 | <mt:if name="auth_icon_url"><img src="<mt:var name="auth_icon_url">" height="9" width="9" alt="" border="0" /></mt:if><a href="<mt:var name="script_url">?__mode=search_replace&_type=comment&search_cols=author&is_limited=1&do_search=1&search=<mt:var name="author" escape="url">&blog_id=<mt:var name="blog_id">" title="<__trans phrase="Search for comments by this commenter">"><mt:var name="author_display" escape="html"></a> |
|---|
| 134 | <mt:else> |
|---|
| 135 | [<__trans phrase="Anonymous">] |
|---|
| 136 | </mt:if> |
|---|
| 137 | </mt:if> |
|---|
| 138 | </td> |
|---|
| 139 | </mt:unless> |
|---|
| 140 | <mt:if name="system_overview_nav"> |
|---|
| 141 | <td class="weblog"><a href="<mt:var name="script_url">?__mode=list_comment&blog_id=<mt:var name="weblog_id">"><mt:var name="weblog_name" escape="html"></td> |
|---|
| 142 | </mt:if> |
|---|
| 143 | <td class="entry"> |
|---|
| 144 | <mt:if name="entry_title"> |
|---|
| 145 | <mt:if name="can_edit_entry"> |
|---|
| 146 | <a href="<mt:var name="script_url">?__mode=view&_type=<mt:var name="entry_class">&blog_id=<mt:var name="blog_id">&id=<mt:var name="entry_id">" title="<mt:if name="entry_class" eq="entry"><__trans phrase="View this entry"><mt:else><__trans phrase="View this page"></mt:if>"><mt:var name="entry_title" escape="html"></a> |
|---|
| 147 | <mt:else> |
|---|
| 148 | <mt:var name="entry_title" escape="html"> |
|---|
| 149 | </mt:if> |
|---|
| 150 | <mt:else> |
|---|
| 151 | |
|---|
| 152 | </mt:if> |
|---|
| 153 | </td> |
|---|
| 154 | <td class="date"><span title="<mt:var name="created_on_time_formatted">"><mt:if name="created_on_relative"><mt:if name="dates_relative"><mt:var name="created_on_relative"><mt:else><mt:var name="created_on_formatted"></mt:if><mt:else><mt:var name="created_on_formatted"></mt:if></span></td> |
|---|
| 155 | <mt:if name="show_ip_info"> |
|---|
| 156 | <td class="ip"> |
|---|
| 157 | <a href="<mt:var name="script_url">?__mode=search_replace&_type=comment<mt:if name="blog_id">&blog_id=<mt:var name="blog_id"></mt:if>&is_limited=1&search_cols=ip&search=<mt:var name="ip" escape="html"><mt:if name="tab_junk">&is_junk=1</mt:if>&do_search=1" title="<__trans phrase="Search for all comments from this IP address">"><mt:var name="ip" escape="html"></a> |
|---|
| 158 | </td> |
|---|
| 159 | </mt:if> |
|---|
| 160 | </tr> |
|---|
| 161 | <mt:if __last__> |
|---|
| 162 | </tbody> |
|---|
| 163 | </mt:if> |
|---|
| 164 | </mtapp:listing> |
|---|