[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. e5f4e9a673a86274d7d16abb744d62d3abafce98

jesse jesse at bestpractical.com
Mon Jan 26 22:29:28 EST 2009


The branch, master has been updated
       via  e5f4e9a673a86274d7d16abb744d62d3abafce98 (commit)
      from  be9dd9d9d756d277d64dd51c49d50c393c77ebb6 (commit)

Summary of changes:
 lib/App/SD/Server/Dispatcher.pm |   17 +++++++++++++----
 lib/App/SD/Server/View.pm       |   20 +++++++++++++++-----
 2 files changed, 28 insertions(+), 9 deletions(-)

- Log -----------------------------------------------------------------
commit e5f4e9a673a86274d7d16abb744d62d3abafce98
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Mon Jan 26 22:29:19 2009 -0500

    style tweaking

diff --git a/lib/App/SD/Server/Dispatcher.pm b/lib/App/SD/Server/Dispatcher.pm
index c92bee9..d7281e1 100644
--- a/lib/App/SD/Server/Dispatcher.pm
+++ b/lib/App/SD/Server/Dispatcher.pm
@@ -14,22 +14,31 @@ on qr'.' => sub {
 
 on qr'.' => sub {
     my $self = shift;
-    my $tickets = $self->server->nav->child( tickets => label => 'Issues', url => '/tickets');
+    my $tickets = $self->server->nav->child( tickets => label => 'Tickets', url => '/');
     $tickets->child( go => label => '<form method="GET" action="/ticket"><a href="#">Show ticket # <input type=text name=id size=3></a></form>', escape_label => 0);
 
 
     my $milestones = $tickets->child( milestones => label => 'Milestones', url => '/milestones');
     my $items = $self->server->app_handle->setting( label => 'milestones' )->get();
     foreach my $item (@$items) {
-        $milestones->child( $item => label => $item, url => '/milestone/'.$item);
+        my $m = $milestones->child( $item => label => $item, url => '/milestone/'.$item);
+        #$m->child('all' => label => 'All', url => '/milestone/'.$item.'/all');
+        #$m->child('mine' => label => 'Mine', url => '/milestone/'.$item.'/mine');
+        #$m->child('closed' => label => 'Closed', url => '/milestone/'.$item.'/closed');
     }
+        $milestones->child( none => label => 'None', url => '/no_milestone');
     
     my $components = $tickets->child( components => label => 'Components', url => '/components');
     my $items = $self->server->app_handle->setting( label => 'components' )->get();
     foreach my $item (@$items) {
-        $components->child( $item => label => $item, url => '/component/'.$item);
-    }
+        my $c= $components->child( $item => label => $item, url => '/component/'.$item);
+        #$c->child('all' => label => 'All', url => '/component/'.$item.'/all');
+        #$c->child('mine' => label => 'Mine', url => '/component/'.$item.'/mine');
+        #$c->child('closed' => label => 'Closed', url => '/component/'.$item.'/closed');
+
 
+    }
+    $components->child('None' => label => 'None', url => '/no_component');
 
     $self->server->nav->child( create => label => 'New ticket', url => '/ticket/new');
     $self->server->nav->child( home => label => 'Home', url => '/');
diff --git a/lib/App/SD/Server/View.pm b/lib/App/SD/Server/View.pm
index 66500f4..6355d9c 100644
--- a/lib/App/SD/Server/View.pm
+++ b/lib/App/SD/Server/View.pm
@@ -87,8 +87,14 @@ ul.actions li {
     background: #ddd;
 } 
 
+ul.actions li:first-child {
+    -moz-border-radius-topleft: 0.25em;
+    -webkit-border-top-left-radius: 0.25em;
+}
+
 ul.actions li:last-child {
-    border: none;
+    -moz-border-radius-topright: 0.25em;
+    -webkit-border-top-right-radius: 0.25em;
 }
 
 
@@ -274,9 +280,11 @@ ul.page-nav a:hover, ul.page-nav a:active {
     background: #ccc;
 }
 
+
+ul.page-nav { background: #fff;}
+
 ul.page-nav {
     padding: 0;
-    background: #601;
 }
 
 ul.page-nav a {
@@ -523,7 +531,8 @@ template edit_ticket => page {
             order => 1,
             name => 'edit-ticket'
         );
-        div { class is 'ticket-props';
+
+        div {  { class is 'ticket-props'};
         for my $prop ('summary') { 
             div { { class is "widget $prop"}; 
                     widget( function => $f, prop => $prop, autocomplete => 0 ) };
@@ -537,7 +546,7 @@ template edit_ticket => page {
                     widget( function => $f, prop => $prop ) };
         }
 
-    };
+        };
         div { class is 'submit';
         input { attr { label => 'save', type => 'submit' } };
         };
@@ -582,6 +591,7 @@ template new_ticket => page {'Create a new ticket'} content {
             order => 1,
             name => 'create-ticket'
         );
+        div { class is 'ticket-props';
         for my $prop ('summary') {
             div {
                 { class is "widget $prop" };
@@ -596,7 +606,7 @@ template new_ticket => page {'Create a new ticket'} content {
                  widget( function => $f, prop => $prop ) };
         }
 
-
+        };
 
         div { class is 'submit';
         input { attr { label => 'save', type => 'submit' } };

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



More information about the Bps-public-commit mailing list