Stripe the tables and semantify the pages.
Dan Brook [Thu, 12 Nov 2009 14:02:55 +0000 (14:02 +0000)]
gitalist.conf
root/_diff_tree.tt2
root/_heads.tt2
root/_shortlog.tt2
root/_tree.tt2
root/log.tt2
root/static/css/blueprint/screen.css
root/static/css/site.css

index a3f08fc..9164bf4 100644 (file)
@@ -31,9 +31,9 @@ favicon /git-favicon.png
 
 # $feature{'blame'}{'default'} = [1];
 <feature>
-       <blame>
-               default = 1
-       </blame>
+  <blame>
+    default = 1
+  </blame>
 </feature>
 
 # fs traversing limit for getting project list
@@ -42,5 +42,5 @@ project_maxdepth 2007
 
 <paging>
   log = 50
-  summary = 16
+  summary = 17
 </paging>
index 8f70e2f..2057772 100644 (file)
@@ -1,4 +1,4 @@
-<table class='diff-tree'>
+<table class='diff-tree listing'>
  <thead>
   <tr>
    <th>file</th>
@@ -16,7 +16,7 @@
  <tbody>
   [% FOREACH line IN diff_tree -%]
   <tr>
-   <td class='filename'>
+   <td class='file-name'>
     [% line.file %]
    </td>
    <td class='status'>
index 0a1c45b..c886711 100644 (file)
@@ -1,4 +1,4 @@
-<table class='heads'>
+<table class='heads listing'>
  <thead>
   <tr>
    <th>HEAD</th>
@@ -19,8 +19,8 @@
  <tbody>
  [% FOREACH head IN heads %]
   <tr>
-   <td>[% INCLUDE '_chroma_hash.tt2' sha1 = head.sha1.substr(0,7) %]</td>
-   <td class='time-since'>[% time_since(head.last_change) %]</td>
+   <td class='sha1' title='[% head.sha1 %]'>[% INCLUDE '_chroma_hash.tt2' sha1 = head.sha1.substr(0,7) %]</td>
+   <td class='time-since' title='[% head.last_change %]'>[% time_since(head.last_change) %]</td>
    <td class='head[% head.sha1 == HEAD ? ' current' : '' %]'>[% head.name %]</td>
    <td class='action-list'>
      <a href="[% c.uri_for("shortlog", {h='refs/heads/' _ head.name}) %]">shortlog</a>
index 2c1dde1..19caaf1 100644 (file)
@@ -1,4 +1,4 @@
-<table class='shortlog'>
+<table class='shortlog listing'>
  <thead>
   <tr>
    <th>sha1</th>
@@ -22,8 +22,8 @@
  <tbody>
  [% FOREACH line IN log_lines %]
   <tr>
