additional_plugins/serendipity_event_spamblock_bayes/bayesRecyclermenu.tpl

121 lines
8.1 KiB
Smarty
Raw Normal View History

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>
<div id="bayesRecycler">
{if $s9ybackend == 1}
2012-02-05 02:45:42 +01:00
<div class="bayesRecyclerTableNavigation">
{else}
<ul class="bayesRecyclerTableNavigation plainList clearfix">
{/if}
2012-02-05 02:45:42 +01:00
{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" aria-hidden="true"></span><span class="visuallyhidden"> {$CONST.PREVIOUS}</span></a></li>
{/if}
2012-02-05 02:45:42 +01:00
{/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" aria-hidden="true"></span></a></li>
{/if}
2012-02-05 02:45:42 +01:00
{/if}
{if $s9ybackend == 1}
2012-02-05 02:45:42 +01:00
</div>
{else}
</ul>
{/if}
{if $s9ybackend != 1}
<ul id="serendipity_comments_list" class="clearfix plainList zebra_list">
{/if}
2012-02-05 02:45:42 +01:00
{foreach from=$comments item=comment}
{if $s9ybackend == 1}
2012-02-05 02:45:42 +01:00
<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>
2013-08-15 12:45:03 +02:00
<th>{$CONST.AUTHOR}</th>
<th>{$CONST.COMMENT}</th>
<th>{$CONST.DATE}</th>
2012-02-05 02:45:42 +01:00
<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>
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>
<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>
2012-02-05 02:45:42 +01:00
</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" aria-hidden="true"></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}
2012-02-05 02:45:42 +01:00
{/foreach}
{if $s9ybackend == 1}
2012-02-05 02:45:42 +01:00
<div class="bayesRecyclerTableNavigation">
{else}
</ul>
<ul class="bayesRecyclerTableNavigation plainList clearfix">
{/if}
2012-02-05 02:45:42 +01:00
{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" aria-hidden="true"></span><span class="visuallyhidden"> {$CONST.PREVIOUS}</span></a></li>
{/if}
2012-02-05 02:45:42 +01:00
{/if}
{if ($commentpage+1)*20 < $comments|@count}
{if $s9ybackend == 1}
2012-06-07 14:08:23 +02:00
<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" aria-hidden="true"></span></a></li>
{/if}
2012-02-05 02:45:42 +01:00
{/if}
{if $s9ybackend == 1}
2012-02-05 02:45:42 +01:00
</div>
{else}
</ul>
{/if}
</div>
2012-02-05 02:45:42 +01:00
</form>
{if $s9ybackend == 1}
2012-02-05 02:45:42 +01:00
<script src="{$path}details.polyfill.min.js" type="text/javascript"></script>
{/if}
2012-02-05 02:45:42 +01:00
</div>