diff --git a/src/olympia/reviewers/templates/reviewers/includes/files_view.html b/src/olympia/reviewers/templates/reviewers/includes/files_view.html index 84c688b0c5..52521138d8 100644 --- a/src/olympia/reviewers/templates/reviewers/includes/files_view.html +++ b/src/olympia/reviewers/templates/reviewers/includes/files_view.html @@ -29,6 +29,7 @@ {% endif %} {% if file[0].is_webextension %}
+ {% endif %} diff --git a/src/olympia/reviewers/tests/test_views.py b/src/olympia/reviewers/tests/test_views.py index a1a0fa2cae..6345fc85f4 100644 --- a/src/olympia/reviewers/tests/test_views.py +++ b/src/olympia/reviewers/tests/test_views.py @@ -5115,8 +5115,10 @@ class TestReview(ReviewBase): def test_permissions_display(self): permissions = ['bookmarks', 'high', 'voltage'] + optional_permissions = ['optional', 'high', 'voltage'] self.file.update(is_webextension=True) WebextPermission.objects.create( + optional_permissions=optional_permissions, permissions=permissions, file=self.file) response = self.client.get(self.url) @@ -5124,6 +5126,8 @@ class TestReview(ReviewBase): doc = pq(response.content) info = doc('#versions-history .file-info div') assert info.eq(1).text() == 'Permissions: ' + ', '.join(permissions) + assert info.eq(2).text() == 'Optional permissions: ' + \ + ', '.join(optional_permissions) def test_abuse_reports(self): report = AbuseReport.objects.create(