<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>admin/_version.haml</filename>
    </added>
    <added>
      <filename>admin/password/change.haml</filename>
    </added>
    <added>
      <filename>admin/password/confirm.email</filename>
    </added>
    <added>
      <filename>admin/password/confirm.haml</filename>
    </added>
    <added>
      <filename>admin/password/oops.haml</filename>
    </added>
    <added>
      <filename>admin/password/reset.haml</filename>
    </added>
    <added>
      <filename>images/admin/single_form_shadow.png</filename>
    </added>
    <added>
      <filename>stylesheets/admin/modules/_links.sass</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,24 +1,25 @@
-- body_classes &lt;&lt; &quot;login&quot;
+- body_classes &lt;&lt; &quot;single_form&quot;
 - @logged_out = true
 
-#login
+- # For toggling the prototype
+- allow_password_reset = boolean_param(:password_reset, true)
+
+#single_form
   %h1 Please Login
-  
   %form{:method=&gt;&quot;post&quot;, :action=&gt;&quot;/admin/pages/&quot;}
     %p
       %label{:for=&gt;&quot;user_login&quot;} Username or E-mail Address
       %input.textbox.activate{:name=&gt;&quot;user[login]&quot;, :id=&gt;&quot;user_login&quot;, :type=&gt;&quot;text&quot;, :value=&gt;&quot;&quot;, :maxlength=&gt;&quot;40&quot;, :size=&gt;&quot;40&quot;}/
     %p
       %label{:for=&gt;&quot;user_password&quot;} Password
-      %input.textbox.password{:name=&gt;&quot;user[password]&quot;, :id=&gt;&quot;user_password&quot;, :type=&gt;&quot;password&quot;, :value=&gt;&quot;&quot;, :maxlength=&gt;&quot;40&quot;, :size=&gt;&quot;40&quot;}/
-      &amp;nbsp;
-      %span.remember_me
-        %input.checkbox{:name=&gt;&quot;user[remember_me]&quot;, :id=&gt;&quot;user_remember_me&quot;, :type=&gt;&quot;checkbox&quot;}/
-        %label.checkbox{:for=&gt;&quot;user_remember_me&quot;} Remember me
+      %input.textbox.password{:name=&gt;&quot;user[password]&quot;, :id=&gt;&quot;user_password&quot;, :type=&gt;&quot;password&quot;, :value=&gt;&quot;&quot;, :maxlength=&gt;&quot;40&quot;, :size=&gt;&quot;40&quot;, :style=&gt;('width: 60%' if allow_password_reset)}/
+      - if allow_password_reset
+        %span.forgot_password
+          %a{:href=&gt;&quot;/admin/password/reset&quot;} I forgot my password
+    %p.remember_me
+      %input.checkbox{:name=&gt;&quot;user[remember_me]&quot;, :id=&gt;&quot;user_remember_me&quot;, :type=&gt;&quot;checkbox&quot;}/
+      %label.checkbox{:for=&gt;&quot;user_remember_me&quot;} Remember me in this browser
     %p.buttons
       %input.button{:type=&gt;&quot;submit&quot;, :value=&gt;&quot;Login&quot;}/
 
