Modified the text shown on Chairs' 'Manage DOcument Adoption in Group' button and corrected the logic for which text to show.

- Legacy-Id: 13725
This commit is contained in:
Henrik Levkowetz 2017-06-28 17:39:11 +00:00
parent 2070bbfed6
commit 22f181cdbe

View file

@ -321,9 +321,9 @@ def document_main(request, name, rev=None):
actions = []
if can_adopt_draft(request.user, doc) and not doc.get_state_slug() in ["rfc"] and not snapshot:
if doc.group:
if doc.group and doc.group.acronym != 'none': # individual submission
# already adopted in one group
button_text = "Change Document Adoption to other Group"
button_text = "Change Document Adoption to other Group (now in %s)" % doc.group.acronym
else:
button_text = "Manage Document Adoption in Group"
actions.append((button_text, urlreverse('ietf.doc.views_draft.adopt_draft', kwargs=dict(name=doc.name))))