diff options
| author | klm | 1998-04-08 06:27:22 +0000 |
|---|---|---|
| committer | klm | 1998-04-08 06:27:22 +0000 |
| commit | d1ae930cdcff2837c3a8d85f4562879035939acb (patch) | |
| tree | 821373a476c4cb30334ed6e368454edd4d868305 /cgi/admin | |
| parent | bae84aa0cfc94dce74d39641ef9e902a4dd838e7 (diff) | |
| download | mailman-d1ae930cdcff2837c3a8d85f4562879035939acb.tar.gz mailman-d1ae930cdcff2837c3a8d85f4562879035939acb.tar.zst mailman-d1ae930cdcff2837c3a8d85f4562879035939acb.zip | |
Some mild layout changes.
Diffstat (limited to '')
| -rwxr-xr-x | cgi/admin | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -115,7 +115,7 @@ def FormatConfiguration(doc, list, category, category_suffix): if k == category: label = v doc.SetTitle('%s Administration' % list.real_name) - doc.AddItem(Center(Header(2, ('%s Maillist %s Configuration' + doc.AddItem(Center(Header(2, ('%s Maillist Configuration - %s Section' % (list.real_name, label))))) doc.AddItem('<hr>') @@ -175,28 +175,34 @@ def FormatOptionsSection(category, list): for k, v in CATEGORIES: if k == category: label = v - big_table = Table(cellspacing=4, cellpadding=5) + big_table = Table(cellspacing=3, cellpadding=4) big_table.AddRow([Center(Header(2, label))]) big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0), 0, colspan=2, bgcolor="#99ccff") - def AddOptionsHeader(big_table=big_table): - big_table.AddRow([Center(Bold('Option')), - Bold('Value')]) + + def ColHeader(big_table = big_table): + big_table.AddRow([Center(Bold('Option')), Bold('Value')]) big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0), 0, width="15%") big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0), 1, width="85%") + did_col_header = 0 - if type(options[0]) != types.StringType: - AddOptionsHeader() 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") - AddOptionsHeader() + if not did_col_header: + # Do col header after very first string descr, if any... + ColHeader() + did_col_header = 1 else: + if not did_col_header: + # ... but do col header before anything else. + ColHeader() + did_col_header = 1 big_table.AddRow(GetGuiItem(item, list)) big_table.AddCellInfo(max(big_table.GetCurrentRowIndex(), 0), 1, bgcolor="#cccccc") |
