diff --git a/plinth/modules/monkeysphere/templates/monkeysphere.html b/plinth/modules/monkeysphere/templates/monkeysphere.html
index 4dd4c5ea2..13e6ddc7d 100644
--- a/plinth/modules/monkeysphere/templates/monkeysphere.html
+++ b/plinth/modules/monkeysphere/templates/monkeysphere.html
@@ -91,16 +91,20 @@
- {% for domain in key.available_domains %}
+ {% for domain in key.all_domains %}
-
- {% if domain in key.imported_domains %}
-
- {% else %}
+ {% if domain not in key.imported_domains %}
+ >
+ {% elif domain not in key.available_domains %}
+
+ {% else %}
+
{% endif %}
{{ domain }}
@@ -138,7 +142,7 @@
{% trans "Publish Key" %}
{% endif %}
- {% if key.imported_domains != key.available_domains %}
+ {% if key.importable_domains %}
|