[Bps-public-commit] App-Changeloggr branch, master, updated. 0c63e37d2000556e7a2fa4bacdf524aae349ef24

Alex M Vandiver alexmv at bestpractical.com
Tue May 12 16:54:36 EDT 2009


The branch, master has been updated
       via  0c63e37d2000556e7a2fa4bacdf524aae349ef24 (commit)
       via  6c73a8fdd65d2740178059ff0b97e431a6b5a89a (commit)
       via  b8d8a8875fcc8e325b1434fdfa456d475ea45a71 (commit)
       via  823b680747ec78013b39625fd51eec68fde69ce6 (commit)
       via  f828a5eff9c562cd51dc549cc651037c7b2c6e6a (commit)
      from  c8e004d3acaa6a2632758a1a7e57076ef6d25659 (commit)

Summary of changes:
 etc/config.yml                     |    2 +-
 lib/App/Changeloggr/View/Admin.pm  |   51 ++++++++++++++++++++++++-----------
 lib/App/Changeloggr/View/Page.pm   |   16 +++++++++++
 share/web/static/css/app-late.css  |    3 +-
 share/web/static/css/app.css       |    9 ++++++
 share/web/static/css/nav.css       |   33 +++++++++++++++--------
 share/web/static/images/bplogo.png |  Bin 0 -> 1599 bytes
 7 files changed, 84 insertions(+), 30 deletions(-)
 create mode 100644 lib/App/Changeloggr/View/Page.pm
 create mode 100644 share/web/static/images/bplogo.png

- Log -----------------------------------------------------------------
commit f828a5eff9c562cd51dc549cc651037c7b2c6e6a
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Tue May 12 13:29:37 2009 -0400

    Add BPS logo to all pages

diff --git a/lib/App/Changeloggr/View/Page.pm b/lib/App/Changeloggr/View/Page.pm
new file mode 100644
index 0000000..82aaffa
--- /dev/null
+++ b/lib/App/Changeloggr/View/Page.pm
@@ -0,0 +1,16 @@
+package App::Changeloggr::View::Page;
+use strict;
+use warnings;
+use base qw/Jifty::View::Declare::Page/;
+
+use Jifty::View::Declare::Helpers;
+
+sub render_footer {
+    my $self = shift;
+    div {
+        attr { id is "footer" };
+    };
+    $self->SUPER::render_footer(@_);
+}
+
+1;
diff --git a/share/web/static/css/app.css b/share/web/static/css/app.css
index 3583477..28867ae 100644
--- a/share/web/static/css/app.css
+++ b/share/web/static/css/app.css
@@ -14,6 +14,14 @@ body {
   margin-top: 2em;
 }
 
+#footer {
+  position: absolute;
+  right: 1em;
+  height: 50px;
+  width: 180px;
+  background: #112 url(/static/images/bplogo.png) no-repeat right top;
+}
+
 h1 {
   margin: 0;
   padding: 0;
diff --git a/share/web/static/images/bplogo.png b/share/web/static/images/bplogo.png
new file mode 100644
index 0000000..8c37443
Binary files /dev/null and b/share/web/static/images/bplogo.png differ

commit 823b680747ec78013b39625fd51eec68fde69ce6
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Tue May 12 13:45:48 2009 -0400

    Change app name

diff --git a/etc/config.yml b/etc/config.yml
index 81dea39..65c0942 100644
--- a/etc/config.yml
+++ b/etc/config.yml
@@ -2,7 +2,7 @@
 framework: 
   AdminMode: 0
   ApplicationClass: App::Changeloggr
-  ApplicationName: App-Changeloggr
+  ApplicationName: Changelogger
   ApplicationUUID: DFE97C64-0462-11DE-B67F-355F32960180
   ConfigFileVersion: 4
   Database: 

commit b8d8a8875fcc8e325b1434fdfa456d475ea45a71
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Tue May 12 15:05:35 2009 -0400

    Re-jigger secondary navto be on right side

diff --git a/share/web/static/css/app.css b/share/web/static/css/app.css
index 28867ae..5aa7aa1 100644
--- a/share/web/static/css/app.css
+++ b/share/web/static/css/app.css
@@ -8,6 +8,7 @@ body {
 #content {
   margin-left: auto;
   margin-right: auto;
+  padding-right: 10em;
   background: #112;
   color: #ddd;
   max-width: 800px;
diff --git a/share/web/static/css/nav.css b/share/web/static/css/nav.css
index f3d836e..46a7b9d 100644
--- a/share/web/static/css/nav.css
+++ b/share/web/static/css/nav.css
@@ -2,6 +2,7 @@
   padding-top: 1em;
   background-color: #000;
   border-bottom: 1px solid #445;
+  padding-right: 10em;
 }
 
 #navigation ul.menu {
@@ -12,17 +13,16 @@
   text-align: left;
   list-style-type: none;
   padding: 3px 10px 3px 10px;
+  position: relative;
 }
 
 #navigation ul.menu li {
   display: inline;
