From 0546f0df13471664255a18b45c7464cc7f7f370e Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Tue, 21 Jul 2009 13:39:40 -0700
Subject: Fix the bug that the quick menu fires for the wrong photo. This
stems from using a single gQuickPane
that we move around. A race
condition happens when you mouse over two thumbnails quickly. Whichever
server response loses the race gets displayed, and sometimes it's the one
that you're no longer hovering over.
Fix it by changing gQuickPane to be a class and creating a
per
thumbnail.
Fixes ticket #290.
---
themes/default/css/fix-ie.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'themes/default/css')
diff --git a/themes/default/css/fix-ie.css b/themes/default/css/fix-ie.css
index 3d9604e6..d071abac 100644
--- a/themes/default/css/fix-ie.css
+++ b/themes/default/css/fix-ie.css
@@ -45,6 +45,6 @@ input.submit {
width: 60px;
}
-#gQuickPane {
+.gQuickPane {
height: 32px !important;
-}
\ No newline at end of file
+}
--
cgit v1.2.3
From 26117accb62a58728da5e3c9b9166980a955ab44 Mon Sep 17 00:00:00 2001
From: Chad Kieffer
Date: Sun, 26 Jul 2009 10:54:21 -0600
Subject: Update to how gSiteMenu is positioned. Required addition of a new
container, gBanner. This will ensure proper positioning across most browsers
and simplifies gBreadcrumbs styles. Removed inaffective IE opacity style.
---
themes/default/css/fix-ie.css | 21 +++++-------------
themes/default/css/screen.css | 51 ++++++++++++++++++++-----------------------
2 files changed, 30 insertions(+), 42 deletions(-)
(limited to 'themes/default/css')
diff --git a/themes/default/css/fix-ie.css b/themes/default/css/fix-ie.css
index d071abac..c7c1ebad 100644
--- a/themes/default/css/fix-ie.css
+++ b/themes/default/css/fix-ie.css
@@ -1,26 +1,17 @@
/**
* Fix display in IE 6, 7
*/
-#gHeader,
-#gSiteMenu,
+
+#gBanner,
.gBreadcrumbs,
#gAlbumGrid,
#gPager,
-#gViewMenu {
+#gViewMenu {
zoom: 1;
}
-#gHeader #gLogo img {
- margin-top: 5px;
- margin-bottom: 0;
-}
-
-#gHeader #gSiteMenu {
- margin-top: 28px;
-}
-
-#gHeader #gQuickSearchForm {
- margin-bottom: 0;
+#gBanner {
+ z-index: 2;
}
input.submit {
@@ -47,4 +38,4 @@ input.submit {
.gQuickPane {
height: 32px !important;
-}
+}
\ No newline at end of file
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index 88631e81..c5a9956d 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -131,7 +131,7 @@ fieldset {
padding-bottom: .8em;
}
-#gHeader fieldset,
+#gBanner fieldset,
#gSidebar fieldset,
.gShortForm fieldset {
border: none;
@@ -142,7 +142,7 @@ legend {
margin-left: 1em;
}
-#gHeader legend,
+#gBanner legend,
#gSidebar legend,
#gContent #gSearchForm legend,
input[type="hidden"],
@@ -387,16 +387,21 @@ form .gError,
/* Layout containers ~~~~~~~~~~~~~~~~~~~~~ */
#gHeader {
+ margin-bottom: 1em;
+}
+
+#gBanner {
background-color: #e8e8e8;
- border-bottom: 1px solid #fff;
+ border-bottom: 1px solid #ccc;
font-size: .8em;
- margin-bottom: 1em;
- padding: 1em 20px 0 20px;
+ padding: 1em 20px;
+ position: relative;
}
#gContent {
font-size: 1.2em;
padding-left: 20px;
+ position: relative;
width: 696px;
}
@@ -421,18 +426,17 @@ form .gError,
/* Header ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
-#gHeader #gLogo img {
- float: left;
- margin: -4px 10px 0 0;
+#gBanner #gLogo img {
+ margin: 0;
}
-#gHeader #gQuickSearchForm {
+#gBanner #gQuickSearchForm {
clear: right;
float: right;
- margin: 1em 0;
+ margin-top: 1em;
}
-#gHeader #gQuickSearchForm input[type='text'] {
+#gBanner #gQuickSearchForm input[type='text'] {
width: 17em;
}
@@ -535,12 +539,12 @@ form .gError,
/* Footer content ~~~~~~~~~~~~~~~~~~~~~~~~ */
-#gHeader #gLoginMenu li,
+#gBanner #gLoginMenu li,
#gFooter #gCredits li {
display: inline;
}
-#gHeader #gLoginMenu li {
+#gBanner #gLoginMenu li {
padding-left: 1.2em;
}
@@ -558,14 +562,13 @@ form .gError,
*********************************************************************/
#gSiteMenu,
-.gBreadcrumbs,
#gTagCloud ul {
font-size: 1.2em;
}
/* Login menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
-#gHeader #gLoginMenu {
+#gBanner #gLoginMenu {
color: #999;
float: right;
}
@@ -573,13 +576,14 @@ form .gError,
/* Site Menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#gSiteMenu {
- float: left;
- margin-top: 20px;
- padding: 0 20px 0 0;
+ bottom: 0;
+ display: none;
+ left: 140px;
+ position: absolute;
}
#gSiteMenu ul {
- margin-bottom: 0;
+ margin-bottom: 0 !important;
}
/* Thumb Menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
@@ -641,11 +645,7 @@ form .gError,
/* Breadcrumbs ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.gBreadcrumbs {
- background-color: #fff;
- border-top: 1px solid #ccc;
- clear: both;
- margin: 0 -20px;
- padding-left: 20px;
+ padding: 0 20px;
}
.gBreadcrumbs li {
@@ -763,9 +763,7 @@ form .gError,
* 6) Browser hacks
*********************************************************************/
-#gSiteMenu:after,
#gHeader:after,
-.gBreadcrumbs:after,
#gAlbumGrid:after,
.gPager:after,
#gViewMenu:after {
@@ -823,7 +821,6 @@ form .gError,
.ui-widget-overlay {
background: #000;
opacity: .7;
- filter: Alpha(Opacity=70);
}
#gDialog {
--
cgit v1.2.3
From 52147cf6f857c4c54a2f3d753e72b27b5141d028 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Mon, 3 Aug 2009 21:45:54 -0700
Subject: Combine the quick menu and the thumb menu into a single menu called
the "context" menu.
This new context menu is generated using the typical event processing
system, like our other menus. The specialized quick CSS and JS is now
gone, replaced by our generic menu handling code. It's all rolled
together currently using the thumb_menu UI for easy packaging. All
the CSS and JS is updated.
NOTE: the non-dialog links (rotate, album_cover) have a broken UI
because they return JSON which the quick.js code handled specially,
but we don't handle properly now. I need to fix this.
---
modules/digibug/helpers/digibug_event.php | 4 +-
modules/gallery/controllers/quick.php | 14 ---
modules/gallery/css/quick.css | 52 ----------
modules/gallery/helpers/gallery.php | 102 ++++++++++++++++++++
modules/gallery/helpers/gallery_quick.php | 152 ------------------------------
modules/gallery/helpers/gallery_theme.php | 31 ------
modules/gallery/helpers/module.php | 8 +-
modules/gallery/js/quick.js | 78 ---------------
modules/gallery/libraries/Menu.php | 4 +-
modules/gallery/libraries/Theme_View.php | 10 +-
modules/gallery/views/quick_pane.html.php | 26 -----
themes/default/css/fix-ie.css | 4 -
themes/default/css/screen.css | 9 +-
themes/default/js/ui.init.js | 31 ++----
themes/default/views/album.html.php | 2 +-
15 files changed, 131 insertions(+), 396 deletions(-)
delete mode 100644 modules/gallery/css/quick.css
delete mode 100644 modules/gallery/helpers/gallery_quick.php
delete mode 100644 modules/gallery/js/quick.js
delete mode 100644 modules/gallery/views/quick_pane.html.php
(limited to 'themes/default/css')
diff --git a/modules/digibug/helpers/digibug_event.php b/modules/digibug/helpers/digibug_event.php
index c4f9e560..efe66a0f 100644
--- a/modules/digibug/helpers/digibug_event.php
+++ b/modules/digibug/helpers/digibug_event.php
@@ -36,9 +36,9 @@ class digibug_event_Core {
->css_id("gDigibugLink"));
}
- static function thumb_menu($menu, $theme, $item) {
+ static function context_menu($menu, $theme, $item) {
if ($item->type == "photo") {
- $menu->get("options_menu")
+ $menu
->append(
Menu::factory("link")
->id("digibug")
diff --git a/modules/gallery/controllers/quick.php b/modules/gallery/controllers/quick.php
index de027c1b..82176e02 100644
--- a/modules/gallery/controllers/quick.php
+++ b/modules/gallery/controllers/quick.php
@@ -18,20 +18,6 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class Quick_Controller extends Controller {
- public function pane($id) {
- $item = model_cache::get("item", $id);
- if (!access::can("view", $item) || !access::can("edit", $item)) {
- return "";
- }
-
- $view = new View("quick_pane.html");
- $page_type = Input::instance()->get("page_type");
- $view->button_list = gallery_quick::get_quick_buttons($item, $page_type);
- $view->item = $item;
- $view->page_type = $page_type;
- print $view;
- }
-
public function rotate($id, $dir) {
access::verify_csrf();
$item = model_cache::get("item", $id);
diff --git a/modules/gallery/css/quick.css b/modules/gallery/css/quick.css
deleted file mode 100644
index f153d475..00000000
--- a/modules/gallery/css/quick.css
+++ /dev/null
@@ -1,52 +0,0 @@
-.gQuickPane {
- position: absolute;
- top: 0;
- left: 0;
- text-align: center;
- width: 100%;
- height: auto;
-}
-
-.gItem:hover {
- background-color: #cfdeff;
-}
-
-.gQuick {
- border: none !important;
- margin: 0 !important;
- padding: 0 !important;
-}
-
-.gQuickPane {
- background: #000;
- border-bottom: 1px solid #ccc;
- opacity: 0.9;
- position: absolute;
- top: 0;
- left: 0;
-}
-
-.gQuickPane a {
- cursor: pointer;
- float: left;
- margin: 4px;
-}
-
-.gQuickPaneOptions {
- background: #000;
- float: left;
- width: 100%;
-}
-
-.gQuickPaneOptions li a {
- display: block;
- float: none;
- width: auto;
- margin: 0;
- padding: .5em .5em .5em .8em;
- text-align: left;
-}
-
-.gQuickPaneOptions li a:hover {
- background-color: #4d4d4d;
-}
diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php
index 476e9cbe..085965a2 100644
--- a/modules/gallery/helpers/gallery.php
+++ b/modules/gallery/helpers/gallery.php
@@ -196,4 +196,106 @@ class gallery_Core {
->url(url::site("admin/maintenance")));
return $menu;
}
+
+ static function context_menu($menu, $theme, $item, $page_type) {
+ switch ($item->type) {
+ case "movie":
+ $edit_title = t("Edit this movie");
+ $move_title = t("Move this movie to another album");
+ $cover_title = t("Choose this movie as the album cover");
+ $delete_title = t("Delete this movie");
+ break;
+
+ case "album":
+ $edit_title = t("Edit this album");
+ $move_title = t("Move this album to another album");
+ $cover_title = t("Choose this album as the album cover");
+ $delete_title = t("Delete this album");
+ break;
+
+ default:
+ $edit_title = t("Edit this photo");
+ $move_title = t("Move this photo to another album");
+ $cover_title = t("Choose this photo as the album cover");
+ $delete_title = t("Delete this photo");
+ break;
+ }
+
+ $csrf = access::csrf_token();
+ $menu->append(Menu::factory("dialog")
+ ->id("edit")
+ ->label($edit_title)
+ ->css_clasS("ui-icon-pencil")
+ ->url(url::site("quick/form_edit/$item->id?page_type=$page_type")));
+
+
+ if ($item->is_photo() && graphics::can("rotate")) {
+ $menu
+ ->append(Menu::factory("link")
+ ->id("rotate_ccw")
+ ->label(t("Rotate 90 degrees counter clockwise"))
+ ->css_class("ui-icon-rotate-ccw")
+ ->url(url::site("quick/rotate/$item->id/ccw?csrf=$csrf&page_type=$page_type")))
+ ->append(Menu::factory("link")
+ ->id("rotate_cw")
+ ->label(t("Rotate 90 degrees clockwise"))
+ ->css_class("ui-icon-rotate-cw")
+ ->url(url::site("quick/rotate/$item->id/cw?csrf=$csrf&page_type=$page_type")));
+ }
+
+ // Don't move photos from the photo page; we don't yet have a good way of redirecting after move
+ if ($page_type == "album") {
+ $menu
+ ->append(Menu::factory("dialog")
+ ->id("move")
+ ->label($move_title)
+ ->css_class("ui-icon-folder-open")
+ ->url(url::site("move/browse/$item->id")));
+ }
+
+ $parent = $item->parent();
+ if (access::can("edit", $parent)) {
+ // We can't make this item the highlight if it's an album with no album cover, or if it's
+ // already the album cover.
+ if (($item->type == "album" && empty($item->album_cover_item_id)) ||
+ ($item->type == "album" && $parent->album_cover_item_id == $item->album_cover_item_id) ||
+ $parent->album_cover_item_id == $item->id) {
+ $disabledState = " ui-state-disabled";
+ } else {
+ $disabledState = " ";
+ }
+ $menu
+ ->append(Menu::factory("link")
+ ->id("make_album_cover")
+ ->label($cover_title)
+ ->css_class($disabledState)
+ ->url(
+ url::site("quick/make_album_cover/$item->id?csrf=$csrf&page_type=$page_type")))
+ ->append(Menu::factory("dialog")
+ ->id("delete")
+ ->label($delete_title)
+ ->css_class("ui-icon-trash")
+ ->css_id("gQuickDelete")
+ ->url(url::site("quick/form_delete/$item->id?csrf=$csrf&page_type=$page_type")));
+ }
+
+ if ($item->is_album()) {
+ $menu
+ ->append(Menu::factory("dialog")
+ ->id("add_item")
+ ->label(t("Add a photo"))
+ ->css_class("add_item")
+ ->url(url::site("simple_uploader/app/$item->id")))
+ ->append(Menu::factory("dialog")
+ ->id("add_album")
+ ->label(t("Add an album"))
+ ->css_class("add_album")
+ ->url(url::site("form/add/albums/$item->id?type=album")))
+ ->append(Menu::factory("dialog")
+ ->id("edit_permissions")
+ ->label(t("Edit permissions"))
+ ->css_class("permissions")
+ ->url(url::site("permissions/browse/$item->id")));
+ }
+ }
}
\ No newline at end of file
diff --git a/modules/gallery/helpers/gallery_quick.php b/modules/gallery/helpers/gallery_quick.php
deleted file mode 100644
index 8a92890b..00000000
--- a/modules/gallery/helpers/gallery_quick.php
+++ /dev/null
@@ -1,152 +0,0 @@
-name == "gallery") {
- continue;
- }
- $class_name = "{$module->name}_quick";
- if (method_exists($class_name, "buttons")) {
- $module_buttons = call_user_func(array($class_name, "buttons"), $item, $page_type);
- foreach (array("left", "center", "right", "additional") as $position) {
- if (!empty($module_buttons[$position])) {
- $buttons[$position] = array_merge($buttons[$position], $module_buttons[$position]);
- }
- }
- }
- }
-
- $sorted_buttons->main = array();
- foreach (array("left", "center", "right") as $position) {
- $sorted_buttons->main = array_merge($sorted_buttons->main, $buttons[$position]);
- }
-
- $sorted_buttons->additional = $buttons["additional"];
- $max_display = empty($sorted_buttons->additional) ? 6 : 5;
- if (count($sorted_buttons->main) >= $max_display) {
- $to_move = array_slice($sorted_buttons->main, 5);
- $sorted_buttons->additional = array_merge($to_move, $sorted_buttons->additional);
- for ($i = count($sorted_buttons->main); $i >= 5; $i--) {
- unset($sorted_buttons->main[$i]);
- }
- }
-
- return $sorted_buttons;
- }
-
- static function buttons($item, $page_type) {
- $elements = array("left" => array(), "center" => array(), "right" => array(),
- "additional" => array());
- switch ($item->type) {
- case "movie":
- $edit_title = t("Edit this movie");
- $move_title = t("Move this movie to another album");
- $cover_title = t("Choose this movie as the album cover");
- $delete_title = t("Delete this movie");
- break;
- case "album":
- $edit_title = t("Edit this album");
- $move_title = t("Move this album to another album");
- $cover_title = t("Choose this album as the album cover");
- $delete_title = t("Delete this album");
- break;
- default:
- $edit_title = t("Edit this photo");
- $move_title = t("Move this photo to another album");
- $cover_title = t("Choose this photo as the album cover");
- $delete_title = t("Delete this photo");
- break;
- }
-
- $csrf = access::csrf_token();
- $elements["left"][] = (object)array(
- "title" => $edit_title,
- "class" => "gDialogLink gButtonLink",
- "icon" => "ui-icon-pencil",
- "href" => url::site("quick/form_edit/$item->id?page_type=$page_type"));
-
- if ($item->is_photo() && graphics::can("rotate")) {
- $elements["left"][] =
- (object)array(
- "title" => t("Rotate 90 degrees counter clockwise"),
- "class" => "gButtonLink",
- "icon" => "ui-icon-rotate-ccw",
- "href" => url::site("quick/rotate/$item->id/ccw?csrf=$csrf&page_type=$page_type"));
- $elements["left"][] =
- (object)array(
- "title" => t("Rotate 90 degrees clockwise"),
- "class" => "gButtonLink",
- "icon" => "ui-icon-rotate-cw",
- "href" => url::site("quick/rotate/$item->id/cw?csrf=$csrf&page_type=$page_type"));
- }
-
- // Don't move photos from the photo page; we don't yet have a good way of redirecting after move
- if ($page_type == "album") {
- $elements["left"][] = (object)array(
- "title" => $move_title,
- "class" => "gDialogLink gButtonLink",
- "icon" => "ui-icon-folder-open",
- "href" => url::site("move/browse/$item->id"));
- }
-
- $parent = $item->parent();
- if (access::can("edit", $parent)) {
- // We can't make this item the highlight if it's an album with no album cover, or if it's
- // already the album cover.
- if (($item->type == "album" && empty($item->album_cover_item_id)) ||
- ($item->type == "album" && $parent->album_cover_item_id == $item->album_cover_item_id) ||
- $parent->album_cover_item_id == $item->id) {
- $disabledState = " ui-state-disabled";
- } else {
- $disabledState = " ";
- }
- $elements["right"][] = (object)array(
- "title" => $cover_title,
- "class" => "gButtonLink$disabledState",
- "icon" => "ui-icon-star",
- "href" => url::site("quick/make_album_cover/$item->id?csrf=$csrf&page_type=$page_type"));
-
- $elements["right"][] = (object)array(
- "title" => $delete_title,
- "class" => "gDialogLink gButtonLink",
- "icon" => "ui-icon-trash",
- "id" => "gQuickDelete",
- "href" => url::site("quick/form_delete/$item->id?csrf=$csrf&page_type=$page_type"));
- }
-
- if ($item->is_album()) {
- $elements["additional"][] = (object)array(
- "title" => t("Add a photo"),
- "class" => "add_item gDialogLink",
- "href" => url::site("simple_uploader/app/$item->id"));
- $elements["additional"][] = (object)array(
- "title" => t("Add an album"),
- "class" => "add_album gDialogLink",
- "href" => url::site("form/add/albums/$item->id?type=album"));
- $elements["additional"][] = (object)array(
- "title" => t("Edit permissions"),
- "class" => "permissions gDialogLink",
- "href" => url::site("permissions/browse/$item->id"));
- }
- return $elements;
- }
-}
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php
index d3751b80..8fe1c768 100644
--- a/modules/gallery/helpers/gallery_theme.php
+++ b/modules/gallery/helpers/gallery_theme.php
@@ -24,11 +24,6 @@ class gallery_theme_Core {
if ($session->get("debug")) {
$theme->css("debug.css");
}
- if (($theme->page_type == "album" || $theme->page_type == "photo")
- && access::can("edit", $theme->item())) {
- $theme->css("quick.css");
- $theme->script("quick.js");
- }
if (module::is_active("rss")) {
if ($item = $theme->item()) {
@@ -51,32 +46,6 @@ class gallery_theme_Core {
return $buf;
}
- static function resize_top($theme, $item) {
- if (access::can("edit", $item)) {
- $edit_link = url::site("quick/pane/$item->id?page_type=photo");
- return "
";
- }
- }
-
- static function resize_bottom($theme, $item) {
- if (access::can("edit", $item)) {
- return "
" alt=" t("Visit the GraphicsMagick project site") ?>" />
+
= t("GraphicsMagick") ?>
= t("GraphicsMagick is a standalone graphics program available on most Linux systems. Please refer to the GraphicsMagick website for more information.",
array("url" => "http://www.graphicsmagick.org")) ?>
if ($tk->installed): ?>
-
+
= t("GraphicsMagick version %version is available in %dir", array("version" => $tk->version, "dir" => $tk->dir)) ?>
-
+
" alt=" t("Visit the ImageMagick project site") ?>" />
+
= t("ImageMagick") ?>
= t("ImageMagick is a standalone graphics program available on most Linux systems. Please refer to the ImageMagick website for more information.",
array("url" => "http://www.imagemagick.org")) ?>
if ($tk->installed): ?>
-
+
= t("ImageMagick version %version is available in %dir", array("version" => $tk->version, "dir" => $tk->dir)) ?>
-
+
diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css
index c275eb10..21b2b31c 100644
--- a/themes/admin_default/css/screen.css
+++ b/themes/admin_default/css/screen.css
@@ -312,7 +312,6 @@ li.gError select {
.gError {
background-color: #f6cbca;
- color: red;
background-image: url('../images/ico-error.png');
}
@@ -346,11 +345,7 @@ table .gSuccess {
background-color: transparent !important;
}
-.gPager .gInfo,
-table .gError,
-table .gInfo,
-table .gSuccess,
-table .gWarning {
+.gPager .gInfo {
background-image: none !important;
}
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index 5eb30bde..7cf4cfbe 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -308,7 +308,6 @@ li.gError select {
.gError {
background-color: #f6cbca;
- color: #f00;
background-image: url('../images/ico-error.png');
}
--
cgit v1.2.3
From 12903f59965b6c95e91ffa8210adc7f18e0b4c03 Mon Sep 17 00:00:00 2001
From: Chad Kieffer
Date: Mon, 31 Aug 2009 23:13:39 -0600
Subject: Hold the banner's height when header text is set or the logo's
yanked.
---
themes/default/css/screen.css | 1 +
1 file changed, 1 insertion(+)
(limited to 'themes/default/css')
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index 7cf4cfbe..70903064 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -371,6 +371,7 @@ form .gError,
background-color: #e8e8e8;
border-bottom: 1px solid #ccc;
font-size: .8em;
+ overflow: hidden;
padding: 1em 20px;
position: relative;
}
--
cgit v1.2.3
From ee2070abe8681caeacc0dea4452a0dd00035e5e9 Mon Sep 17 00:00:00 2001
From: Chad Kieffer
Date: Mon, 31 Aug 2009 23:20:52 -0600
Subject: Revert 12903f59965b6c95e91ffa8210adc7f18e0b4c03 overflow: auto hides
the site menu drop downs.
---
themes/default/css/screen.css | 1 -
1 file changed, 1 deletion(-)
(limited to 'themes/default/css')
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index 70903064..7cf4cfbe 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -371,7 +371,6 @@ form .gError,
background-color: #e8e8e8;
border-bottom: 1px solid #ccc;
font-size: .8em;
- overflow: hidden;
padding: 1em 20px;
position: relative;
}
--
cgit v1.2.3
From 9cb8c10bb5d0e7ae80045a121e03d07757cb8d1c Mon Sep 17 00:00:00 2001
From: Chad Kieffer
Date: Mon, 31 Aug 2009 23:25:42 -0600
Subject: Use min-height to hold the banner's height. #706.
---
themes/default/css/screen.css | 1 +
1 file changed, 1 insertion(+)
(limited to 'themes/default/css')
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index 7cf4cfbe..f6ce26d2 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -371,6 +371,7 @@ form .gError,
background-color: #e8e8e8;
border-bottom: 1px solid #ccc;
font-size: .8em;
+ min-height: 5em;
padding: 1em 20px;
position: relative;
}
--
cgit v1.2.3
From 39ca803af7a4439fdda3164d79d9435bdaa2b948 Mon Sep 17 00:00:00 2001
From: Chad Kieffer
Date: Mon, 31 Aug 2009 23:51:27 -0600
Subject: Set CSS cursor to hand for jQuery UI ui-state-hover elements. Fixes
all but progress bar cursor. #669
---
modules/gallery/views/admin_maintenance_task.html.php | 2 +-
themes/admin_default/css/admin_screen.css | 7 -------
themes/admin_default/css/screen.css | 9 ++++++++-
themes/default/css/screen.css | 8 ++++++--
4 files changed, 15 insertions(+), 11 deletions(-)
(limited to 'themes/default/css')
diff --git a/modules/gallery/views/admin_maintenance_task.html.php b/modules/gallery/views/admin_maintenance_task.html.php
index 0f33d508..bfc6ef44 100644
--- a/modules/gallery/views/admin_maintenance_task.html.php
+++ b/modules/gallery/views/admin_maintenance_task.html.php
@@ -57,7 +57,7 @@
= t("Starting up...") ?>
-
+
diff --git a/themes/admin_default/css/admin_screen.css b/themes/admin_default/css/admin_screen.css
index fd1ed02e..a8c16ae5 100644
--- a/themes/admin_default/css/admin_screen.css
+++ b/themes/admin_default/css/admin_screen.css
@@ -391,13 +391,6 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
.rtl #gRenameTagForm a, #gRenameTagForm span {
float: right;
}
-#gProgress button {
- float: right;
- margin-top: 1em;
-}
-.rtl #gProgress button {
- float: left;
-}
#gTaskLogDialog h1 {
font-size: 1.1em;
diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css
index 21b2b31c..eb8f9224 100644
--- a/themes/admin_default/css/screen.css
+++ b/themes/admin_default/css/screen.css
@@ -71,7 +71,10 @@ a,
#gDialog a,
.gButtonLink,
.gButtonLink:hover,
-.gButtonLink:active {
+.gButtonLink:active,
+a.ui-state-hover,
+input.ui-state-hover,
+button.ui-state-hover {
color: #5382BF !important;
text-decoration: none;
-moz-outline-style: none;
@@ -1055,6 +1058,10 @@ table .gSuccess {
text-align: right;
}
+.rtl .txtright {
+ text-align: left;
+}
+
.rtl #gHeader #gQuickSearchForm,
.rtl #gForgotPasswordLink,
.rtl #gHeader #gLoginMenu,
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index f6ce26d2..96be8996 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -71,8 +71,12 @@ a,
#gDialog a,
.gButtonLink,
.gButtonLink:hover,
-.gButtonLink:active {
- color: #5382BF !important;
+.gButtonLink:active,
+a.ui-state-hover,
+input.ui-state-hover,
+button.ui-state-hover {
+ color: #5382bf !important;
+ cursor: pointer !important;
text-decoration: none;
-moz-outline-style: none;
}
--
cgit v1.2.3
From 8972d5f05ce4f37061bdd4dd2c8a1a19c1235611 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Thu, 3 Sep 2009 10:20:54 -0700
Subject: Move the loading images into lib/images and adjust everything to
point at them, including jquery.autocomplete.css so that we don't have stuff
from lib that points into a theme directory. They were common images anyway.
Incidentally, rename sm/lg to small/large.
---
lib/images/loading-large.gif | Bin 0 -> 8238 bytes
lib/images/loading-small.gif | Bin 0 -> 673 bytes
lib/jquery.autocomplete.css | 10 +++++-----
themes/admin_default/css/screen.css | 6 +++---
themes/admin_default/images/loading-lg.gif | Bin 8238 -> 0 bytes
themes/admin_default/images/loading-sm.gif | Bin 673 -> 0 bytes
themes/default/css/screen.css | 6 +++---
themes/default/images/loading-lg.gif | Bin 8238 -> 0 bytes
themes/default/images/loading-sm.gif | Bin 673 -> 0 bytes
9 files changed, 11 insertions(+), 11 deletions(-)
create mode 100644 lib/images/loading-large.gif
create mode 100644 lib/images/loading-small.gif
delete mode 100644 themes/admin_default/images/loading-lg.gif
delete mode 100644 themes/admin_default/images/loading-sm.gif
delete mode 100644 themes/default/images/loading-lg.gif
delete mode 100644 themes/default/images/loading-sm.gif
(limited to 'themes/default/css')
diff --git a/lib/images/loading-large.gif b/lib/images/loading-large.gif
new file mode 100644
index 00000000..cc70a7a8
Binary files /dev/null and b/lib/images/loading-large.gif differ
diff --git a/lib/images/loading-small.gif b/lib/images/loading-small.gif
new file mode 100644
index 00000000..d0bce154
Binary files /dev/null and b/lib/images/loading-small.gif differ
diff --git a/lib/jquery.autocomplete.css b/lib/jquery.autocomplete.css
index cdf26f56..00cd1c9b 100644
--- a/lib/jquery.autocomplete.css
+++ b/lib/jquery.autocomplete.css
@@ -20,15 +20,15 @@
padding: 2px 5px;
cursor: default;
display: block;
- /*
- if width will be 100% horizontal scrollbar will apear
+ /*
+ if width will be 100% horizontal scrollbar will apear
when scroll mode will be used
*/
/*width: 100%;*/
font: menu;
font-size: 12px;
- /*
- it is very important, if line-height not setted or setted
+ /*
+ it is very important, if line-height not setted or setted
in relative units scroll will be broken in firefox
*/
line-height: 16px;
@@ -36,7 +36,7 @@
}
.ac_loading {
- background: white url('../themes/default/images/loading-sm.gif') right center no-repeat;
+ background: white url('images/loading-small.gif') right center no-repeat;
}
.ac_odd {
diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css
index c81db58d..4f802039 100644
--- a/themes/admin_default/css/screen.css
+++ b/themes/admin_default/css/screen.css
@@ -768,17 +768,17 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
/* Ajax loading indicator ~~~~~~~~~~~~~~~~ */
.gLoadingLarge {
- background: #e8e8e8 url('../images/loading-lg.gif') no-repeat center center;
+ background: #e8e8e8 url('../../../lib/images/loading-arge.gif') no-repeat center center;
font-size: 0;
}
.gDialogLoadingLarge {
- background: url('../images/loading-lg.gif') no-repeat center center !important;
+ background: url('../../../lib/images/loading-large.gif') no-repeat center center !important;
font-size: 0;
}
.gLoadingSmall {
- background: #e8e8e8 url('../images/loading-sm.gif') no-repeat center center;
+ background: #e8e8e8 url('../../../lib/images/loading-small.gif') no-repeat center center;
font-size: 0;
}
diff --git a/themes/admin_default/images/loading-lg.gif b/themes/admin_default/images/loading-lg.gif
deleted file mode 100644
index cc70a7a8..00000000
Binary files a/themes/admin_default/images/loading-lg.gif and /dev/null differ
diff --git a/themes/admin_default/images/loading-sm.gif b/themes/admin_default/images/loading-sm.gif
deleted file mode 100644
index d0bce154..00000000
Binary files a/themes/admin_default/images/loading-sm.gif and /dev/null differ
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index 96be8996..fd85d696 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -819,17 +819,17 @@ form .gError,
/* Ajax loading indicator ~~~~~~~~~~~~~~~~ */
.gLoadingLarge {
- background: #e8e8e8 url('../images/loading-lg.gif') no-repeat center center;
+ background: #e8e8e8 url('../../../lib/images/loading-large.gif') no-repeat center center;
font-size: 0;
}
.gDialogLoadingLarge {
- background: url('../images/loading-lg.gif') no-repeat center center !important;
+ background: url('../../../lib/images/loading-large.gif') no-repeat center center !important;
font-size: 0;
}
.gLoadingSmall {
- background: #e8e8e8 url('../images/loading-sm.gif') no-repeat center center;
+ background: #e8e8e8 url('../../../lib/images/loading-small.gif') no-repeat center center;
font-size: 0;
}
diff --git a/themes/default/images/loading-lg.gif b/themes/default/images/loading-lg.gif
deleted file mode 100644
index cc70a7a8..00000000
Binary files a/themes/default/images/loading-lg.gif and /dev/null differ
diff --git a/themes/default/images/loading-sm.gif b/themes/default/images/loading-sm.gif
deleted file mode 100644
index d0bce154..00000000
Binary files a/themes/default/images/loading-sm.gif and /dev/null differ
--
cgit v1.2.3
From 76df072e8e27239ab4c8f2abe07f664b4b1a1cbf Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Wed, 9 Sep 2009 16:18:00 -0700
Subject: Reformat error messages in dialogs so that they don't overflow in
weird ways.
---
themes/default/css/screen.css | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'themes/default/css')
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index fd85d696..fec618e6 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -105,6 +105,12 @@ a:hover,
float: left;
}
+#gDialog #gMessage li {
+ width: 400px;
+ white-space: normal;
+ padding-left: 32px;
+}
+
/* Tables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
table {
--
cgit v1.2.3
From b8053c9ddf3e393f76594e7dccc2f81f7116fd85 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Thu, 10 Sep 2009 21:10:20 -0700
Subject: Rename "after_installer" to "welcome_message" in the code to make it
clearer what its purpose is. Add some spacing in the theme for it so that
it's less cramped.
---
installer/installer.php | 5 +++
modules/gallery/controllers/after_install.php | 30 ------------------
modules/gallery/controllers/welcome_message.php | 30 ++++++++++++++++++
modules/gallery/helpers/gallery_theme.php | 4 +--
modules/gallery/views/after_install.html.php | 29 -----------------
.../gallery/views/after_install_loader.html.php | 7 -----
modules/gallery/views/welcome_message.html.php | 36 ++++++++++++++++++++++
.../gallery/views/welcome_message_loader.html.php | 7 +++++
themes/default/css/screen.css | 4 +++
9 files changed, 84 insertions(+), 68 deletions(-)
delete mode 100644 modules/gallery/controllers/after_install.php
create mode 100644 modules/gallery/controllers/welcome_message.php
delete mode 100644 modules/gallery/views/after_install.html.php
delete mode 100644 modules/gallery/views/after_install_loader.html.php
create mode 100644 modules/gallery/views/welcome_message.html.php
create mode 100644 modules/gallery/views/welcome_message_loader.html.php
(limited to 'themes/default/css')
diff --git a/installer/installer.php b/installer/installer.php
index 7fed25c7..4480e35e 100644
--- a/installer/installer.php
+++ b/installer/installer.php
@@ -47,6 +47,11 @@ class installer {
}
static function unpack_var() {
+ if (!file_exists(VARPATH)) {
+ mkdir(VARPATH);
+ chmod(VARPATH, 0777);
+ }
+
include(DOCROOT . "installer/init_var.php");
return true;
}
diff --git a/modules/gallery/controllers/after_install.php b/modules/gallery/controllers/after_install.php
deleted file mode 100644
index b640092f..00000000
--- a/modules/gallery/controllers/after_install.php
+++ /dev/null
@@ -1,30 +0,0 @@
-admin) {
- url::redirect(item::root()->url());
- }
-
- $v = new View("after_install.html");
- $v->user = user::active();
- print $v;
- }
-}
diff --git a/modules/gallery/controllers/welcome_message.php b/modules/gallery/controllers/welcome_message.php
new file mode 100644
index 00000000..a4b690e3
--- /dev/null
+++ b/modules/gallery/controllers/welcome_message.php
@@ -0,0 +1,30 @@
+admin) {
+ url::redirect(item::root()->url());
+ }
+
+ $v = new View("welcome_message.html");
+ $v->user = user::active();
+ print $v;
+ }
+}
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php
index 69c5a091..8c97f124 100644
--- a/modules/gallery/helpers/gallery_theme.php
+++ b/modules/gallery/helpers/gallery_theme.php
@@ -70,9 +70,9 @@ class gallery_theme_Core {
return L10n_Client_Controller::l10n_form();
}
- if ($session->get("after_install")) {
+ if (true || $session->get("after_install")) {
$session->delete("after_install");
- return new View("after_install_loader.html");
+ return new View("welcome_message_loader.html");
}
}
diff --git a/modules/gallery/views/after_install.html.php b/modules/gallery/views/after_install.html.php
deleted file mode 100644
index 897946a2..00000000
--- a/modules/gallery/views/after_install.html.php
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
- = t("Welcome to Gallery 3!") ?>
-
-
-
- = t("Congratulations on choosing Gallery to host your photos. We're confident that you're going to have a great experience.") ?>
-
-
-
- = t("You're logged in to the %user_name account. The very first thing you should do is to change your password to something that you'll remember.", array("user_name" => $user->name)) ?>
-
- = t("Want to learn more? The Gallery website has news and information about the Gallery project and community.", array("url" => "http://gallery.menalto.com")) ?>
-
-
-
- = t("Having problems? There's lots of information in our documentation site or you can ask for help in the forums!", array("codex_url" => "http://codex.gallery2.org/Main_Page", "forum_url" => "http://gallery.menalto.com/forum")) ?>
-
diff --git a/modules/gallery/views/after_install_loader.html.php b/modules/gallery/views/after_install_loader.html.php
deleted file mode 100644
index c2e3e1d9..00000000
--- a/modules/gallery/views/after_install_loader.html.php
+++ /dev/null
@@ -1,7 +0,0 @@
-
-for_html_attr() ?>"
- href="= url::site("after_install") ?>"/>
-
diff --git a/modules/gallery/views/welcome_message.html.php b/modules/gallery/views/welcome_message.html.php
new file mode 100644
index 00000000..5515c3dc
--- /dev/null
+++ b/modules/gallery/views/welcome_message.html.php
@@ -0,0 +1,36 @@
+
+
+
+ = t("Welcome to Gallery 3!") ?>
+
+
+
+
+ = t("Congratulations on choosing Gallery to host your photos. You're going to have a great experience!") ?>
+
+
+
+
+ = t("First things first. You're logged in to the %user_name account. You should change your password to something that you'll remember.", array("user_name" => $user->name)) ?>
+
+ = t("Want to learn more? The Gallery website has news and information about the Gallery project and community.", array("url" => "http://gallery.menalto.com")) ?>
+
+
+
+ = t("Having problems? There's lots of information in our documentation site or you can ask for help in the forums!", array("codex_url" => "http://codex.gallery2.org/Main_Page", "forum_url" => "http://gallery.menalto.com/forum")) ?>
+
+
diff --git a/modules/gallery/views/welcome_message_loader.html.php b/modules/gallery/views/welcome_message_loader.html.php
new file mode 100644
index 00000000..2c6bffca
--- /dev/null
+++ b/modules/gallery/views/welcome_message_loader.html.php
@@ -0,0 +1,7 @@
+
+for_html_attr() ?>"
+ href="= url::site("welcome_message") ?>"/>
+
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index fec618e6..d4c23155 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -773,6 +773,10 @@ form .gError,
text-decoration: underline;
}
+#gWelcomeMessage p {
+ padding-bottom: 1em;
+}
+
/* Pagination ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.gPager {
--
cgit v1.2.3
From 935a898c02030e3371b6662749979ec7181a3bc1 Mon Sep 17 00:00:00 2001
From: Chad Kieffer
Date: Thu, 10 Sep 2009 22:58:37 -0600
Subject: Clear the Upload queue label from the breadcrumbs in the Add Photos
dialog.
---
themes/default/css/screen.css | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'themes/default/css')
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index d4c23155..b0a0a590 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -1022,6 +1022,11 @@ form .gError,
display: inline-block;
}
+#gAddPhotos span {
+ clear: both;
+ display: block;
+}
+
#gAddPhotosCanvas {
height: 325px;
width: 450px;
--
cgit v1.2.3
From e15426abab6017ad13d8a5f30f4b613c6ee193e8 Mon Sep 17 00:00:00 2001
From: Chad Kieffer
Date: Thu, 10 Sep 2009 23:18:51 -0600
Subject: Clean up server add dialog a bit.
---
themes/default/css/screen.css | 22 +++-------------------
1 file changed, 3 insertions(+), 19 deletions(-)
(limited to 'themes/default/css')
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index b0a0a590..b8632285 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -945,13 +945,13 @@ form .gError,
/* Server Add */
#gServerAdd button {
- float: left;
margin-bottom: .5em;
}
#gServerAddTree {
cursor: pointer;
padding-left: 4px;
+ width: 95%;
}
#gServerAddTree li {
@@ -965,32 +965,16 @@ form .gError,
#gServerAddTree {
border: 1px solid #ccc;
- height: 25em;
+ height: 20em;
overflow: auto;
margin-bottom: .5em;
- padding-top: .5em;
- padding-bottom: .5em;
+ padding: .5em;
}
#gServerAdd ul ul li {
padding-left: 1.2em;
}
-#gServerAdd .gBreadcrumbs {
- font-size: 1em;
- padding: 0;
- margin: 0;
- border-top-width: 0;
-}
-
-#gServerAdd p {
- margin: 0;
-}
-
-#gServerAdd .gBreadcrumbs li {
- padding: 10px 6px 10px 16px;
-}
-
/* Permissions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#gEditPermissionForm {
--
cgit v1.2.3
From 35f7f653634f295d5fe9ca1443c5e6d481f860fb Mon Sep 17 00:00:00 2001
From: Chad Kieffer
Date: Thu, 10 Sep 2009 23:26:37 -0600
Subject: Fix breadcrumbs in all dialogs rather than piecemeal.
---
themes/default/css/screen.css | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'themes/default/css')
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index b8632285..64ecf775 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -702,6 +702,12 @@ form .gError,
font-weight: bold;
}
+#gDialog ul.gBreadcrumbs {
+ clear: both;
+ margin-left: 0;
+ padding-left: 0;
+}
+
#gDialog .gBreadcrumbs li {
font-size: .9em;
}
--
cgit v1.2.3