summaryrefslogtreecommitdiff
path: root/cgi/admin
diff options
context:
space:
mode:
authormailman1998-04-09 00:03:52 +0000
committermailman1998-04-09 00:03:52 +0000
commit86c0aa909987097969045541156b0094ace5a437 (patch)
tree67c07fffab33a647116bb03dfe7326cc4a89aee8 /cgi/admin
parent303f925eba07686cdb90136725213c58c399e6b9 (diff)
downloadmailman-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-xcgi/admin10
1 files changed, 7 insertions, 3 deletions
diff --git a/cgi/admin b/cgi/admin
index edab48693..fa16e1779 100755
--- a/cgi/admin
+++ b/cgi/admin
@@ -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