[Bps-public-commit] App-Changeloggr branch, master, updated. 781c16ca965b1957cee40e82dc824d8466bb1e57

Alex M Vandiver alexmv at bestpractical.com
Thu Apr 2 16:54:46 EDT 2009


The branch, master has been updated
       via  781c16ca965b1957cee40e82dc824d8466bb1e57 (commit)
       via  6f6bdb285b5a729d87085f81659fb9c21b1de526 (commit)
       via  c662aef2babb94541461bb9b36704887c3fb0ae4 (commit)
      from  bbf6cacbfe3599cfee314e2613dd99d8413ecd06 (commit)

Summary of changes:
 etc/config.yml               |    2 +
 lib/App/Changeloggr/View.pm  |    1 +
 share/web/static/css/app.css |   53 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 56 insertions(+), 0 deletions(-)
 create mode 100644 share/web/static/css/app.css

- Log -----------------------------------------------------------------
commit c662aef2babb94541461bb9b36704887c3fb0ae4
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Thu Apr 2 16:27:54 2009 -0400

    Turn off AdminMode, and explicitly enable DevelMode

diff --git a/etc/config.yml b/etc/config.yml
index 3cdfc59..893a4f4 100644
--- a/etc/config.yml
+++ b/etc/config.yml
@@ -1,5 +1,6 @@
 --- 
 framework: 
+  AdminMode: 0
   ApplicationClass: App::Changeloggr
   ApplicationName: App-Changeloggr
   ApplicationUUID: DFE97C64-0462-11DE-B67F-355F32960180
@@ -14,6 +15,7 @@ framework:
     RecordBaseClass: Jifty::DBI::Record::Cachable
     User: ''
     Version: 0.0.1
+  DevelMode: 1
   L10N: 
     PoDir: share/po
   LogLevel: INFO

commit 6f6bdb285b5a729d87085f81659fb9c21b1de526
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Thu Apr 2 16:28:18 2009 -0400

    Hook hotkeys up to key_bindings on buttons

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index 037ef71..5f4d66e 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -152,6 +152,7 @@ sub show_vote_form {
             while (my $valid_tag = $valid_tags->next) {
                 $vote->button(
                     label => $valid_tag->text,
+                    key_binding => $valid_tag->hotkey,
                     onclick => { submit => $vote, refresh_self => 1 },
                     arguments => { tag => $valid_tag->text },
                 );

commit 781c16ca965b1957cee40e82dc824d8466bb1e57
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Thu Apr 2 16:54:42 2009 -0400

    Short stylesheet pulled from Pushmi

diff --git a/share/web/static/css/app.css b/share/web/static/css/app.css
new file mode 100644
index 0000000..612438a
--- /dev/null
+++ b/share/web/static/css/app.css
@@ -0,0 +1,53 @@
+body {
+  margin:  0;
+  padding: 0;
+  background: #112;
+  color:      #000;
+}
+
+#content {
+  margin-left: auto;
+  margin-right: auto;
+  background: #112;
+  color: #ddd;
+  max-width: 500px;
+}
+
+#content {
+  margin-top: 6em;
+}
+
+h1 {
+  margin: 0;
+  padding: 0;
+}
+
+a, a:link, a:visited {
+  color: #ddd;
+  text-decoration: underline;
+  font-weight: normal;
+}
+
+a:hover {
+  color: #fff;
+  text-decoration: none;
+  font-weight: normal;
+}
+
+input.button {
+  border: 1px solid #334;
+  background: #223;
+  color: #ddd;
+  -moz-border-radius: 5px; -webkit-border-radius: 5px;
+  padding: 0.5em;
+}
+
+.error.text, .error.password {
+  background-color: #100;
+  -moz-border-radius: 5px; -webkit-border-radius: 5px;
+  border: 1px solid #c00;
+  padding: .5em;
+  padding-left: 2em;
+  background-position: 10px center;
+  font-weight: bold;
+}

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



More information about the Bps-public-commit mailing list