-  position: relative;
 }
 
 #navigation ul.menu li.active .title {
   border-bottom: 1px solid #112;
   background-color: #223;
-  position: relative;
   color: #ccc;
   top: 1px;
   padding-top: 4px;
@@ -53,29 +53,38 @@
 #navigation ul.menu li ul {
   background-color: #223;
   position: absolute;
-  left: 0em;
+  right: 10em;
   margin: 0;
   padding: 0;
-  margin-top: 4px;
-  padding-top: 5px;
-  padding-bottom: 5px;
-  width: 20em;
-  border-left: 1px solid #445;
-  border-right: 1px solid #445;
-  border-bottom: 1px solid #445;
-  z-index: 1;
+  margin-top: -1em;
+  border: 1px solid #445;
+  max-width: 10em;
 }
 
 
 #navigation ul.menu li ul li {
+  display: block;
   margin: 0;
   padding: 5px;
 }
 
+#navigation ul.menu li ul li:hover {
+  background-color: #334;
+}
+
 #navigation ul.menu li ul li + li {
-  border-left: 1px solid #445;
+  border-top: 1px solid #445;
 }
 
 #navigation ul.menu li ul li a {
   text-decoration: none;
+  display: block;
+}
+
+#navigation ul.menu li ul li.active {
+  background-color: #334;
 }
+
+#navigation ul.menu li ul li.active a {
+  font-weight: bold;
+}
\ No newline at end of file

commit 6c73a8fdd65d2740178059ff0b97e431a6b5a89a
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Tue May 12 16:54:07 2009 -0400

    Change jGrowl colors

diff --git a/share/web/static/css/app-late.css b/share/web/static/css/app-late.css
index 20a8914..0b112e1 100644
--- a/share/web/static/css/app-late.css
+++ b/share/web/static/css/app-late.css
@@ -1,4 +1,5 @@
 div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer {
-    background-color: #006600;
+    background-color: #334;
+    border: 1px solid #eee;
 }
 

commit 0c63e37d2000556e7a2fa4bacdf524aae349ef24
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Tue May 12 16:50:44 2009 -0400

    Clean up tag and link layouts

diff --git a/lib/App/Changeloggr/View/Admin.pm b/lib/App/Changeloggr/View/Admin.pm
index 376f4bb..643fa17 100644
--- a/lib/App/Changeloggr/View/Admin.pm
+++ b/lib/App/Changeloggr/View/Admin.pm
@@ -141,21 +141,28 @@ sub edit_links {
     my $changelog = shift;
     my $links = $changelog->commit_links;
 
-    while (my $link = $links->next) {
-        form {
-            my $delete_link = $link->as_delete_action;
-            render_action $delete_link;
-            form_submit(label => $link->find . " => " . $link->href);
+    form {
+        if ($links->count) {
+            ul {
+                while (my $link = $links->next) {
+                    li {
+                        my $delete_link = $link->as_delete_action;
+                        render_action $delete_link;
+                        tt { $link->find };
+                        outs_raw "<br /> ⇒ ";
+                        tt { $link->href };
+                        $delete_link->button(label => "Delete");
+                    }
+                }
+            }
         }
-    }
 
-    form {
         my $add_link = new_action(
             class     => "CreateCommitLink",
             arguments => { changelog_id => $changelog->id }
         );
         render_action $add_link;
-        form_submit(label => 'Add Link');
+        form_submit(label => 'Add Link', submit => [$add_link]);
     }
 }
 
@@ -163,21 +170,33 @@ sub edit_tags {
     my $changelog = shift;
     my $tags = $changelog->tags;
 
-    while (my $tag = $tags->next) {
-        form {
-            my $delete_tag = $tag->as_delete_action;
-            render_action $delete_tag;
-            form_submit(label => $tag->text);
+    form {
+        if ($tags->count) {
+            ul {
+                while (my $tag = $tags->next) {
+                    li {
+                        my $delete_tag = $tag->as_delete_action;
+                        render_action $delete_tag;
+                        outs $tag->text;
+                        if ($tag->hotkey) {
+                            outs " ";
+                            span {
+                                { class is "hotkey" };
+                                "(hotkey: ".$tag->hotkey.")"
+                            }
+                        }
+                        $delete_tag->button(label => "Delete", class => "inline delete");
+                    }
+                }
+            }
         }
-    }
 
-    form {
         my $add_tag = new_action(
             class     => "CreateTag",
             arguments => { changelog_id => $changelog->id }
         );
         render_action $add_tag;
-        form_submit(label => 'Add Tag');
+        form_submit(label => 'Add Tag', submit => [$add_tag]);
     }
 }
 

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



More information about the Bps-public-commit mailing list