1
0

Add comment status to dashboard comments list.

This commit is contained in:
Matthias Mees
2014-04-30 12:52:01 +02:00
parent 38f01b02a6
commit 2307e892a9
2 changed files with 10 additions and 5 deletions

View File

@ -37,7 +37,7 @@
<ol class="plainList"> <ol class="plainList">
{if is_array($comments)} {if is_array($comments)}
{foreach $comments as $comment} {foreach $comments as $comment}
<li><b>{$comment.author|escape|truncate:30:"&hellip;"} {$CONST.IN} <a href="{$comment.entrylink}" title="Comment to {$comment.title}">#{$comment.id}</a></b> <li class="clearfix"><b>{$comment.author|escape|truncate:30:"&hellip;"} {$CONST.IN} <a href="{$comment.entrylink}" title="Comment to {$comment.title}">#{$comment.id}</a></b>
<div class="comment_summary">{$comment.body|truncate:100:"&hellip;"}</div> <div class="comment_summary">{$comment.body|truncate:100:"&hellip;"}</div>
<div id="c{$comment.id}_full" class="comment_full additional_info">{$comment.fullBody}</div> <div id="c{$comment.id}_full" class="comment_full additional_info">{$comment.fullBody}</div>
@ -57,6 +57,9 @@
<li><button class="button_link toggle_comment_full" type="button" data-href="#c{$comment.id}_full" title="{$CONST.TOGGLE_ALL}"><span class="icon-right-dir"></span><span class="visuallyhidden"> {$CONST.TOGGLE_ALL}</span></button></li> <li><button class="button_link toggle_comment_full" type="button" data-href="#c{$comment.id}_full" title="{$CONST.TOGGLE_ALL}"><span class="icon-right-dir"></span><span class="visuallyhidden"> {$CONST.TOGGLE_ALL}</span></button></li>
{/if} {/if}
</ul> </ul>
{if ($comment.status == 'pending') || ($comment.status == 'confirm')}
<span class="comment_status">{$CONST.COMMENTS_FILTER_NEED_APPROVAL}</span>
{/if}
</li> </li>
{/foreach} {/foreach}
{else} {else}

View File

@ -1442,7 +1442,8 @@ fieldset p,
.actions, .actions,
.edit_actions, .edit_actions,
#dashboard_entries .entry_status { #dashboard > section .entry_status,
#dashboard > section .comment_status {
margin-top: .35em; margin-top: .35em;
margin-bottom: .35em; margin-bottom: .35em;
} }
@ -1703,11 +1704,12 @@ form > .button_link:first-of-type,
padding: 0 1em; padding: 0 1em;
} }
#dashboard_entries .actions { #dashboard > section .actions {
float: left; float: left;
} }
#dashboard_entries .entry_status { #dashboard > section .entry_status,
#dashboard > section .comment_status {
float: right; float: right;
} }
@ -1874,7 +1876,7 @@ form > .button_link:first-of-type,
float: right; float: right;
} }
.comment_status { #serendipity_comments_list .comment_status {
margin: .5em; margin: .5em;
} }