Merge lp://staging/~stephen-xemacs/postorius/REAL-domain-not-list into lp://staging/postorius
Proposed by
Stephen Turnbull
Status: | Merged |
---|---|
Merged at revision: | 129 |
Proposed branch: | lp://staging/~stephen-xemacs/postorius/REAL-domain-not-list |
Merge into: | lp://staging/postorius |
Diff against target: |
81 lines (+19/-16) 2 files modified
src/postorius/templates/postorius/lists/index.html (+4/-0) src/postorius/views/list.py (+15/-16) |
To merge this branch: | bzr merge lp://staging/~stephen-xemacs/postorius/REAL-domain-not-list |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mailman Coders | Pending | ||
Review via email: mp+154564@code.staging.launchpad.net |
Description of the change
When the superuser first visits the root of the postorius URL space, she is invited to create a list, but won't be able to if there are no domains.
This branch
1. Adds code to the lists/index.html template to check if any domains have been created yet, and offer to create a domain instead of a list.
2. Refactors the code to create the domain list used in the domain menu out to a new function _get_choosable_
3. Adds the length of the domain list to the list_index view, so the index.html template can check it.
To post a comment you must log in.