1
0

Hide/show comments filters, prepare Spamblock button for toolbar.

This commit is contained in:
Matthias Mees
2013-06-03 20:02:00 +02:00
parent e4a8a2662b
commit 8b3c8024a7
2 changed files with 14 additions and 14 deletions

View File

@ -2,12 +2,7 @@
{* TODO: Not sure anything emitted here actually IS an error. *} {* TODO: Not sure anything emitted here actually IS an error. *}
<span class="msg_error"><span class="icon-attention"></span> {$errormsg}</span> <span class="msg_error"><span class="icon-attention"></span> {$errormsg}</span>
{/if} {/if}
<div class="has_toolbar">
<script type="text/javascript">
var view_full = '{$CONST.VIEW_FULL}';
var view_hide = '{$CONST.HIDE}';
</script>
<h2>{$CONST.COMMENTS}</h2> <h2>{$CONST.COMMENTS}</h2>
<form action="" method="GET"> <form action="" method="GET">
@ -15,8 +10,13 @@
<input name="serendipity[adminModule]" type="hidden" value="comments"> <input name="serendipity[adminModule]" type="hidden" value="comments">
<input name="serendipity[page]" type="hidden" value="{$page}"> <input name="serendipity[page]" type="hidden" value="{$page}">
<fieldset id="filter_comments"> <ul class="filters_toolbar plainList">
<legend><span>{$CONST.FILTERS} ({$CONST.FIND_COMMENTS})</span></legend> <li><a class="button_link" href="#filter_comments" title="Show filters"><span class="icon-filter"></span><span class="visuallyhidden"> Show filters</span></a></li> {* i18n *}
<li>{serendipity_hookPlugin hookAll=true hook="backend_comments_top" addData=$sql}</li> {* Does this ever emit anything but the 'Configure Anti-Spam' stuff? *}
</ul>
<fieldset id="filter_comments" class="additional_info">
<legend class="visuallyhidden">{$CONST.FILTERS} ({$CONST.FIND_COMMENTS})</legend>
<div class="clearfix"> <div class="clearfix">
<div class="form_field"> <div class="form_field">
@ -78,13 +78,13 @@
</select> </select>
</div> </div>
</div> </div>
</fieldset>
<div class="form_buttons"> <div class="form_buttons">
<input name="submit" type="submit" value="{$CONST.GO}"> <input name="submit" type="submit" value="{$CONST.GO}">
</div> </div>
</fieldset>
</form> </form>
{serendipity_hookPlugin hookAll=true hook="backend_comments_top" addData=$sql} </div>
{if !is_array($sql)} {if !is_array($sql)}
<span class="msg_notice"><span class="icon-info-circle"></span> {$CONST.NO_COMMENTS}</span> <span class="msg_notice"><span class="icon-info-circle"></span> {$CONST.NO_COMMENTS}</span>

View File

@ -1066,7 +1066,7 @@ main {
#edit_entry_title input, #edit_entry_title input,
#edit_entry_metadata input, #edit_entry_metadata input,
#edit_entry_metadata select, #edit_entry_metadata select,
#filter_comments input, #filter_comments .form_field > input,
#filter_comments select, #filter_comments select,
#serendipity_comment .form_field input, #serendipity_comment .form_field input,
#serendipity_comment select { width: 85%; } #serendipity_comment select { width: 85%; }