[Jifty-commit] r7136 - jifty/trunk/lib/Jifty/Plugin/SetupWizard

Jifty commits jifty-commit at lists.jifty.org
Mon Jun 1 17:53:01 EDT 2009


Author: sartak
Date: Mon Jun  1 17:53:01 2009
New Revision: 7136

Modified:
   jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm

Log:
Add some divs for styling hooks

Modified: jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm	Mon Jun  1 17:53:01 2009
@@ -27,31 +27,37 @@
     my $step = get('step');
     my $name = $steps[$step] or abort(400);
 
-    show "/__jifty/admin/setupwizard/$name";
-
-    if ($step > 0) {
-        hyperlink(
-            label => _("Back: %1", $steps[$step - 1]),
-            onclick => {
-                replace_self => 1,
-                arguments => {
-                    step => $step - 1,
+    div {
+        class is 'setupwizard-step';
+        show "/__jifty/admin/setupwizard/$name";
+    };
+
+    div {
+        class is 'setupwizard-links';
+        if ($step > 0) {
+            hyperlink(
+                label => _("Back: %1", $steps[$step - 1]),
+                onclick => {
+                    replace_self => 1,
+                    arguments => {
+                        step => $step - 1,
+                    },
                 },
-            },
-        );
-    }
-
-    if ($step < @steps - 1) {
-        hyperlink(
-            label => _("Skip: %1", $steps[$step + 1]),
-            onclick => {
-                replace_self => 1,
-                arguments => {
-                    step => $step + 1,
+            );
+        }
+
+        if ($step < @steps - 1) {
+            hyperlink(
+                label => _("Skip: %1", $steps[$step + 1]),
+                onclick => {
+                    replace_self => 1,
+                    arguments => {
+                        step => $step + 1,
+                    },
                 },
-            },
-        );
-    }
+            );
+        }
+    };
 };
 
 template '/__jifty/admin/setupwizard/language' => sub {


More information about the Jifty-commit mailing list