summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2009-01-10 22:39:24 +0000
committerChad Kieffer <chad@2tbsp.com>2009-01-10 22:39:24 +0000
commitaed5a4c7882fb612117a3fb57223b7447db1378f (patch)
treeb61efed3a873765765cc67a6aa44546269386feb
parent5ee03eb9c80188a6f4397eba14e1ce5e23c49cac (diff)
-rw-r--r--modules/comment/views/admin_comments.html.php177
-rw-r--r--themes/admin_default/css/screen.css6
-rw-r--r--themes/default/css/screen.css10
3 files changed, 89 insertions, 104 deletions
diff --git a/modules/comment/views/admin_comments.html.php b/modules/comment/views/admin_comments.html.php
index dcee0462..e6741b35 100644
--- a/modules/comment/views/admin_comments.html.php
+++ b/modules/comment/views/admin_comments.html.php
@@ -82,120 +82,93 @@ function update_menu() {
</div>
<? endif ?>
-
- <form id="gBulkAction" action="#" method="post">
- <label for="bulk_actions"><?= t("Bulk actions")?></label>
- <select id="bulk_actions">
- <option></option>
- <option><?= t("Unapprove")?></option>
- <option><?= t("Spam")?></option>
- <option><?= t("Delete")?></option>
- </select>
- <input type="submit" value="Apply" />
-
- <table id="gAdminCommentsList">
- <tr>
- <th>
- <input type="checkbox" />
- </th>
- <th>
- <?= t("Author") ?>
- </th>
- <th>
- <?= t("Comment") ?>
- </th>
- <th>
- <?= t("Date") ?>
- </th>
- <th>
- <?= t("Actions") ?>
- </th>
- <th>
- <?= t("Subject")?>
- </th>
- </tr>
- <? foreach ($comments as $comment): ?>
- <tr id="gComment-<?= $comment->id ?>">
- <td>
- <input type="checkbox" name="delete_comments[]" value="<?= $comment->id ?>" />
- </td>
- <td>
- <a href="#">
- <img src="<?= $user->avatar_url(40, $theme->url("images/avatar.jpg")) ?>"
+ <table id="gAdminCommentsList">
+ <tr>
+ <th>
+ <?= t("Author") ?>
+ </th>
+ <th>
+ <?= t("Comment") ?>
+ </th>
+ <th>
+ <?= t("Actions") ?>
+ </th>
+ </tr>
+ <? foreach ($comments as $comment): ?>
+ <tr id="gComment-<?= $comment->id ?>">
+ <td>
+ <a href="#">
+ <img src="<?= $user->avatar_url(40, $theme->url("images/avatar.jpg")) ?>"
class="gAvatar"
alt="<?= $comment->author_name() ?>"
width="40"
height="40" />
</a><br/>
- <a href="mailto:<?= $comment->author_email() ?>"
- title="<?= $comment->author_email() ?>"> <?= $comment->author_name() ?> </a>
- </td>
- <td>
- <?= $comment->text ?>
- </td>
- <td>
- <?= date("Y-M-d", $comment->created); ?>
- </td>
- <td>
- <ul>
- <? if ($comment->state != "unpublished"): ?>
- <li>
- <a href="javascript:set_state('unpublished',<?=$comment->id?>)">
- <?= t("Unapprove") ?>
- </a>
- </li>
- <? endif ?>
-
- <? if ($comment->state != "published"): ?>
- <li>
- <a href="javascript:set_state('published',<?=$comment->id?>)">
- <?= t("Approve") ?>
- </a>
- </li>
- <? endif ?>
-
- <? if ($comment->state != "spam"): ?>
- <li>
- <a href="javascript:set_state('spam',<?=$comment->id?>)">
- <?= t("Spam") ?>
- </a>
- </li>
- <? endif ?>
-
- <li>
- <a href="javascript:reply(<?=$comment->id?>)">
- <?= t("Reply") ?>
- </a>
- </li>
-
- <li>
- <a href="javascript:Edit(<?=$comment->id?>)">
- <?= t("Edit") ?>
- </a>
- </li>
-
- <li>
- <a href="javascript:set_state('deleted',<?=$comment->id?>)">
- <?= t("Delete") ?>
- </a>
- </li>
- </ul>
- </td>
- <td>
+ <a href="mailto:<?= $comment->author_email() ?>"
+ title="<?= $comment->author_email() ?>"> <?= $comment->author_name() ?> </a>
+ </td>
+ <td>
+ <div class="right">
<? $item = $comment->item(); ?>
<a href="<?= $item->url() ?>">
<img src="<?= $item->thumb_url() ?>"
alt="<?= $item->title ?>"
<?= photo::img_dimensions($item->thumb_width, $item->thumb_height, 75) ?>
/>
- </a>
+ </a><br/>
<a href="<?= $item->url() ?>"> <?= $item->title ?> </a>
- </td>
- </tr>
- <? endforeach ?>
- </table>
- </form>
-
+ </div>
+ <p><?= date("Y-M-d", $comment->created); ?></p>
+ <?= $comment->text ?>
+ </td>
+ <td>
+ <ul>
+ <? if ($comment->state != "unpublished"): ?>
+ <li>
+ <a href="javascript:set_state('unpublished',<?=$comment->id?>)">
+ <?= t("Unapprove") ?>
+ </a>
+ </li>
+ <? endif ?>
+
+ <? if ($comment->state != "published"): ?>
+ <li>
+ <a href="javascript:set_state('published',<?=$comment->id?>)">
+ <?= t("Approve") ?>
+ </a>
+ </li>
+ <? endif ?>
+
+ <? if ($comment->state != "spam"): ?>
+ <li>
+ <a href="javascript:set_state('spam',<?=$comment->id?>)">
+ <?= t("Spam") ?>
+ </a>
+ </li>
+ <? endif ?>
+
+ <li>
+ <a href="javascript:reply(<?=$comment->id?>)">
+ <?= t("Reply") ?>
+ </a>
+ </li>
+
+ <li>
+ <a href="javascript:Edit(<?=$comment->id?>)">
+ <?= t("Edit") ?>
+ </a>
+ </li>
+
+ <li>
+ <a href="javascript:set_state('deleted',<?=$comment->id?>)">
+ <?= t("Delete") ?>
+ </a>
+ </li>
+ </ul>
+ </td>
+ </tr>
+ <? endforeach ?>
+ </table>
<div class="pager">
<?= $pager ?>
diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css
index 4366762c..b343021c 100644
--- a/themes/admin_default/css/screen.css
+++ b/themes/admin_default/css/screen.css
@@ -21,18 +21,20 @@
/** *******************************************************************
* Page layout containers
**********************************************************************/
+.gView {
+ min-width: 974px !important;
+}
#gHeader {
background-color: #e8e8e8;
border-bottom: 1px solid #ccc;
margin-top: 0;
- min-width: 944px;
padding: 0 20px;
}
#gContent {
font-size: 1.1em;
- width: 98%;
+ width: 96%;
}
/** *******************************************************************
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index 8007a318..a268a0b3 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -245,6 +245,16 @@ li.gError select {
color: #ccc;
}
+.left {
+ float: left;
+ margin: 1em 1em 1em 0;
+}
+
+.right {
+ float: right;
+ margin: 1em 0 1em 1em;
+}
+
/** *******************************************************************
* 3) Reusable content blocks
*********************************************************************/