- Timestamp:
- Dec 31, 2016 3:58:13 AM (8 years ago)
- Location:
- trunk/src/VBox/ValidationKit/testmanager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/htdocs/css/common.css
r65041 r65042 581 581 582 582 .tmsyschlogattr { 583 font-size: 0.64em; 584 } 585 586 .tmsyschlogspacer, .tmsyschlogspacerfinal { 587 width: 3.14159em; 588 border-top: 0px solid green !important; 589 border-left: 0px solid green !important; 590 } 583 font-size: 0.80em; 584 } 585 591 586 .tmsyschlogspacer { 587 width: 1.4em; 592 588 border-bottom: 0px solid green !important; 589 } 590 591 .tmsyschlogevent { 592 border-bottom: 0px solid green !important; 593 } 594 595 .tmsyschlogspacerrowabove { 596 height: 0.22em; 597 } 598 599 .tmsyschlogspacerrowbelow { 600 height: 0.80em; 593 601 } 594 602 -
trunk/src/VBox/ValidationKit/testmanager/webui/wuiadminsystemchangelog.py
r65041 r65042 364 364 else: 365 365 oChangeEntry = None; 366 cAttribsChanged = 1;366 cAttribsChanged = -1; 367 367 368 368 sHtml = u' <tr class="%s">\n' \ 369 u' <td rowspan="%d">%s</td>\n' \ 370 u' <td rowspan="%d">%s</td>\n' \ 371 u' <td rowspanx="%d" colspan="4">%s<!--</td>\n' \ 372 u' <td colspan="3">--> %s</td>\n' \ 369 u' <td rowspan="%d" align="center" >%s</td>\n' \ 370 u' <td rowspan="%d" align="center" >%s</td>\n' \ 371 u' <td colspan="5" class="%s%s">%s %s</td>\n' \ 373 372 u' </tr>\n' \ 374 373 % ( sRowClass, 375 cAttribsChanged, sDate,376 cAttribsChanged, webutils.escapeElem(oEntry.oAuthor.sUsername if oEntry.oAuthor is not None else ''),377 cAttribsChanged, webutils.escapeElem(sEvent),374 1 + cAttribsChanged + 1, sDate, 375 1 + cAttribsChanged + 1, webutils.escapeElem(oEntry.oAuthor.sUsername if oEntry.oAuthor is not None else ''), 376 sRowClass, ' tmsyschlogevent' if oChangeEntry is not None else '', webutils.escapeElem(sEvent), 378 377 oDetails.toHtml() if isinstance(oDetails, WuiHtmlBase) else oDetails, 379 378 ); 380 379 381 380 if oChangeEntry is not None: 381 sHtml += u' <tr class="%s tmsyschlogspacerrowabove">\n' \ 382 u' <td xrowspan="%d" style="border-right: 0px; border-bottom: 0px;"></td>\n' \ 383 u' <td colspan="3" style="border-right: 0px;"></td>\n' \ 384 u' <td rowspan="%d"></td>\n' \ 385 u' </tr>\n' \ 386 % (sRowClass, cAttribsChanged + 1, cAttribsChanged + 1); 382 387 for j, oChange in enumerate(oChangeEntry.aoChanges): 383 sHtml += ' <tr class="%s%s tmsyschlogattr"><td class="%s tmsyschlogspacer%s"></td>' \388 sHtml += u' <tr class="%s%s tmsyschlogattr%s">\n' \ 384 389 % ( sRowClass, 'odd' if j & 1 else 'even', 385 sRowClass, 'final' if j + 1 == len(oChangeEntry.aoChanges) else ''); 390 ' tmsyschlogattrfinal' if j + 1 == len(oChangeEntry.aoChanges) else '',); 391 if j == 0: 392 sHtml += u' <td class="%s tmsyschlogspacer" rowspan="%d"></td>\n' % (sRowClass, cAttribsChanged - 1,); 393 386 394 if isinstance(oChange, AttributeChangeEntryPre): 387 sHtml += '<td><div class="tdpre"><pre>%s</pre></div></td>' \ 388 '<td><div class="tdpre"><pre>%s</pre></div></td></tr>\n' \ 395 sHtml += u' <td>%s</td>\n' \ 396 u' <td><div class="tdpre"><pre>%s</pre></div></td>\n' \ 397 u' <td><div class="tdpre"><pre>%s</pre></div></td>\n' \ 389 398 % ( webutils.escapeElem(oChange.sAttr), 390 399 webutils.escapeElem(oChange.sOldText), 391 400 webutils.escapeElem(oChange.sNewText), ); 392 401 else: 393 sHtml += ' <td>%s</td><td>%s</td><td>%s</td></tr>\n' \ 402 sHtml += u' <td>%s</td>\n' \ 403 u' <td>%s</td>\n' \ 404 u' <td>%s</td>\n' \ 394 405 % ( webutils.escapeElem(oChange.sAttr), 395 406 webutils.escapeElem(oChange.sOldText), 396 407 webutils.escapeElem(oChange.sNewText), ); 397 sHtml += u' </tr>\n' 408 sHtml += u' </tr>\n'; 409 410 if oChangeEntry is not None: 411 sHtml += u' <tr class="%s tmsyschlogspacerrowbelow "><td colspan="5"></td></tr>\n\n' % (sRowClass,); 398 412 return sHtml; 399 413 … … 408 422 u' <th rowspan="2">When</th>\n' \ 409 423 u' <th rowspan="2">Who</th>\n' \ 410 u' <th colspan=" 4">Event</th>\n' \424 u' <th colspan="5">Event</th>\n' \ 411 425 u' </tr>\n' \ 412 426 u' <tr>\n' \ 413 u' <th ></th>\n' \427 u' <th style="border-right: 0px;"></th>\n' \ 414 428 u' <th>Attribute</th>\n' \ 415 429 u' <th>Old</th>\n' \ 416 u' <th>New</th>\n' \ 430 u' <th style="border-right: 0px;">New</th>\n' \ 431 u' <th></th>\n' \ 417 432 u' </tr>\n' \ 418 433 u'</thead>\n';
Note:
See TracChangeset
for help on using the changeset viewer.