-   <td class='sha1'>[% INCLUDE '_chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
-   <td class='time-since'>[% time_since(line.authored_time) %]</td>
+   <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE '_chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
+   <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
    <td class='author'>[% line.author.name | html %]</td>
    <td>
      [% short_cmt(line.comment) | html %]
index 58d68d8..d6c8f41 100644 (file)
@@ -1,4 +1,4 @@
-<table>
+<table class='tree listing'>
  <thead>
   <tr>
    <th>mode</th>
@@ -17,9 +17,9 @@
  <tbody>
   [% FOREACH item IN tree_list %]
   <tr>
-   <td>[% item.modestr %]</td>
+   <td class='file-mode'>[% item.modestr %]</td>
    [% theact = item.type == 'tree' ? 'tree' : 'blob' -%]
-   <td class='filename'>
+   <td class='file-name'>
     <a href="[% c.uri_for(theact, {h=item.sha1, hb=commit.sha1, f=(path ? path _ '/' _ item.file : item.file)}) %]">[% item.file %]</a>
    </td>
    <td class='action-list'>
index e8c771b..cc0ff56 100644 (file)
     </div>
     <div class="meta">
      <table class='summary' cellspacing='0' cellpadding='0'>
-      <tr><td>author</td><td>[% line.author.name | html %]</td></tr>
-      <tr><td>authored time</td><td>[% line.authored_time %]</td></tr>
+      <tr><td>author</td><td class='author'>[% line.author.name | html %]</td></tr>
+      <tr><td>authored time</td><td class='time'>[% line.authored_time %]</td></tr>
       [% IF line.author.name != line.committer.name %]
-      <tr><td>committer</td><td>[% line.committer.name | html %]</td></tr>
-      <tr><td>committered time</td><td>[% line.committed_time %]</td></tr>
+      <tr><td>committer</td><td class='author'>[% line.committer.name | html %]</td></tr>
+      <tr><td>committered time</td><td class='time'>[% line.committed_time %]</td></tr>
       [% END %]
      </table>
      <span class="time-since">[% time_since(line.authored_time) %]</span>
index b6c4f12..8d05e3c 100644 (file)
@@ -46,7 +46,7 @@ abbr, acronym {border-bottom:1px dotted #666;}
 address {margin:0 0 1.5em;font-style:italic;}
 del {color:#666;}
 pre {margin:1.5em 0;white-space:pre;}
-pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
+pre, code, tt {font:1.1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
 li ul, li ol {margin:0;}
 ul, ol {margin:0 1.5em 1.5em 0;padding-left:3.333em;}
 ul {list-style-type:disc;}
index fd4b2fc..2553cee 100644 (file)
@@ -15,6 +15,13 @@ tfoot td {
   border-top: solid 1px #777;
 }
 
+.listing tbody tr:nth-child(even) {
+  background-color: #f7f7f7;
+}
+.listing tbody tr:hover {
+  background-color: #fefeaa;
+}
+
 span.chroma-hash {
   font-family: monospace;
   font-size:   1em;
@@ -32,6 +39,20 @@ div.chroma-hash {
   font-family: "Trebuchet MS", "Lucida Grande", serif;
 }
 
+.file-name, .file-mode {
+  font-family: monospace;
+}
+.action-list {
+  font-size: smaller;
+}
+
+.path {
+  border-bottom: solid 1px #ddd;
+  padding: 3px 0;
+  font-weight: bold;
+}
+
+
 /* header */
 #page-header {
   height: 25px;
@@ -90,6 +111,7 @@ table.shortlog tbody td {
 /* /commit page */
 .commit-message {
   font-family: monospace;
+  font-size: 1.2em;
 }
 div.commit-message {
   margin-bottom: 10px;
@@ -106,19 +128,6 @@ pre.commit-message {
   font-family: monospace;
 }
 
-.filename {
-  font-family: monospace;
-}
-.action-list {
-  font-size: smaller;
-}
-
-.path {
-  border-bottom: solid 1px #ddd;
-  padding: 3px 0;
-  font-weight: bold;
-}
-
 /* /heads */
 .heads .head {
   font-weight: bold;
@@ -152,6 +161,11 @@ pre.blob {
   border-bottom: solid 1px green;
 }
 
+/* /commitdiff */
+.diff-patch {
+  font-size: 0.8em;
+}
+
 /* /log */
 #log .entry {
   border: solid 1px grey;
@@ -160,7 +174,7 @@ pre.blob {
 }
 #log .meta {
   border-top: dotted 1px #ddd;
-  color: #755;
+  color: #311;
 }
 #log table.summary {
   width: 33%;
@@ -169,6 +183,7 @@ pre.blob {
 #log .message {
   font-family: monospace;
   font-size: 1.15em;
+  /* XXX Need to enforce find the CSS switch to force the chroma-hash below the message box */
 }
 #log .age {
   float: right;
@@ -176,10 +191,12 @@ pre.blob {
   font-style: italic;
 }
 
-/**
- * from gitweb.css
- * XXX These can be rejigged once gitweb.css has gone away.
- */
+/* /tree */
+table.tree {
+  width: 65%;
+}
+
+/* Formerly of gitweb.css */
 
 span.refs span {
   padding: 0px 4px;