diff options
| author | mailman | 1998-04-09 00:03:52 +0000 |
|---|---|---|
| committer | mailman | 1998-04-09 00:03:52 +0000 |
| commit | 86c0aa909987097969045541156b0094ace5a437 (patch) | |
| tree | 67c07fffab33a647116bb03dfe7326cc4a89aee8 /cgi/admin | |
| parent | 303f925eba07686cdb90136725213c58c399e6b9 (diff) | |
| download | mailman-86c0aa909987097969045541156b0094ace5a437.tar.gz mailman-86c0aa909987097969045541156b0094ace5a437.tar.zst mailman-86c0aa909987097969045541156b0094ace5a437.zip | |
FOrmatOptionsSection(): Put a leading description option above the
column header, to describe the section as a whole.
Diffstat (limited to 'cgi/admin')
| -rwxr-xr-x | cgi/admin | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -195,9 +195,13 @@ def FormatOptionsSection(category, list): for item in options: if type(item) == types.StringType: big_table.AddRow([Bold(item)]) - big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0), 0, - colspan=2, bgcolor ="#FFF0D0") - if not did_col_header: + if did_col_header: + # Color the string only when after the colheader. + big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0), + 0, colspan=2, bgcolor ="#FFF0D0") + else: + big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0), + 0, colspan=2) # Do col header after very first string descr, if any... ColHeader() did_col_header = 1 |
