additional_plugins/serendipity_event_spamblock_bayes/admin/bayesRecyclermenu.tpl

121 lines
8 KiB
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div id="bayesContent">
<form action="{$serendipityBaseUrl}index.php?/plugin/bayesRecycler" method="post">
<div id="bayesControls">
<input type="submit" class="serendipityPrettyButton input_button" value="{$CONST.PLUGIN_EVENT_SPAMBLOCK_BAYES_RESTORE}" name="restore"/>
<input type="submit" class="serendipityPrettyButton input_button" value="{$CONST.PLUGIN_EVENT_SPAMBLOCK_BAYES_RECYCLER_EMPTY}" name="empty" />
</div>
<div id="bayesRecycler">
{if $s9ybackend == 1}
<div class="bayesRecyclerTableNavigation">
{else}
<ul class="bayesRecyclerTableNavigation plainList clearfix">
{/if}
{if $commentpage > 0}
{if $s9ybackend == 1}
<a class="serendipityIconLink" href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=spamblock_bayes&amp;serendipity[subpage]=1&amp;serendipity[commentpage]={$commentpage-1}"><img src="{serendipity_getFile file="admin/img/previous.png"}"/>{$CONST.PREVIOUS}</a>
{else}
<li class="prev"><a class="button_link" href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=spamblock_bayes&amp;serendipity[subpage]=1&amp;serendipity[commentpage]={$commentpage-1}" title="{$CONST.PREVIOUS}"><span class="icon-left-dir"></span><span class="visuallyhidden"> {$CONST.PREVIOUS}</span></a></li>
{/if}
{/if}
{if ($commentpage+1)*20 < $comments|@count}
{if $s9ybackend == 1}
<a class="serendipityIconLinkRight" href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=spamblock_bayes&amp;serendipity[subpage]=1&amp;serendipity[commentpage]={$commentpage+1}">{$CONST.NEXT} <img src="{serendipity_getFile file="admin/img/next.png"}"/></a>
{else}
<li class="next"><a class="button_link" href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=spamblock_bayes&amp;serendipity[subpage]=1&amp;serendipity[commentpage]={$commentpage+1}" title="{$CONST.NEXT}"><span class="visuallyhidden">{$CONST.NEXT} </span><span class="icon-right-dir"></span></a></li>
{/if}
{/if}
{if $s9ybackend == 1}
</div>
{else}
</ul>
{/if}
{if $s9ybackend != 1}
<ul id="serendipity_comments_list" class="clearfix plainList zebra_list">
{/if}
{foreach from=$comments item=comment}
{if $s9ybackend == 1}
<details class="bayesRecyclerItem">
<summary>
<input type="checkbox" class="bayesRecyclerSelectBox" name="serendipity[selected][{$comment.id}]" />
<input type="hidden" name="serendipity[comments][{$comment.id}]" />
<table class="bayesRecyclerSummary">
<thead>
<tr>
<th>{$CONST.AUTHOR}</th>
<th>{$CONST.COMMENT}</th>
<th>{$CONST.DATE}</th>
<th>{$CONST.PLUGIN_EVENT_SPAMBLOCK_BAYES_RATING}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{$comment.author|truncate:20:"..."|escape:"html"}</td>
<td>{$comment.body|truncate:20:"..."|escape:"html"}</td>
<td>{$comment.timestamp|date_format:"%d.%m.%y, %R"}</td>
<td>{$comment.rating|regex_replace:"/\..*/":""}%</td>
</tr>
</tbody>
</table>
</summary>
<dl class="bayesRecyclerList">
{foreach from=$types item=type}
<dt>{$type}</dt>
<dd>{$comment.$type|escape:"html"}</dd>
{/foreach}
<dt>{$CONST.Article}</dt>
<dd><a href="{$comment.article_link}" target="_blank">{$comment.article_title}</a></dd>
</dl>
</details>
{else}
<li id="comment_{$comment.id}" class="clearfix {cycle values="odd,even"}">
<input type="hidden" name="serendipity[comments][{$comment.id}]">
<div class="form_check">
<input id="serendipity[selected][{$comment.id}]" type="checkbox" class="bayesRecyclerSelectBox" name="serendipity[selected][{$comment.id}]">
<label for="serendipity[selected][{$comment.id}]" class="visuallyhidden">{$CONST.TOGGLE_SELECT}</label>
</div>
<h4 id="c{$comment.id}">{$comment.author|truncate:20:"..."|escape:"html"} {$CONST.IN_REPLY_TO} <a href="{$comment.article_link}" target="_blank">{$comment.article_title}</a> {$CONST.ON} {$comment.timestamp|date_format:"%d.%m.%y, %R"} <span title="{$CONST.PLUGIN_EVENT_SPAMBLOCK_BAYES_RATING}">{$comment.rating|regex_replace:"/\..*/":""}%</span> <button class="toggle_info button_link" type="button" data-href="#comment_data_{$comment.id}"><span class="icon-info-circled"></span><span class="visuallyhidden"> More</span></button></h4>
<div id="comment_data_{$comment.id}" class="additional_info">
<dl class="comment_data clearfix">
{foreach from=$types item=type}
<dt>{$type}</dt>
<dd>{$comment.$type|escape:"html"}</dd>
{/foreach}
</dl>
</div>
</li>
{/if}
{/foreach}
{if $s9ybackend == 1}
<div class="bayesRecyclerTableNavigation">
{else}
</ul>
<ul class="bayesRecyclerTableNavigation plainList clearfix">
{/if}
{if $commentpage > 0}
{if $s9ybackend == 1}
<a class="serendipityIconLink" href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=spamblock_bayes&amp;serendipity[subpage]=1&amp;serendipity[commentpage]={$commentpage-1}"><img src="{serendipity_getFile file="admin/img/previous.png"}"/>{$CONST.PREVIOUS}</a>
{else}
<li class="prev"><a class="button_link" href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=spamblock_bayes&amp;serendipity[subpage]=1&amp;serendipity[commentpage]={$commentpage-1}" title="{$CONST.PREVIOUS}"><span class="icon-left-dir"></span><span class="visuallyhidden"> {$CONST.PREVIOUS}</span></a></li>
{/if}
{/if}
{if ($commentpage+1)*20 < $comments|@count}
{if $s9ybackend == 1}
<a class="serendipityIconLinkRight" href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=spamblock_bayes&amp;serendipity[subpage]=1&amp;serendipity[commentpage]={$commentpage+1}">{$CONST.NEXT} <img src="{serendipity_getFile file="admin/img/next.png"}"/></a>
{else}
<li class="next"><a class="button_link" href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=spamblock_bayes&amp;serendipity[subpage]=1&amp;serendipity[commentpage]={$commentpage+1}" title="{$CONST.NEXT}"><span class="visuallyhidden">{$CONST.NEXT} </span><span class="icon-right-dir"></span></a></li>
{/if}
{/if}
{if $s9ybackend == 1}
</div>
{else}
</ul>
{/if}
</div>
</form>
{if $s9ybackend == 1}
<script src="{$path}details.polyfill.min.js" type="text/javascript"></script>
{/if}
</div>