From f0ca27ab924c06cc72a44d66498b86aeda672b33 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Mon, 8 Jun 2009 21:31:50 -0700
Subject: Fix the admin/themes url.
---
modules/gallery/views/admin_block_welcome.html.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'modules/gallery/views')
diff --git a/modules/gallery/views/admin_block_welcome.html.php b/modules/gallery/views/admin_block_welcome.html.php
index 488fa908..a453b006 100644
--- a/modules/gallery/views/admin_block_welcome.html.php
+++ b/modules/gallery/views/admin_block_welcome.html.php
@@ -10,7 +10,7 @@
= t("Appearance - choose a theme, or customize the way it looks.",
- array("theme_url" => url::site("admin/theme"),
+ array("theme_url" => url::site("admin/themes"),
"theme_details_url" => url::site("admin/theme_details"))) ?>
--
cgit v1.2.3
From e6768a4e9771f5f751d74001ce3a0d33f6775216 Mon Sep 17 00:00:00 2001
From: unostar
Date: Mon, 8 Jun 2009 17:51:56 +0800
Subject: Add string to localizer
Signed-off-by: Bharat Mediratta
---
modules/gallery/views/simple_uploader.html.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'modules/gallery/views')
diff --git a/modules/gallery/views/simple_uploader.html.php b/modules/gallery/views/simple_uploader.html.php
index 79919d50..f10d764c 100644
--- a/modules/gallery/views/simple_uploader.html.php
+++ b/modules/gallery/views/simple_uploader.html.php
@@ -93,7 +93,7 @@
button_width: "202",
button_height: "45",
button_placeholder_id: "gChooseFilesButtonPlaceholder",
- button_text: 'Select photos...',
+ button_text: '= t("Select photos...") ?>',
button_text_style: ".swfUploadFont { color: #2E6E9E; font-size: 16px; font-family: Lucida Grande,Lucida Sans,Arial,sans-serif; font-weight: bold; }",
button_text_left_padding: 30,
button_text_top_padding: 10,
--
cgit v1.2.3
From 79d526f1faccb2f929f00c296cb22941d74b8eb2 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Tue, 9 Jun 2009 18:58:40 -0700
Subject: Put in a placeholder link to click on if there's no value for a
setting.
---
modules/gallery/views/admin_advanced_settings.html.php | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'modules/gallery/views')
diff --git a/modules/gallery/views/admin_advanced_settings.html.php b/modules/gallery/views/admin_advanced_settings.html.php
index 77aff050..34abadea 100644
--- a/modules/gallery/views/admin_advanced_settings.html.php
+++ b/modules/gallery/views/admin_advanced_settings.html.php
@@ -25,7 +25,11 @@
module_name/" . p::clean($var->name)) ?>"
class="gDialogLink"
title="= t("Edit %var (%module_name)", array("var" => p::clean($var->name), "module_name" => $var->module_name)) ?>">
+ if ($var->value): ?>
= p::clean($var->value) ?>
+ else: ?>
+ = t("empty") ?>
+ endif ?>
--
cgit v1.2.3
From 7e4fcb97cb4a575811c1e84ced07fbaf4d7ed7ba Mon Sep 17 00:00:00 2001
From: Andy Staudacher
Date: Tue, 9 Jun 2009 20:10:34 -0700
Subject: Fix HTML bug in l10n message
---
modules/gallery/views/admin_advanced_settings.html.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'modules/gallery/views')
diff --git a/modules/gallery/views/admin_advanced_settings.html.php b/modules/gallery/views/admin_advanced_settings.html.php
index 34abadea..b4dedaef 100644
--- a/modules/gallery/views/admin_advanced_settings.html.php
+++ b/modules/gallery/views/admin_advanced_settings.html.php
@@ -6,7 +6,7 @@
-
- = t("Change these values at your own risk!") ?>
+ = t("Change these values at your own risk!") ?>
--
cgit v1.2.3
From a20246b7382ea828157e358dd5ed62ed05db5193 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Tue, 9 Jun 2009 20:33:06 -0700
Subject: Say hello to the new upgrader UI.
---
modules/gallery/controllers/upgrader.php | 25 ++++++
modules/gallery/views/upgrader.html.php | 135 +++++++++++++++++++++++++++++++
2 files changed, 160 insertions(+)
create mode 100644 modules/gallery/controllers/upgrader.php
create mode 100644 modules/gallery/views/upgrader.html.php
(limited to 'modules/gallery/views')
diff --git a/modules/gallery/controllers/upgrader.php b/modules/gallery/controllers/upgrader.php
new file mode 100644
index 00000000..e8798de5
--- /dev/null
+++ b/modules/gallery/controllers/upgrader.php
@@ -0,0 +1,25 @@
+
+
+
+ = t("Gallery3 Upgrader") ?>
+
+
+
+
+

