aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-02-10 13:03:28 +0000
committerplegall <plg@piwigo.org>2012-02-10 13:03:28 +0000
commit9edfe9bbb9203403d1482fc3f18eea664e20dcb3 (patch)
tree25f17f422c641f5fe82fc88d3714762722a23ee9
parent996cfad0b48699cc0e7b8a18d7cfc684f1060d80 (diff)
slight redesign on pending comments screen
git-svn-id: http://piwigo.org/svn/trunk@13079 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/comments.php11
-rw-r--r--admin/themes/default/template/comments.tpl8
-rw-r--r--admin/themes/default/theme.css13
3 files changed, 27 insertions, 5 deletions
diff --git a/admin/comments.php b/admin/comments.php
index 002ed9565..e54f13421 100644
--- a/admin/comments.php
+++ b/admin/comments.php
@@ -92,6 +92,17 @@ $template->assign(
);
// +-----------------------------------------------------------------------+
+// | Tabs |
+// +-----------------------------------------------------------------------+
+
+include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
+
+$tabsheet = new tabsheet();
+$tabsheet->add('', l10n('User comments validation'), '');
+$tabsheet->select('');
+$tabsheet->assign();
+
+// +-----------------------------------------------------------------------+
// | comments display |
// +-----------------------------------------------------------------------+
diff --git a/admin/themes/default/template/comments.tpl b/admin/themes/default/template/comments.tpl
index 4fbfed858..87b75a004 100644
--- a/admin/themes/default/template/comments.tpl
+++ b/admin/themes/default/template/comments.tpl
@@ -44,15 +44,13 @@ jQuery(document).ready(function(){
{/literal}{/footer_script}
<div class="titrePage">
- <h2>{'Waiting'|@translate} {$TABSHEET_TITLE}</h2>
+ <h2>{'Pending Comments'|@translate} {$TABSHEET_TITLE}</h2>
</div>
-<h3>{'User comments validation'|@translate}</h3>
-
{if !empty($comments) }
-<form method="post" action="{$F_ACTION}">
+<form method="post" action="{$F_ACTION}" id="pendingComments">
-<table width="99%">
+<table>
{foreach from=$comments item=comment name=comment}
<tr valign="top" class="{if $smarty.foreach.comment.index is odd}row2{else}row1{/if}">
<td style="width:50px;" class="checkComment">
diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css
index b1c2ef5b2..53c99e10f 100644
--- a/admin/themes/default/theme.css
+++ b/admin/themes/default/theme.css
@@ -1057,4 +1057,17 @@ p#uploadModeInfos {text-align:left;margin-top:1em;font-size:90%;color:#999;}
vertical-align:top;
border-left:2px solid #ddd;
padding-left:10px;
+}
+
+/* Pending Comments */
+#pendingComments {
+ padding:0 5px 0 10px;
+}
+
+#pendingComments table {
+ width:100%;
+}
+
+#pendingComments .bottomButtons {
+ text-align:left;
} \ No newline at end of file