Diff
Not logged in

Differences From:

File src/info.c part of check-in [09c4adeb6f] - Rework the tag system so that propagation to children is a property of each tag and does not depend on the tag name beginning with "br". Older tag artifacts might not work. The database will need to be rebuilt after upgrading to this version. by drh on 2007-09-22 23:41:29. [view]

To:

File src/info.c part of check-in [cfc7984ede] - Styled the vinfo page by jnc on 2007-09-25 20:21:27. Also file src/info.c part of check-in [16551da2e3] - Merge the vinfo CSS patches. by drh on 2007-09-25 20:39:14. [view]

@@ -134,9 +134,9 @@
     const char *zCom = db_column_text(&q, 4);
     cnt++;
     if( cnt==1 ){
       if( zTitle ){
-        @ <h2>%s(zTitle)</h2>
+        @ <div class="section-title">%s(zTitle)</div>
       }
       @ <ul>
     }
     @ <li>
@@ -185,9 +185,9 @@
     const char *zCom = db_column_text(&q, 4);
     cnt++;
     if( cnt==1 ){
       if( zTitle ){
-        @ <h2>%s(zTitle)</h2>
+        @ <div class="section-title">%s(zTitle)</div>
       }
       @ <ul>
     }
     @ <li>
@@ -225,9 +225,9 @@
     const char *zUser = db_column_text(&q, 2);
     const char *zCom = db_column_text(&q, 3);
     cnt++;
     if( cnt==1 ){
-      @ <h2>Leaves</h2>
+      @ <div class="section-title">Leaves</div>
       @ <ul>
     }
     @ <li>
     hyperlink_to_uuid(zUuid);
@@ -261,9 +261,9 @@
     const char *zDate = db_column_text(&q, 5);
     int tagtype = db_column_int(&q, 6);
     cnt++;
     if( cnt==1 ){
-      @ <h2>Tags And Properties</h2>
+      @ <div class="section-title">Tags And Properties</div>
       @ <ul>
     }
     @ <li>
     @ <b>%h(zTagname)</b>
@@ -301,11 +301,11 @@
   int isLeaf;
 
   login_check_credentials();
   if( !g.okHistory ){ login_needed(); return; }
-  style_header("Version Information");
   rid = name_to_rid(g.zExtra);
   if( rid==0 ){
+    style_header("Version Information Error");
     @ No such object: %h(g.argv[2])
     style_footer();
     return;
   }
@@ -318,24 +318,35 @@
      rid, rid
   );
   if( db_step(&q)==SQLITE_ROW ){
     const char *zUuid = db_column_text(&q, 0);
-    @ <h2>Version %s(zUuid)</h2>
-    @ <ul>
-    @ <li><b>Date:</b> %s(db_column_text(&q, 1))</li>
-    @ <li><b>Original&nbsp;User:</b> %s(db_column_text(&q, 2))</li>
-    @ <li><b>Original&nbsp;Comment:</b> %s(db_column_text(&q, 3))</li>
-    @ <li><a href="%s(g.zBaseURL)/vdiff/%d(rid)">diff</a></li>
-    @ <li><a href="%s(g.zBaseURL)/zip/%s(zUuid).zip">ZIP archive</a></li>
-    @ <li><a href="%s(g.zBaseURL)/fview/%d(rid)">manifest</a></li>
+    char *zTitle = mprintf("Version: [%.10s]", zUuid);
+    style_header(zTitle);
+    free(zTitle);
+    /*@ <h2>Version %s(zUuid)</h2>*/
+    @ <div class="section-title">Overview</div>
+    @ <p><table class="label-value">
+    @ <tr><th>Version:</th><td>%s(zUuid)</td></tr>
+    @ <tr><th>Date:</th><td>%s(db_column_text(&q, 1))</td></tr>
     if( g.okSetup ){
-      @ <li><b>Record ID:</b> %d(rid)</li>
+      @ <tr><th>Record ID:</th><td>%d(rid)</td></tr>
     }
-    @ </ul>
+    @ <tr><th>Original&nbsp;User:</th><td>%s(db_column_text(&q, 2))</td></tr>
+    @ <tr><th>Original&nbsp;Comment:</th><td>%s(db_column_text(&q, 3))</td></tr>
+    @ <tr><th>Commands:</th>
+    @   <td>
+    @     <a href="%s(g.zBaseURL)/vdiff/%d(rid)">diff</a>
+    @     | <a href="%s(g.zBaseURL)/zip/%s(zUuid).zip">ZIP archive</a>
+    @     | <a href="%s(g.zBaseURL)/fview/%d(rid)">manifest</a>
+    @   </td>
+    @ </tr>
+    @ </table></p>
+  }else{
+    style_header("Version Information");
   }
   db_finalize(&q);
   showTags(rid);
-  @ <p><h2>Changes:</h2>
+  @ <div class="section-title">Changes</div>
   @ <ul>
   db_prepare(&q,
      "SELECT name, pid, fid"
      "  FROM mlink, filename"