" />
+
+
+ = t("Welcome to the Gallery upgrader. One click and you're done!") ?>
+
+
+
+ | = t("Module name") ?> |
+ = t("Installed version") ?> |
+ = t("Available version") ?> |
+
+
+ foreach (module::available() as $module): ?>
+ if ($module->active): ?>
+ " >
+ |
+ = $module->name ?>
+ |
+
+ = $module->version ?>
+ |
+
+ = $module->code_version ?>
+ |
+
+ else: ?>
+ @$inactive++ ?>
+ endif ?>
+ endforeach ?>
+
+
+
+
+ if (@$inactive): ?>
+
+ = t("The following modules are inactive and don't require an upgrade.") ?>
+
+
+ foreach (module::available() as $module): ?>
+ if (!$module->active): ?>
+ -
+ = $module->name ?>
+
+ endif ?>
+ endforeach ?>
+
+ endif ?>
+
+
+
+
+
--
cgit v1.2.3
From f1c91ab9779542f1605476bc52c57d5f14294e97 Mon Sep 17 00:00:00 2001
From: jhilden
Date: Tue, 9 Jun 2009 23:54:02 -0400
Subject: fixed that you couldn't copy and paste text from the admin dashboard
* made only the block headers draggable, so that the rest of the block could be normal
* this should fix bug #292
---
modules/gallery/views/admin_dashboard.html.php | 8 ++++----
themes/admin_default/css/screen.css | 3 +--
2 files changed, 5 insertions(+), 6 deletions(-)
(limited to 'modules/gallery/views')
diff --git a/modules/gallery/views/admin_dashboard.html.php b/modules/gallery/views/admin_dashboard.html.php
index c266d7e1..5b8cae2e 100644
--- a/modules/gallery/views/admin_dashboard.html.php
+++ b/modules/gallery/views/admin_dashboard.html.php
@@ -10,23 +10,23 @@
};
$(document).ready(function(){
- $("#gAdminDashboard .gBlock *:first").addClass("gDraggable");
+ $("#gAdminDashboard .gBlock .ui-widget-header").addClass("gDraggable");
$("#gAdminDashboard").sortable({
connectWith: ["#gAdminDashboardSidebar"],
containment: "document",
cursor: "move",
- handle: $("div:first"),
+ handle: $(".ui-widget-header"),
opacity: 0.6,
placeholder: "gDropTarget",
stop: update_blocks
});
- $("#gAdminDashboardSidebar .gBlock *:first").addClass("gDraggable");
+ $("#gAdminDashboardSidebar .gBlock .ui-widget-header").addClass("gDraggable");
$("#gAdminDashboardSidebar").sortable({
connectWith: ["#gAdminDashboard"],
containment: "document",
cursor: "move",
- handle: $("div:first"),
+ handle: $(".ui-widget-header"),
opacity: 0.6,
placeholder: "gDropTarget",
stop: update_blocks
diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css
index 1ad64fa1..82f85f21 100644
--- a/themes/admin_default/css/screen.css
+++ b/themes/admin_default/css/screen.css
@@ -327,8 +327,7 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
border: none;
}
-.ui-draggable,
-.ui-sortable {
+.ui-draggable {
cursor: move;
}
--
cgit v1.2.3
From 2fd322deeaf6b6b3f880fe21bf78664870d630a3 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Tue, 9 Jun 2009 21:26:37 -0700
Subject: ACtually implement the upgrader, and add a confirmation box when the
upgrade is complete.
---
modules/gallery/controllers/upgrader.php | 21 +++++++++++++
modules/gallery/views/upgrader.html.php | 54 +++++++++++++++++++++++++++-----
2 files changed, 67 insertions(+), 8 deletions(-)
(limited to 'modules/gallery/views')
diff --git a/modules/gallery/controllers/upgrader.php b/modules/gallery/controllers/upgrader.php
index e8798de5..b8769b27 100644
--- a/modules/gallery/controllers/upgrader.php
+++ b/modules/gallery/controllers/upgrader.php
@@ -20,6 +20,27 @@
class Upgrader_Controller extends Controller {
public function index() {
$view = new View("upgrader.html");
+ $view->available = module::available();
+ $view->done = Input::instance()->get("done");
print $view;
}
+
+ public function upgrade() {
+ // Upgrade gallery and user first
+ module::install("gallery");
+ module::install("user");
+
+ // Then upgrade the rest
+ foreach (module::available() as $id => $module) {
+ if ($id == "gallery") {
+ continue;
+ }
+
+ if ($module->active && $module->code_version != $module->version) {
+ module::install($id);
+ }
+ }
+
+ url::redirect("upgrader?done=1");
+ }
}
diff --git a/modules/gallery/views/upgrader.html.php b/modules/gallery/views/upgrader.html.php
index ecf2e265..6b9a0110 100644
--- a/modules/gallery/views/upgrader.html.php
+++ b/modules/gallery/views/upgrader.html.php
@@ -36,9 +36,15 @@
color: #999;
font-style: italic;
}
+ tr.current td.gallery {
+ color: #00d;
+ }
tr.upgradeable td {
font-weight: bold;
}
+ tr.upgradeable td.gallery {
+ color: #00d;
+ }
table {
width: 600px;
margin-bottom: 10px;
@@ -63,28 +69,60 @@
border: 1px solid #999;
background: #eee;
}
+ div.button a {
+ text-decoration: none;
+ }
div.button:hover {
background: #ccc;
}
+ div#confirmation {
+ position: fixed;
+ top: 400px;
+ left: 325px;
+ background: blue;
+ z-index: 1000;
+ margin: 10px;
+ text-align: center;
+ }
+ div#confirmation div {
+ margin: 2px;
+ padding: 20px;
+ border: 2px solid #999;
+ background: white;
+ }
+ .gray_on_done {
+ opacity: = $done ? "0.5" : "1" ?>;
+ }

" />
-
+ if ($done): ?>
+
+
+
= t("That's it!") ?>
+
+ = t("Your Gallery is up to date.",
+ array("url" => url::site("albums/1"))) ?>
+
+
+
+ endif ?>
+
= t("Welcome to the Gallery upgrader. One click and you're done!") ?>
-
+
| = t("Module name") ?> |
= t("Installed version") ?> |
= t("Available version") ?> |
- foreach (module::available() as $module): ?>
+ foreach ($available as $id => $module): ?>
if ($module->active): ?>
" >
- |
+ |
= $module->name ?>
|
@@ -100,18 +138,18 @@
endforeach ?>
|
-