[Bps-public-commit] App-Changeloggr branch, master, updated. 8bb86dab83854de74ac4a98d671a852e941f0e28

Alex M Vandiver alexmv at bestpractical.com
Mon Apr 6 15:30:26 EDT 2009


The branch, master has been updated
       via  8bb86dab83854de74ac4a98d671a852e941f0e28 (commit)
       via  59b4695f1c55c9b90da69728f98399f2b61cea88 (commit)
       via  2b64509216e90128c75cf52cb58f3909384c1c83 (commit)
       via  440e654d476c419812530830403eca59db637413 (commit)
       via  65115c345bb395a0e89d442dcb8baa12191064b1 (commit)
      from  6b88d58c54c8304f676c400d5d7008445391958a (commit)

Summary of changes:
 lib/App/Changeloggr/Dispatcher.pm      |    1 +
 lib/App/Changeloggr/Model/Changelog.pm |    1 +
 lib/App/Changeloggr/View.pm            |    5 ++++-
 share/web/static/css/app.css           |   13 ++++++++-----
 4 files changed, 14 insertions(+), 6 deletions(-)

- Log -----------------------------------------------------------------
commit 65115c345bb395a0e89d442dcb8baa12191064b1
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Mon Apr 6 14:56:56 2009 -0400

    Order changes in ascending date order

diff --git a/lib/App/Changeloggr/Model/Changelog.pm b/lib/App/Changeloggr/Model/Changelog.pm
index 573e8d5..30c1334 100644
--- a/lib/App/Changeloggr/Model/Changelog.pm
+++ b/lib/App/Changeloggr/Model/Changelog.pm
@@ -103,6 +103,7 @@ sub choose_change {
         value => 'NULL',
     );
     $changes->rows_per_page(1);
+    $changes->order_by( column => 'date', order => 'asc' );
     return $changes->first;
 }
 

commit 440e654d476c419812530830403eca59db637413
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Mon Apr 6 15:00:30 2009 -0400

    Space buttons out a bit from each other

diff --git a/share/web/static/css/app.css b/share/web/static/css/app.css
index a13f889..1571fef 100644
--- a/share/web/static/css/app.css
+++ b/share/web/static/css/app.css
@@ -40,6 +40,7 @@ input.button {
   color: #ddd;
   -moz-border-radius: 5px; -webkit-border-radius: 5px;
   padding: 0.5em;
+  margin: 0.3em;
 }
 
 .error.text, .error.password {

commit 2b64509216e90128c75cf52cb58f3909384c1c83
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Mon Apr 6 15:02:54 2009 -0400

    Make the cookie last for a year, so users don't see the same change twice
    
    Prior to this change, closing the browser and re-opening it would
    cause you to be prompted about changes you'd already voted on.

diff --git a/lib/App/Changeloggr/Dispatcher.pm b/lib/App/Changeloggr/Dispatcher.pm
index 5becbac..e7bab53 100644
--- a/lib/App/Changeloggr/Dispatcher.pm
+++ b/lib/App/Changeloggr/Dispatcher.pm
@@ -6,6 +6,7 @@ before '*' => run {
       my $top = Jifty->web->navigation;
       $top->child(Home => url => '/');
       $top->child(New => url => '/create-changelog', label => 'New Changelog');
+      Jifty->web->session->expires( '+1y' );
 };
 
 on '/created-changelog' => run {

commit 59b4695f1c55c9b90da69728f98399f2b61cea88
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Mon Apr 6 15:29:50 2009 -0400

    Make change description be fixed-width

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index 5f4d66e..e9142e8 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -126,7 +126,10 @@ sub changelog_summary {
 sub show_change {
     my $change = shift;
 
-    h3 { $change->message }
+    h3 {
+        { class is "change" };
+        outs( $change->message );
+    }
 }
 
 sub show_vote_form {
diff --git a/share/web/static/css/app.css b/share/web/static/css/app.css
index 1571fef..b66303a 100644
--- a/share/web/static/css/app.css
+++ b/share/web/static/css/app.css
@@ -68,3 +68,8 @@ dl.keybindings dd {
   float: left;
   display: block;
 }
+
+.change {
+  white-space: pre;
+  font-family: monospace;
+}

commit 8bb86dab83854de74ac4a98d671a852e941f0e28
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Mon Apr 6 15:30:06 2009 -0400

    Get rid of a bit of whitespace at the top and left

diff --git a/share/web/static/css/app.css b/share/web/static/css/app.css
index b66303a..1d46c28 100644
--- a/share/web/static/css/app.css
+++ b/share/web/static/css/app.css
@@ -10,11 +10,8 @@ body {
   margin-right: auto;
   background: #112;
   color: #ddd;
-  max-width: 500px;
-}
-
-#content {
-  margin-top: 6em;
+  max-width: 800px;
+  margin-top: 2em;
 }
 
 h1 {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list