VirtualBox

Changeset 83361 in vbox


Ignore:
Timestamp:
Mar 21, 2020 5:03:54 PM (5 years ago)
Author:
vboxsync
Message:

TestManager/wui: Added separator between scheduling queue blocks.

Location:
trunk/src/VBox/ValidationKit/testmanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/htdocs/css/common.css

    r83360 r83361  
    669669}
    670670
     671tr.tmseparator td {
     672    border-bottom:      2px solid black;
     673    font-size:          0;
     674    padding-top:        0;
     675    padding-bottom:     0;
     676}
     677
     678
    671679
    672680/*
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuiadminschedqueue.py

    r83342 r83361  
    4949            'align="center"', 'align="center"',   'align="center"', 'align="center"', 'align="center"', 'align="center"'
    5050        ];
     51        self._iPrevPerSchedGroupRowNumber = 0;
    5152
    5253    def _formatListEntry(self, iEntry):
     
    5556        return [ oEntry.tsLastScheduled, oEntry.sSchedGroup, oEntry.sTestGroup, oEntry.sTestCase, sState, oEntry.idItem ];
    5657
     58    def _formatListEntryHtml(self, iEntry):
     59        sHtml = WuiListContentBase._formatListEntryHtml(self, iEntry);
     60
     61        # Insert separator row?
     62        if iEntry < len(self._aoEntries):
     63            oEntry = self._aoEntries[iEntry] # type: SchedQueueEntry
     64            if oEntry.iPerSchedGroupRowNumber != self._iPrevPerSchedGroupRowNumber:
     65                if iEntry > 0:
     66                    sHtml += '<tr class="tmseparator"><td colspan=%s> </td></tr>\n' % (len(self._asColumnHeaders),);
     67                self._iPrevPerSchedGroupRowNumber = oEntry.iPerSchedGroupRowNumber;
     68        return sHtml;
     69
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