From d04dbadfa1c9a2ed6823ac2ffd64d8f68f27581c Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Sun, 15 Feb 2009 22:36:51 +0000 Subject: Apply buttons to comment moderation and action buttons, beginnings of a photo stream carousel block in admin dashboard. --- core/views/admin_block_photo_stream.html.php | 16 ++++-- modules/comment/views/admin_comments.html.php | 81 +++++++++++++-------------- themes/admin_default/css/screen.css | 46 ++++++++++++++- themes/admin_default/js/ui.init.js | 33 +++++++++++ 4 files changed, 125 insertions(+), 51 deletions(-) diff --git a/core/views/admin_block_photo_stream.html.php b/core/views/admin_block_photo_stream.html.php index f7889a9c..e8a4d933 100644 --- a/core/views/admin_block_photo_stream.html.php +++ b/core/views/admin_block_photo_stream.html.php @@ -1,10 +1,14 @@ -

- Recent photos added to your Gallery -

+ +

+ +

diff --git a/modules/comment/views/admin_comments.html.php b/modules/comment/views/admin_comments.html.php index 14b18e91..ea405197 100644 --- a/modules/comment/views/admin_comments.html.php +++ b/modules/comment/views/admin_comments.html.php @@ -121,49 +121,44 @@ text ?> - +
+ state != "unpublished"): ?> + + + + + + state != "published"): ?> + + + + + + state != "spam"): ?> + + + + + + + + + + + + + + + + + +
diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css index 334db071..85c76c2a 100644 --- a/themes/admin_default/css/screen.css +++ b/themes/admin_default/css/screen.css @@ -69,7 +69,7 @@ #gHeader { background-color: #e8e8e8; border-bottom: 1px solid #ccc; - margin-top: 0; + margin-bottom: 20px; padding: 0 20px; } @@ -114,14 +114,52 @@ background: none; } +#gPhotoStream { + background-color: #e8e8e8; +} + #gPhotoStream .gBlockContent { - overflow: auto; + +} + +#gPhotoStream .gBlockContent ul { + border-right: 1px solid #e8e8e8; + height: 92px; + overflow: hidden; + white-space: nowrap; + width: 100%; +} + +#gContent #gPhotoStream .gItem { + background-color: #fff; + border: 1px solid #e8e8e8; + border-right-color: #ccc; + border-bottom-color: #ccc; + float: left; + font-size: .7em; + height: 90px; + overflow: hidden; + text-align: center; + width: 90px; } #gSiteStatus { margin-bottom: 0; } +#gAdminCommentsMenu { + margin: 1em 0; +} + +#gAdminCommentsMenu li { + float: left; +} + +#gAdminCommentsMenu a { + margin: 0; + padding: .2em .6em; +} + #gAdminGraphics .gAvailable .gBlock { clear: none; float: left; @@ -196,3 +234,7 @@ li.gGroup { .ui-sortable { cursor: move; } + +.gButtonSetVertical a { + width: 8em; +} diff --git a/themes/admin_default/js/ui.init.js b/themes/admin_default/js/ui.init.js index d43a5f1d..120b04ba 100644 --- a/themes/admin_default/js/ui.init.js +++ b/themes/admin_default/js/ui.init.js @@ -20,6 +20,21 @@ $(document).ready(function(){ $(dialogLinks[i]).bind("click", handleDialogEvent); } + if ($("#gPhotoStream").length) { + // Vertically align thumbs in photostream + $('.gItem').vAlign(); + } + + // Round view menu buttons + if ($("#gAdminCommentsMenu").length) { + $("#gAdminCommentsMenu ul").removeClass("gMenu").removeClass("sf-menu"); + $("#gAdminCommentsMenu").addClass("gToolBar"); + $("#gAdminCommentsMenu ul").addClass("gButtonSet"); + $("#gAdminCommentsMenu a").addClass("gButtonLink ui-state-default"); + $("#gAdminCommentsMenu ul li:first a").addClass("ui-corner-left"); + $("#gAdminCommentsMenu ul li:last a").addClass("ui-corner-right"); + } + // Apply hide/show functionality on user admin view var panelLinks = $(".gPanelLink"); for (i=0; i" + $(this).html() + ""); + var el = $(this).children(container + ":first"); + var elh = $(el).height(); + var ph = $(this).height(); + var nh = (ph - elh) / 2; + $(el).css('margin-top', nh); + }); + }; +})(jQuery); + + -- cgit v1.2.3