2012-02-05 02:45:42 +01:00
|
|
|
<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>
|
|
|
|
|
|
|
|
<span id="bayesRecycler">
|
|
|
|
<div class="bayesRecyclerTableNavigation">
|
|
|
|
{if $commentpage > 0}
|
2012-06-07 14:08:23 +02:00
|
|
|
<a class="serendipityIconLink" href="?serendipity[adminModule]=event_display&serendipity[adminAction]=spamblock_bayes&serendipity[subpage]=1&serendipity[commentpage]={$commentpage-1}">
|
2012-02-05 02:45:42 +01:00
|
|
|
<img src="{serendipity_getFile file="admin/img/previous.png"}"/>{$CONST.PREVIOUS}</a>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if $comments|@count > 20}
|
2012-06-07 14:08:23 +02:00
|
|
|
<a class="serendipityIconLinkRight" href="?serendipity[adminModule]=event_display&serendipity[adminAction]=spamblock_bayes&serendipity[subpage]=1&serendipity[commentpage]={$commentpage+1}">{$CONST.NEXT} <img src="{serendipity_getFile file="admin/img/next.png"}"/></a>
|
2012-02-05 02:45:42 +01:00
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{foreach from=$comments item=comment}
|
|
|
|
<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.Autor}</th>
|
|
|
|
<th>{$CONST.Comment}</th>
|
|
|
|
<th>{$CONST.Date}</th>
|
|
|
|
<th>{$CONST.PLUGIN_EVENT_SPAMBLOCK_BAYES_RATING}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2012-04-20 10:26:11 +02:00
|
|
|
<td>{$comment.author|truncate:20:"..."|escape:"html"}</td>
|
|
|
|
<td>{$comment.body|truncate:20:"..."|escape:"html"}</td>
|
2012-02-05 02:45:42 +01:00
|
|
|
<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>
|
2012-04-20 10:26:11 +02:00
|
|
|
<dd>{$comment.$type|escape:"html"}</dd>
|
2012-02-05 02:45:42 +01:00
|
|
|
{/foreach}
|
|
|
|
<dt>{$CONST.Article}</dt>
|
|
|
|
<dd><a href="{$comment.article_link}" target="_blank">{$comment.article_title}</a></dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
</details>
|
|
|
|
{/foreach}
|
|
|
|
<div class="bayesRecyclerTableNavigation">
|
|
|
|
{if $commentpage > 0}
|
2012-06-07 14:08:23 +02:00
|
|
|
<a class="serendipityIconLink" href="?serendipity[adminModule]=event_display&serendipity[adminAction]=spamblock_bayes&serendipity[subpage]=1&serendipity[commentpage]={$commentpage-1}"><img src="{serendipity_getFile file="admin/img/previous.png"}"/>{$CONST.PREVIOUS}</a>
|
2012-02-05 02:45:42 +01:00
|
|
|
{/if}
|
|
|
|
{if ($commentpage+1)*20 < $comments|@count}
|
2012-06-07 14:08:23 +02:00
|
|
|
<a class="serendipityIconLinkRight" href="?serendipity[adminModule]=event_display&serendipity[adminAction]=spamblock_bayes&serendipity[subpage]=1&serendipity[commentpage]={$commentpage+1}">{$CONST.NEXT} <img src="{serendipity_getFile file="admin/img/next.png"}"/></a>
|
2012-02-05 02:45:42 +01:00
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</form>
|
|
|
|
<script src="{$path}details.polyfill.min.js" type="text/javascript"></script>
|
|
|
|
</div>
|