Permalink
Browse files

Let the user know that his/her comment is pending approval.

  • Loading branch information...
1 parent 0d64228 commit 05d4f4c5abfeb42a083af3de9d026a669a196f4c @jonnsl committed Jan 18, 2012
@@ -51,6 +51,11 @@
<?php echo ($rating > 0 ? '+' : '').$rating; ?>
</span>
<?php endif; ?>
+ <?php if (isset($status) && $status == 0) : ?>
+ <span class="pending">
+ <?php echo JText::_('COM_COMMENTS_PENDING_APPROVAL'); ?>
+ </span>
+ <?php endif; ?>
</div>
<div class="content">
<?php echo $text; ?>
@@ -31,6 +31,7 @@ COM_COMMENTS_LOGIN_TO_POST_COMMENT="#Log-in# to post a comment!"
COM_COMMENTS_NO_AUTH="You have no authorisation to perform this action."
COM_COMMENTS_ANONYMOUS="Anonymous"
COM_COMMENTS_TOP_COMMENTS="Top Comments"
+COM_COMMENTS_PENDING_APPROVAL="Pending approval"
COM_COMMENTS_YEARS_AGO_1="1 year ago"
COM_COMMENTS_YEARS_AGO="%d years ago"
@@ -40,3 +40,4 @@
.reply-form textarea{height:100px}
.no-js .comments-remaining,.spoiler-hide .slicomments-spoilerContent,.comments-post-buttons span{display:none}
.no-avatar .comments_form_inputs,.no-avatar .content-container,.no-avatar .comments-remaining{margin-left:0!important}
+.comment .pending{color:red;font-size:0.9em;font-style:italic}
@@ -185,3 +185,8 @@
.no-avatar .comments_form_inputs, .no-avatar .content-container, .no-avatar .comments-remaining {
margin-left: 0 !important;
}
+.comment .pending {
+ color: red;
+ font-size: 0.9em;
+ font-style: italic;
+}

0 comments on commit 05d4f4c

Please sign in to comment.