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

jesse jesse at bestpractical.com
Mon Feb 2 01:17:43 EST 2009


The branch, master has been updated
       via  e9fcb48e4085fb20c2ef81c279e2f97fc2cbbbe6 (commit)
      from  892cf4bb9e842c7eeea51d4428c176920af380a8 (commit)

Summary of changes:
 lib/App/SD/Server/View.pm |   79 ++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 71 insertions(+), 8 deletions(-)

- Log -----------------------------------------------------------------
commit e9fcb48e4085fb20c2ef81c279e2f97fc2cbbbe6
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Mon Feb 2 01:17:02 2009 -0500

    Starting to mess with the new ticket update layout stevan suggested

diff --git a/lib/App/SD/Server/View.pm b/lib/App/SD/Server/View.pm
index f8d7905..db80b1e 100644
--- a/lib/App/SD/Server/View.pm
+++ b/lib/App/SD/Server/View.pm
@@ -300,6 +300,55 @@ div.widget {
     border-top: none;
 }
 
+div.widget.status, div.widget.component, div.widget.milestone {
+    display: inline-block;
+    padding-top: 0.5em;
+    padding-bottom: 1.75em;
+    margin: 0;
+    padding-left: 0.5em;
+    padding-right: 1em;
+    margin-right: -0.3em;
+    width: 29%;
+}
+
+div.widget.status {
+    margin-left: 1em;
+}
+
+div.widget.status label, div.widget.component label, div.widget.milestone label
+{
+display: block;
+text-align: left;
+padding-left: 0.5em;
+padding-bottom:0.25em;
+}
+
+
+
+div.widget.status input, 
+div.widget.component input, 
+div.widget.milestone input,
+div.widget.status .value, 
+div.widget.component .value, 
+div.widget.milestone .value {
+
+width: 100%;
+
+}
+
+.other-props { 
+    padding-top: 0em;
+
+}
+
+.other-props .widget label,
+.other-props .widget .label {
+    width: 4em;
+}
+.other-props .widget {
+    width: 40%;
+}
+
 ul.page-nav {
     position: absolute;
     top: 0;
@@ -376,11 +425,13 @@ ul.page-nav ul li:hover {
 
 }
 
-.ticket-props>:nth-child(odd), table.tablesorter tbody tr:nth-child(odd) td {
+ table.tablesorter tbody tr:nth-child(odd) td {
     background: #eee;
 }
 
 
+
+
 table.tablesorter tr:hover td,
 table.tablesorter tr:nth-child(odd):hover td {
     background: #ffc;
@@ -640,14 +691,19 @@ template edit_ticket => page {
                     widget( function => $f, prop => $prop, autocomplete => 0 ) };
                     }
 
-
+        for my $prop (qw(status component milestone)){
+            div { { class is "widget $prop"}; 
+                    widget( function => $f, prop => $prop ) };
+        }
+    
+        div { class is 'other-props';
         for my $prop (@BASIC_PROPS) {
-            next if $prop eq 'created';
+            next if $prop =~ /^(?:status|component|milestone|created)$/;
 
             div { { class is "widget $prop"}; 
                     widget( function => $f, prop => $prop ) };
         }
-
+        }
         };
         div { class is 'submit';
         input { attr { value => 'Save', type => 'submit' } };
@@ -701,13 +757,20 @@ template new_ticket => page {'Create a new ticket'} content {
             };
         }
 
+        for my $prop (qw(status component milestone)){
+            div { {class is 'widget '.$prop};
+                 widget( function => $f, prop => $prop ) };
+
+        }
+
+        div { class is 'other-props';
 
         for my $prop (@BASIC_PROPS) {
-            next if $prop eq 'created';
+            next if $prop =~ /^(?:status|component|milestone|created)$/;
             div { {class is 'widget '.$prop};
                  widget( function => $f, prop => $prop ) };
         }
-
+        }
         };
 
         div { class is 'submit';
@@ -917,7 +980,7 @@ private template 'ticket_basics' => sub {
     my $ticket = shift;
         my %props = %{$ticket->get_props};
         div { { class is 'ticket-props'};
-            div { class is 'widget'; 
+            div { class is 'widget uuid'; 
                 label { 'UUID' };
             div { { class is 'value uuid'}; $ticket->uuid; } 
             };
@@ -925,7 +988,7 @@ private template 'ticket_basics' => sub {
             next unless defined $props{$key}; 
             next if ($key eq 'summary');
             next if ($key =~ /.{8}-.{4}-.{4}-.{12}-id/);
-            div { class is 'widget';
+            div { class is 'widget '.$key;
                 label {$key};
                 div { { class is 'value ' . $key }; $props{$key}; }
             };

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



More information about the Bps-public-commit mailing list