VirtualBox

Changeset 65044 in vbox for trunk


Ignore:
Timestamp:
Dec 31, 2016 4:11:51 AM (8 years ago)
Author:
vboxsync
Message:

testmanager: Tweaking the new changlog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuiadminsystemchangelog.py

    r65043 r65044  
    241241        Overridden parent method.
    242242        """
    243         oEntry = self._aoEntries[iEntry];
     243        oEntry    = self._aoEntries[iEntry];
     244        sRowClass = 'tmodd' if (iEntry + 1) & 1 else 'tmeven';
     245        sHtml     = u'';
    244246
    245247        #
     
    251253        else:
    252254            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:]
    254258
    255259        #
     
    354358        # Do the formatting.
    355359        #
    356         sRowClass = 'tmodd' if (iEntry + 1) & 1 else 'tmeven';
    357360
    358361        if aoChanges is not None and len(aoChanges) > 0:
     
    366369            cAttribsChanged = -1;
    367370
    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                  );
    379382
    380383        if oChangeEntry is not None:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette