fix: Adopt -> Manage adoption (#3922)

Fixes #3877
This commit is contained in:
Lars Eggert 2022-05-03 17:32:24 +03:00 committed by GitHub
parent f4b8fc1d0d
commit 169ab1c10f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -370,7 +370,7 @@ def document_main(request, name, rev=None):
# already adopted in one group
button_text = "Switch adoption"
else:
button_text = "Adopt"
button_text = "Manage adoption"
actions.append((button_text, urlreverse('ietf.doc.views_draft.adopt_draft', kwargs=dict(name=doc.name))))
if can_unadopt_draft(request.user, doc) and not doc.get_state_slug() in ["rfc"] and not snapshot:
@ -1990,4 +1990,4 @@ def rfcdiff_latest_json(request, name, rev=None):
response['previous'] = f'rfc{match.group(2)}'
if not response:
raise Http404
return HttpResponse(json.dumps(response), content_type='application/json')
return HttpResponse(json.dumps(response), content_type='application/json')