- Timestamp:
- Dec 31, 2016 4:11:51 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuiadminsystemchangelog.py
r65043 r65044 241 241 Overridden parent method. 242 242 """ 243 oEntry = self._aoEntries[iEntry]; 243 oEntry = self._aoEntries[iEntry]; 244 sRowClass = 'tmodd' if (iEntry + 1) & 1 else 'tmeven'; 245 sHtml = u''; 244 246 245 247 # … … 251 253 else: 252 254 self._sPrevDate = sDate[:10]; 253 sDate = '<b>' + sDate[:10] + '</b><br>' + sDate[11:]; 255 sHtml += ' <tr class="%s" align="left"><td>%s</td><td colspan="6"></td></tr>\n' % (sRowClass, sDate[:10],); 256 #sDate = '<b>' + sDate[:10] + '</b><br>' + sDate[11:]; 257 sDate = sDate[11:] 254 258 255 259 # … … 354 358 # Do the formatting. 355 359 # 356 sRowClass = 'tmodd' if (iEntry + 1) & 1 else 'tmeven';357 360 358 361 if aoChanges is not None and len(aoChanges) > 0: … … 366 369 cAttribsChanged = -1; 367 370 368 sHtml = u' <tr class="%s">\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' \372 u' </tr>\n' \373 % ( sRowClass,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),377 oDetails.toHtml() if isinstance(oDetails, WuiHtmlBase) else oDetails,378 );371 sHtml += u' <tr class="%s">\n' \ 372 u' <td rowspan="%d" align="center" >%s</td>\n' \ 373 u' <td rowspan="%d" align="center" >%s</td>\n' \ 374 u' <td colspan="5" class="%s%s">%s %s</td>\n' \ 375 u' </tr>\n' \ 376 % ( sRowClass, 377 1 + cAttribsChanged + 1, sDate, 378 1 + cAttribsChanged + 1, webutils.escapeElem(oEntry.oAuthor.sUsername if oEntry.oAuthor is not None else ''), 379 sRowClass, ' tmsyschlogevent' if oChangeEntry is not None else '', webutils.escapeElem(sEvent), 380 oDetails.toHtml() if isinstance(oDetails, WuiHtmlBase) else oDetails, 381 ); 379 382 380 383 if oChangeEntry is not None:
Note:
See TracChangeset
for help on using the changeset viewer.