diff --git a/plinth/modules/upgrades/templates/upgrades-dist-upgrade-notification.html b/plinth/modules/upgrades/templates/upgrades-dist-upgrade-notification.html index 0cd66fd3e..6073e1e78 100644 --- a/plinth/modules/upgrades/templates/upgrades-dist-upgrade-notification.html +++ b/plinth/modules/upgrades/templates/upgrades-dist-upgrade-notification.html @@ -41,11 +41,5 @@ role="button" class="btn btn-primary"> {% trans "Go to Distribution Update" %} - - {% trans "Dismiss" %} - + {% include 'notifications-dismiss-button.html' with id=id %}
diff --git a/plinth/modules/upgrades/templates/upgrades-new-release.html b/plinth/modules/upgrades/templates/upgrades-new-release.html index 1cc1b7812..d0a24f524 100644 --- a/plinth/modules/upgrades/templates/upgrades-new-release.html +++ b/plinth/modules/upgrades/templates/upgrades-new-release.html @@ -17,11 +17,5 @@- - {% trans "Dismiss" %} - + {% include 'notifications-dismiss-button.html' with id=id %}
diff --git a/plinth/templates/notifications-dismiss-button.html b/plinth/templates/notifications-dismiss-button.html new file mode 100644 index 000000000..8b914cdb9 --- /dev/null +++ b/plinth/templates/notifications-dismiss-button.html @@ -0,0 +1,12 @@ +{% comment %} +# SPDX-License-Identifier: AGPL-3.0-or-later +{% endcomment %} + +{% load i18n %} + + + {% trans "Dismiss" %} + diff --git a/plinth/templates/notifications.html b/plinth/templates/notifications.html index 0afd6e549..1880cbb61 100644 --- a/plinth/templates/notifications.html +++ b/plinth/templates/notifications.html @@ -54,13 +54,7 @@