diff options
| author | mailman | 1998-04-09 00:37:50 +0000 |
|---|---|---|
| committer | mailman | 1998-04-09 00:37:50 +0000 |
| commit | 2f087f96fcda03cb39273d78d07674977dc57634 (patch) | |
| tree | 2982b1b5acfd986ee550830b2c7f249c7a2df1e3 | |
| parent | 8fc61ae114765c7d49bebdfe541351f6d20a4990 (diff) | |
| download | mailman-2f087f96fcda03cb39273d78d07674977dc57634.tar.gz mailman-2f087f96fcda03cb39273d78d07674977dc57634.tar.zst mailman-2f087f96fcda03cb39273d78d07674977dc57634.zip | |
Simplify options layout a bit, removing the coloring on the section
separators.
| -rwxr-xr-x | cgi/admin | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -194,14 +194,15 @@ def FormatOptionsSection(category, list): for item in options: if type(item) == types.StringType: - big_table.AddRow([Bold(item)]) - 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) + # The very first banner option (string in an options list) is + # treated as a general description, while any others are + # treated as section headers - centered and italicized... + if did_col_header: + item = "<center><i>" + item + "</i></center>" + big_table.AddRow([item]) + big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0), + 0, colspan=2) + if not did_col_header: # Do col header after very first string descr, if any... ColHeader() did_col_header = 1 |
