Skip to content

Commit a383694

Browse files
authored
feat(meetings): Use "Decline and Delete" for slide disapprovals (#9842)
* feat(meetings): Use "Decline and Delete" for slide disapprovals Changes use of "disapprove" and "rejected" to "decline" and "declined" when dealing with slides that have been submitted for approval. Responds to #9242 * feat(meetings): Use "Decline and Delete" for slide disapprovals Now with a fix for a test that broke owing to the original change. Still responds to #9242
1 parent 8d876c0 commit a383694

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

ietf/meeting/tests_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7148,7 +7148,7 @@ def test_disapprove_proposed_slides(self):
71487148
self.assertFalse(exists_in_storage("staging", submission.filename))
71497149
r = self.client.get(url)
71507150
self.assertEqual(r.status_code, 200)
7151-
self.assertRegex(r.content.decode(), r"These\s+slides\s+have\s+already\s+been\s+rejected")
7151+
self.assertRegex(r.content.decode(), r"These\s+slides\s+have\s+already\s+been\s+declined")
71527152

71537153
@override_settings(MEETECHO_API_CONFIG="fake settings") # enough to trigger API calls
71547154
@patch("ietf.meeting.views.SlidesManager")

ietf/meeting/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5304,7 +5304,7 @@ def approve_proposed_slides(request, slidesubmission_id, num):
53045304
if request.POST.get('approve'):
53055305
# Ensure that we have a file to approve. The system gets cranky otherwise.
53065306
if submission.filename is None or submission.filename == '' or not os.path.isfile(submission.staged_filepath()):
5307-
return HttpResponseNotFound("The slides you attempted to approve could not be found. Please disapprove and delete them instead.")
5307+
return HttpResponseNotFound("The slides you attempted to approve could not be found. Please decline and delete them instead.")
53085308
title = form.cleaned_data['title']
53095309
if existing_doc:
53105310
doc = Document.objects.get(name=name)

ietf/templates/meeting/approve_proposed_slides.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ <h2>
3434
<button type="submit"
3535
class="btn btn-warning"
3636
name="disapprove"
37-
value="disapprove">Disapprove and Delete</button>
37+
value="disapprove">Decline and Delete</button>
3838
</form>
39-
{% endblock %}
39+
{% endblock %}

ietf/templates/meeting/previously_approved_slides.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ <h1 class="mb-3">
1111
{% if submission.status.slug == 'approved' %}
1212
approved
1313
{% else %}
14-
rejected
14+
declined
1515
{% endif %}
1616
</h1>
1717
<p>
1818
The slides from {{ submission.submitter }} have already been
1919
{% if submission.status.slug == 'approved' %}
2020
approved.
2121
{% else %}
22-
rejected.
22+
declined.
2323
{% endif %}
2424
No further action is needed.
2525
</p>
@@ -33,4 +33,4 @@ <h1 class="mb-3">
3333
return to this meeting session
3434
</a>.
3535
</p>
36-
{% endblock %}
36+
{% endblock %}

0 commit comments

Comments
 (0)