| | @@ -133,11 +133,11 @@ |
| 133 | 133 | const char *zUser = db_column_text(&q, 3); |
| 134 | 134 | const char *zCom = db_column_text(&q, 4); |
| 135 | 135 | cnt++; |
| 136 | 136 | if( cnt==1 ){ |
| 137 | 137 | if( zTitle ){ |
| 138 | | - @ <h2>%s(zTitle)</h2> |
| 138 | + @ <div class="section-title">%s(zTitle)</div> |
| 139 | 139 | } |
| 140 | 140 | @ <ul> |
| 141 | 141 | } |
| 142 | 142 | @ <li> |
| 143 | 143 | hyperlink_to_uuid(zUuid); |
| | @@ -184,11 +184,11 @@ |
| 184 | 184 | const char *zUser = db_column_text(&q, 3); |
| 185 | 185 | const char *zCom = db_column_text(&q, 4); |
| 186 | 186 | cnt++; |
| 187 | 187 | if( cnt==1 ){ |
| 188 | 188 | if( zTitle ){ |
| 189 | | - @ <h2>%s(zTitle)</h2> |
| 189 | + @ <div class="section-title">%s(zTitle)</div> |
| 190 | 190 | } |
| 191 | 191 | @ <ul> |
| 192 | 192 | } |
| 193 | 193 | @ <li> |
| 194 | 194 | hyperlink_to_uuid(zUuid); |
| | @@ -224,11 +224,11 @@ |
| 224 | 224 | const char *zDate = db_column_text(&q, 1); |
| 225 | 225 | const char *zUser = db_column_text(&q, 2); |
| 226 | 226 | const char *zCom = db_column_text(&q, 3); |
| 227 | 227 | cnt++; |
| 228 | 228 | if( cnt==1 ){ |
| 229 | | - @ <h2>Leaves</h2> |
| 229 | + @ <div class="section-title">Leaves</div> |
| 230 | 230 | @ <ul> |
| 231 | 231 | } |
| 232 | 232 | @ <li> |
| 233 | 233 | hyperlink_to_uuid(zUuid); |
| 234 | 234 | @ %s(zCom) (by %s(zUser) on %s(zDate)) |
| | @@ -260,11 +260,11 @@ |
| 260 | 260 | const char *zValue = db_column_text(&q, 4); |
| 261 | 261 | const char *zDate = db_column_text(&q, 5); |
| 262 | 262 | int tagtype = db_column_int(&q, 6); |
| 263 | 263 | cnt++; |
| 264 | 264 | if( cnt==1 ){ |
| 265 | | - @ <h2>Tags And Properties</h2> |
| 265 | + @ <div class="section-title">Tags And Properties</div> |
| 266 | 266 | @ <ul> |
| 267 | 267 | } |
| 268 | 268 | @ <li> |
| 269 | 269 | @ <b>%h(zTagname)</b> |
| 270 | 270 | if( zValue ){ |
| | @@ -300,13 +300,13 @@ |
| 300 | 300 | int rid; |
| 301 | 301 | int isLeaf; |
| 302 | 302 | |
| 303 | 303 | login_check_credentials(); |
| 304 | 304 | if( !g.okHistory ){ login_needed(); return; } |
| 305 | | - style_header("Version Information"); |
| 306 | 305 | rid = name_to_rid(g.zExtra); |
| 307 | 306 | if( rid==0 ){ |
| 307 | + style_header("Version Information Error"); |
| 308 | 308 | @ No such object: %h(g.argv[2]) |
| 309 | 309 | style_footer(); |
| 310 | 310 | return; |
| 311 | 311 | } |
| 312 | 312 | isLeaf = !db_exists("SELECT 1 FROM plink WHERE pid=%d", rid); |
| | @@ -317,26 +317,37 @@ |
| 317 | 317 | " AND event.objid=%d", |
| 318 | 318 | rid, rid |
| 319 | 319 | ); |
| 320 | 320 | if( db_step(&q)==SQLITE_ROW ){ |
| 321 | 321 | const char *zUuid = db_column_text(&q, 0); |
| 322 | | - @ <h2>Version %s(zUuid)</h2> |
| 323 | | - @ <ul> |
| 324 | | - @ <li><b>Date:</b> %s(db_column_text(&q, 1))</li> |
| 325 | | - @ <li><b>Original User:</b> %s(db_column_text(&q, 2))</li> |
| 326 | | - @ <li><b>Original Comment:</b> %s(db_column_text(&q, 3))</li> |
| 327 | | - @ <li><a href="%s(g.zBaseURL)/vdiff/%d(rid)">diff</a></li> |
| 328 | | - @ <li><a href="%s(g.zBaseURL)/zip/%s(zUuid).zip">ZIP archive</a></li> |
| 329 | | - @ <li><a href="%s(g.zBaseURL)/fview/%d(rid)">manifest</a></li> |
| 322 | + char *zTitle = mprintf("Version: [%.10s]", zUuid); |
| 323 | + style_header(zTitle); |
| 324 | + free(zTitle); |
| 325 | + /*@ <h2>Version %s(zUuid)</h2>*/ |
| 326 | + @ <div class="section-title">Overview</div> |
| 327 | + @ <p><table class="label-value"> |
| 328 | + @ <tr><th>Version:</th><td>%s(zUuid)</td></tr> |
| 329 | + @ <tr><th>Date:</th><td>%s(db_column_text(&q, 1))</td></tr> |
| 330 | 330 | if( g.okSetup ){ |
| 331 | | - @ <li><b>Record ID:</b> %d(rid)</li> |
| 331 | + @ <tr><th>Record ID:</th><td>%d(rid)</td></tr> |
| 332 | 332 | } |
| 333 | | - @ </ul> |
| 333 | + @ <tr><th>Original User:</th><td>%s(db_column_text(&q, 2))</td></tr> |
| 334 | + @ <tr><th>Original Comment:</th><td>%s(db_column_text(&q, 3))</td></tr> |
| 335 | + @ <tr><th>Commands:</th> |
| 336 | + @ <td> |
| 337 | + @ <a href="%s(g.zBaseURL)/vdiff/%d(rid)">diff</a> |
| 338 | + @ | <a href="%s(g.zBaseURL)/zip/%s(zUuid).zip">ZIP archive</a> |
| 339 | + @ | <a href="%s(g.zBaseURL)/fview/%d(rid)">manifest</a> |
| 340 | + @ </td> |
| 341 | + @ </tr> |
| 342 | + @ </table></p> |
| 343 | + }else{ |
| 344 | + style_header("Version Information"); |
| 334 | 345 | } |
| 335 | 346 | db_finalize(&q); |
| 336 | 347 | showTags(rid); |
| 337 | | - @ <p><h2>Changes:</h2> |
| 348 | + @ <div class="section-title">Changes</div> |
| 338 | 349 | @ <ul> |
| 339 | 350 | db_prepare(&q, |
| 340 | 351 | "SELECT name, pid, fid" |
| 341 | 352 | " FROM mlink, filename" |
| 342 | 353 | " WHERE mid=%d" |
| 343 | 354 | |