Overview
SHA1 Hash: | cfc7984edead9fa6c1adfb4c9f4c6f868d1e2c95 |
---|---|
Date: | 2007-09-25 20:21:27 |
User: | jnc |
Comment: | Styled the vinfo page |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/info.c from [ce5dc953e1] to [15b63940c8].
@@ -133,11 +133,11 @@ const char *zUser = db_column_text(&q, 3); 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> hyperlink_to_uuid(zUuid); @@ -184,11 +184,11 @@ const char *zUser = db_column_text(&q, 3); 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> hyperlink_to_uuid(zUuid); @@ -224,11 +224,11 @@ const char *zDate = db_column_text(&q, 1); 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); @ %s(zCom) (by %s(zUser) on %s(zDate)) @@ -260,11 +260,11 @@ const char *zValue = db_column_text(&q, 4); 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> if( zValue ){ @@ -300,13 +300,13 @@ int rid; 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; } isLeaf = !db_exists("SELECT 1 FROM plink WHERE pid=%d", rid); @@ -317,26 +317,37 @@ " AND event.objid=%d", 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 User:</b> %s(db_column_text(&q, 2))</li> - @ <li><b>Original 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 User:</th><td>%s(db_column_text(&q, 2))</td></tr> + @ <tr><th>Original 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" " WHERE mid=%d"
Modified src/style.c from [7236258d23] to [687033cd14].
@@ -295,10 +295,22 @@ @ margin-top: 12px; @ padding: 5px 10px 5px 10px; @ text-align: right; @ background-color: #414f84; @ color: white; + @ } + @ table.label-value th { + @ text-align: right; + @ vertical-align: top; + @ } + @ div.section-title { + @ margin-bottom: 0px; + @ padding: 1px 1px 1px 1px; + @ font-size: 1.2em; + @ font-weight: bold; + @ background-color: #6a7ec7; + @ color: #0a1e67; @ } } } /*