diff --git a/apps/addons/templates/addons/details.html b/apps/addons/templates/addons/details.html index 8e3cc612ca..bfc4dd0703 100644 --- a/apps/addons/templates/addons/details.html +++ b/apps/addons/templates/addons/details.html @@ -41,6 +41,13 @@
{{ addon.summary|nl2br }}

+ {% with files = addon.current_version.all_files %} + {% if files and files[0].no_restart %} +
+ {{ _('No restart required') }} +
+ {% endif %} + {% endwith %} {{ big_install_button(addon, show_warning=False) }} diff --git a/apps/addons/tests/test_views.py b/apps/addons/tests/test_views.py index a8b0dbfb4b..ca287191af 100644 --- a/apps/addons/tests/test_views.py +++ b/apps/addons/tests/test_views.py @@ -707,6 +707,21 @@ class TestDetailPage(test_utils.TestCase): addon.save() assert pq(self.client.get(url).content)(selector) + def test_no_restart(self): + no_restart = '
0) { + no_restart.show(); + } }); /* get satisfaction initialization */