<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>misc/spindle.profile.js</filename>
    </added>
    <added>
      <filename>public/js-src/paste/main.js</filename>
    </added>
    <added>
      <filename>public/js-src/spindle/main.js</filename>
    </added>
    <added>
      <filename>public/js-src/spindle/themes/spindle/spindle.css</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,4 @@
 &lt;?
-$content = $this-&gt;render('_layout.phtml');
 if (Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getParam('nojs', false)) {
     $this-&gt;dojo()-&gt;disable();
     $content = preg_replace('#href=&quot;([^&quot;]*)&quot;#s', 'href=&quot;$1?nojs=true&quot;', $content);
@@ -16,6 +15,10 @@ if (Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getParam('nojs', false))
     &lt;?= $this-&gt;headScript() ?&gt; 
 &lt;/head&gt;
 &lt;body class=&quot;tundra&quot;&gt;
-    &lt;?= $content ?&gt; 
-&lt;/body&gt;
+    &lt;?  $this-&gt;borderContainer()-&gt;captureStart('layout', array('design' =&gt; 'headline')) ?&gt;
+    &lt;?= $this-&gt;render('_headline.phtml') ?&gt;
+    &lt;?= $this-&gt;render('_mainPane.phtml') ?&gt;
+    &lt;?= $this-&gt;render('_navPane.phtml') ?&gt;
+    &lt;?= $this-&gt;render('_footer.phtml') ?&gt;
+    &lt;?= $this-&gt;borderContainer()-&gt;captureEnd('layout') ?&gt;&lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>application/layouts/scripts/layout.phtml</filename>
    </modified>
    <modified>
      <diff>@@ -36,7 +36,9 @@ class Spindle_PasteController extends Zend_Controller_Action
 
         $this-&gt;view-&gt;headTitle()-&gt;prepend('Pastebin');
         $this-&gt;view-&gt;dojo()-&gt;setDjConfigOption('preventBackButtonFix', false)
-                           -&gt;addLayer('/js/paste/layer.js');
+                           -&gt;registerModulePath('../paste', 'paste')
+                           -&gt;addStylesheetModule('paste.styles')
+                           -&gt;requireModule('paste.main');
     }
 
     /**</diff>
      <filename>application/modules/spindle/controllers/PasteController.php</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 &lt;ul id=&quot;paste-nav&quot;&gt;
     &lt;? if (!isset($this-&gt;message)): ?&gt;
-    &lt;li&gt;&lt;a href=&quot;&lt;?= $this-&gt;baseUrl() . '/paste/followup/id/' . $this-&gt;id ?&gt;&quot;&gt;Followup&lt;/a&gt;&lt;/li&gt;
+    &lt;li&gt;&lt;a href=&quot;&lt;?= $this-&gt;baseUrl() . '/spindle/paste/followup/id/' . $this-&gt;id ?&gt;&quot;&gt;Followup&lt;/a&gt;&lt;/li&gt;
     &lt;? endif ?&gt;
-    &lt;li&gt;&lt;a href=&quot;&lt;?= $this-&gt;baseUrl() . '/paste/new' ?&gt;&quot;&gt;New Paste&lt;/a&gt;&lt;/li&gt;
-    &lt;li&gt;&lt;a href=&quot;&lt;?= $this-&gt;baseUrl() . '/paste' ?&gt;&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
+    &lt;li&gt;&lt;a href=&quot;&lt;?= $this-&gt;baseUrl() . '/spindle/paste/new' ?&gt;&quot;&gt;New Paste&lt;/a&gt;&lt;/li&gt;
+    &lt;li&gt;&lt;a href=&quot;&lt;?= $this-&gt;baseUrl() . '/spindle/paste' ?&gt;&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;</diff>
      <filename>application/modules/spindle/views/scripts/paste/_nav.phtml</filename>
    </modified>
    <modified>
      <diff>@@ -22,6 +22,6 @@
 &lt;/p&gt;
 
 &lt;p class=&quot;new-paste&quot;&gt;
-    &lt;a href=&quot;&lt;?= $this-&gt;baseUrl() ?&gt;/paste/new&quot;&gt;Create a new paste.&lt;/a&gt;
+    &lt;a href=&quot;&lt;?= $this-&gt;baseUrl() ?&gt;/spindle/paste/new&quot;&gt;Create a new paste.&lt;/a&gt;
 &lt;/p&gt;
 </diff>
      <filename>application/modules/spindle/views/scripts/paste/content/about.phtml</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@
     &lt;? if ('text' != $paste['type']): ?&gt;
     (&lt;a id=&quot;format-toggle&quot; href=&quot;#&quot; onClick=&quot;paste.unformattedShow();&quot;&gt;unformatted&lt;/a&gt;)
     &lt;? endif ?&gt;
-    &lt;span class=&quot;permalink&quot;&gt;[&lt;a href=&quot;&lt;?= $this-&gt;baseUrl() ?&gt;/paste/display/id/&lt;?= $paste['id'] ?&gt;&quot;&gt;Permalink&lt;/a&gt;]&lt;/span&gt;
+    &lt;span class=&quot;permalink&quot;&gt;[&lt;a href=&quot;&lt;?= $this-&gt;baseUrl() ?&gt;/spindle/paste/display/id/&lt;?= $paste['id'] ?&gt;&quot;&gt;Permalink&lt;/a&gt;]&lt;/span&gt;
 &lt;/h3&gt;
 &lt;div id=&quot;pastecode&quot; class=&quot;highlight&quot;&gt;
     &lt;pre&gt;&lt;code class=&quot;&lt;?= $paste['type'] ?&gt;&quot;&gt;&lt;?= $this-&gt;escape($paste['code']) ?&gt;&lt;/code&gt;&lt;/pre&gt;
@@ -24,14 +24,14 @@
 &lt;/p&gt;
 &lt;? if (!empty($paste['parent'])): ?&gt;
     &lt;p class=&quot;parent&quot;&gt;
-    &lt;a href=&quot;&lt;?= $this-&gt;baseUrl() ?&gt;/paste/display/id/&lt;?= $paste['parent'] ?&gt;&quot;&gt;Parent paste (&lt;?= $paste['parent'] ?&gt;)&lt;/a&gt;
+    &lt;a href=&quot;&lt;?= $this-&gt;baseUrl() ?&gt;/spindle/paste/display/id/&lt;?= $paste['parent'] ?&gt;&quot;&gt;Parent paste (&lt;?= $paste['parent'] ?&gt;)&lt;/a&gt;
     &lt;/p&gt;
 &lt;? endif ?&gt;
 &lt;? if (!empty($paste['children'])): ?&gt;
     &lt;p class=&quot;children&quot;&gt;Child pastes:&lt;/p&gt;
     &lt;ul class=&quot;children&quot;&gt;
     &lt;? foreach ($paste['children'] as $child): ?&gt;
-        &lt;li&gt;&lt;a href=&quot;&lt;?= $this-&gt;baseUrl() ?&gt;/paste/display/id/&lt;?= $child ?&gt;&quot;&gt;&lt;?= $child ?&gt;&lt;/a&gt;&lt;/li&gt;
+        &lt;li&gt;&lt;a href=&quot;&lt;?= $this-&gt;baseUrl() ?&gt;/spindle/paste/display/id/&lt;?= $child ?&gt;&quot;&gt;&lt;?= $child ?&gt;&lt;/a&gt;&lt;/li&gt;
     &lt;? endforeach ?&gt;
     &lt;/ul&gt;
 &lt;? endif ?&gt;</diff>
      <filename>application/modules/spindle/views/scripts/paste/content/display.phtml</filename>
    </modified>
    <modified>
      <diff>@@ -16,7 +16,7 @@ $followup = array_intersect_key($paste, $followupKeys);
 $followup['parent'] = $this-&gt;id;
 
 $form  = $this-&gt;model-&gt;getForm();
-$form-&gt;setAction($this-&gt;baseUrl() . '/paste/save-followup/id/' . $this-&gt;id)
+$form-&gt;setAction($this-&gt;baseUrl() . '/spindle/paste/save-followup/id/' . $this-&gt;id)
      -&gt;setMethod('post')
      -&gt;setName('followupform')
      -&gt;setElementsBelongTo('followupform')</diff>
      <filename>application/modules/spindle/views/scripts/paste/content/followup.phtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 &lt;? 
 $form = $this-&gt;model-&gt;getForm();
-$form-&gt;setAction($this-&gt;baseUrl() . '/paste/save')
+$form-&gt;setAction($this-&gt;baseUrl() . '/spindle/paste/save')
      -&gt;setMethod('post');
 echo $form;</diff>
      <filename>application/modules/spindle/views/scripts/paste/content/new-paste.phtml</filename>
    </modified>
    <modified>
      <diff>@@ -169,8 +169,9 @@ class My_Plugin_Initialize extends Zend_Controller_Plugin_Abstract
         $view-&gt;headMeta()-&gt;appendHttpEquiv('Content-Type', 'text/html; charset=utf-8');
         $view-&gt;dojo()-&gt;setDjConfigOption('isDebug', $this-&gt;config-&gt;view-&gt;dojo-&gt;isDebug)
                      -&gt;setLocalPath('/js/dojo/dojo.js')
-                     -&gt;registerModulePath('../paste', 'paste')
-                     -&gt;addStylesheetModule('paste.styles')
+                     -&gt;registerModulePath('../spindle', 'spindle')
+                     -&gt;addStylesheetModule('spindle.themes.spindle')
+                     -&gt;requireModule('spindle.main')
                      -&gt;disable();
 
         Zend_Registry::set('view', $view);</diff>
      <filename>library/My/Plugin/Initialize.php</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,11 @@
 Miscellaneous support files
 
-- paste.profile.js
-  This is a build profile for the pastebin application. 
+- spindle.profile.js
+  This is a build profile for the spindle application. 
   
-  To create a custom build, first copy the public/js-src/paste directory to your
-  Dojo source build. Then, place the paste.profile.js file in the
-  util/buildscripts/profiles/ directory of your Dojo source distribution. From
-  the util/buildscripts directory, execute the line provided in the header of
-  the profile to create a custom build.  You can then use this custom build in
-  place of the shipped JS source.
+  To create a custom build, first copy the public/js-src/spindle and
+  public/js-src/paste directories to your Dojo source build. Then, place the
+  spindle.profile.js file in the util/buildscripts/profiles/ directory of your
+  Dojo source distribution. From the util/buildscripts directory, execute the
+  line provided in the header of the profile to create a custom build.  You can
+  then use this custom build in place of the shipped JS source.</diff>
      <filename>misc/README.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 dojo.provide(&quot;paste.TabHandler&quot;);
 
-dojo.require(&quot;paste.layer&quot;);
+dojo.require(&quot;paste.main&quot;);
 dojo.require(&quot;dijit.layout.ContentPane&quot;);
 
 dojo.declare(&quot;paste.TabHandler&quot;, null, {</diff>
      <filename>public/js-src/paste/TabHandler.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,25 +1,8 @@
-@import &quot;../../dijit/themes/tundra/tundra.css&quot;;
 @import &quot;../../dojox/grid/resources/Grid.css&quot;;
 @import &quot;../../dojox/grid/resources/tundraGrid.css&quot;;
 @import &quot;highlight/highlight.css&quot;;
 @import &quot;highlight/autumn.css&quot;;
 
-body, html {
-    width:  100%;
-    height: 100%;
-    margin: 0;
-    padding: 0;
-}
-
-#layout {
-    width:  100%;
-    height: 100%;
-}
-
-#navPane {
-    width: 200px;
-}
-
 #pasteform .paste-tab, #pastebin {
     margin-left: 1em;
     margin-top: 1em;
@@ -72,44 +55,6 @@ form textarea.summaryTextarea {
     width: 80%;
 }
 
-#headline {
-    height: 2.5em;
-    background-color: #CCCCCC;
-}
-
-#headline h1 {
-    font-height: 1.2em;
-    margin: 0;
-    padding: 0 0 0 0.5em;
-}
-
-#headline a {
-    text-decoration: none;
-    color: black;
-}
-
-#headline a:hover {
-    text-decoration: underline;
-}
-
-#navPane {
-    width: 225px;
-    margin-left: 1em;
-    margin-top: 1em;
-    padding-left: 1em;
-}
-
-#footer {
-    visibility: collapse;
-    height: 1.5em;
-    background-color: #CCCCCC;
-}
-
-#footer p {
-    margin: 0;
-    padding: 0 0 0 0.5em;
-}
-
 div#pastecode {
     padding: 1em;
     border: 1px solid black;
@@ -118,12 +63,3 @@ div#pastecode {
     background-color: #FFFFF1;
 }
 
-dl.error {
-    background-color: #FFA4A4;
-    border: 1px solid #FF0000;
-    padding: 0.5em;
-}
-
-dl.error dt {
-    font-weight: bold;
-}</diff>
      <filename>public/js-src/paste/styles/styles.css</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>application/layouts/scripts/_layout.phtml</filename>
    </removed>
    <removed>
      <filename>misc/paste.profile.js</filename>
    </removed>
    <removed>
      <filename>public/js-src/paste/layer.js</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>ed2d5c0f00cd2c4aad44dbabc10df7bcb25fa3fc</id>
    </parent>
  </parents>
  <author>
    <name>Matthew Weier O'Phinney</name>
    <email>matthew@weierophinney.net</email>
  </author>
  <url>http://github.com/weierophinney/pastebin/commit/3668b83d2000d9d73167ef2f68fd6393d8a11440</url>
  <id>3668b83d2000d9d73167ef2f68fd6393d8a11440</id>
  <committed-date>2008-12-02T20:37:11-08:00</committed-date>
  <authored-date>2008-12-02T20:37:11-08:00</authored-date>
  <message>Added spindle layer
Renamed paste.layer to paste.main for consistency
Refactored initialization to use spindle as base dojo provider
Fixed all links
Created spindle build profile</message>
  <tree>0966a44eaf0a2c15c9d12f890c50fd0a83bc7782</tree>
  <committer>
    <name>Matthew Weier O'Phinney</name>
    <email>matthew@weierophinney.net</email>
  </committer>
</commit>