-%p.version
-  Powered by
-  %a{:href=&gt;&quot;http://radiantcms.org&quot;} Radiant CMS
-  version 0.9.0
\ No newline at end of file
+= render :partial =&gt; &quot;version&quot;
\ No newline at end of file</diff>
      <filename>admin/login.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-/admin/login/
\ No newline at end of file
+/admin/login
\ No newline at end of file</diff>
      <filename>admin/logout.redirect</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,7 @@
 @import modules/opacity.sass
 @import modules/rounded.sass
 @import modules/shadow.sass
+@import modules/links.sass
 
 // Partials
 @import partials/reset.sass</diff>
      <filename>stylesheets/admin/main.sass</filename>
    </modified>
    <modified>
      <diff>@@ -3,10 +3,12 @@ body
   font-family: &quot;Lucida Grande&quot;, &quot;Bitstream Vera Sans&quot;, Helvetica, Verdana, Arial, sans-serif
 
 a
-  color: #0066cc
+  +default-link
+  &amp;.alt
+    +alt-link
 
-a:hover
-  text-decoration: none
+big
+  font-size: 110%
 
 h1
   font-size: 180%</diff>
      <filename>stylesheets/admin/partials/_base.sass</filename>
    </modified>
    <modified>
      <diff>@@ -70,7 +70,7 @@
       button, input.button
         font-size: 150%
       a
-        color: red
+        +alt-link
     p.more_or_less
       margin: 0 0 1em
       padding: 4px 0 5px
@@ -227,31 +227,57 @@ body.reversed
     .box
       +box-shadow(2px, 2px, 5px, rgba(0,0,0,0.3))
 
-body.login
+body.single_form
   #content
-    #login
+    #single_form
       background: #f5f1e2 url(/images/admin/vertical_tan_gradient.png) center -15px repeat-x
       border: 0.35em solid #efead3
       padding: 0.5em 1.5em
       padding-right: 22px
       position: relative
-      width: 26em
+      width: 28em
       +round-corners(6px)
       h1
         font-size: 140%    
         margin: 0.75em 0 1.25em
+      p
+        font-size: 90%
+        &amp;.intro, &amp;.error
+          font-size: 100%
+          line-height: 1.4
+        &amp;.error
+          color: #cc0000
+        label
+          font-size: 105%
+          &amp;.checkbox
+            font-size: 90%
+      ul
+        font-size: 90%
+        list-style: disc
+        padding-left: 2em
+        li
+          margin-bottom: 0.5em
       input.textbox
         width: 98.5%
-        &amp;.password
-          width: 60%
       span.remember_me
-        position: relative
+        color: #333
         font-size: 95%
+        margin-left: 1em
+        label
+          margin: 0
+        a
+          margin: 0
+          +default-link
+      span.forgot_password
+        position: relative
         top: -3px
+        margin: 0 1em
+        a
+          +default-link
       .buttons
         margin: 1.75em 0 1em
     p.version
-      background: url(/images/admin/login_shadow.png) top center no-repeat
+      background: url(/images/admin/single_form_shadow.png) top center no-repeat
       color: #666
       font-size: 80%
       padding-top: 10px</diff>
      <filename>stylesheets/admin/partials/_forms.sass</filename>
    </modified>
    <modified>
      <diff>@@ -2,9 +2,9 @@ body.reversed
   background-color: #9e9e9e
   color: white
 
-body.login
+body.single_form
   #content
     text-align: center
-    #login
-      margin: 8em auto 0
+    #single_form
+      margin: 6em auto 0
       text-align: left</diff>
      <filename>stylesheets/admin/partials/_layout.sass</filename>
    </modified>
    <modified>
      <diff>@@ -6,5 +6,5 @@
   color: #060
 
 #error
-  background-color: #e3b2b2
-  color: #630000
\ No newline at end of file
+  background-color: #f3c2c2
+  color: #770000
\ No newline at end of file</diff>
      <filename>stylesheets/admin/partials/_messages.sass</filename>
    </modified>
    <modified>
      <diff>@@ -159,6 +159,8 @@ module ViewHelpers
   include FlashHelper
   
   module ParamsHelper
+    
+    # Key based access to query parameters. Keys can be strings or symbols.
     def params
       @params ||= begin
         q = request.query.dup
@@ -166,6 +168,23 @@ module ViewHelpers
         q
       end
     end
+    
+    # Extract the value for a bool param. Handy for rendering templates in
+    # different states.
+    def boolean_param(key, default = false)
+      key = key.to_s.intern
+      value = params[key]
+      return default if value.nil?
+      case value.strip.downcase
+      when 'true'
+        true
+      when 'false'
+        false
+      else
+        raise 'Invalid value'
+      end
+    end
+
   end
   include ParamsHelper
   </diff>
      <filename>view_helpers.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>images/admin/login_shadow.png</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>191f7c59dcc1546b0bbab0f00d6263606e87f9ed</id>
    </parent>
  </parents>
  <author>
    <name>John W. Long</name>
    <email>me@johnwlong.com</email>
  </author>
  <url>http://github.com/radiant/radiant-prototype/commit/b4f5d765a4a2ee840a65a715d44b096a1a0635ea</url>
  <id>b4f5d765a4a2ee840a65a715d44b096a1a0635ea</id>
  <committed-date>2009-10-01T14:10:14-07:00</committed-date>
  <authored-date>2009-10-01T14:10:14-07:00</authored-date>
  <message>allow a user to reset their password</message>
  <tree>08e6c38c152cc4569cfd025db2f0f87d751e1ea5</tree>
  <committer>
    <name>John W. Long</name>
    <email>me@johnwlong.com</email>
  </committer>
</commit>
