summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Marillonnet <pmarillonnet@entrouvert.com>2020-10-20 14:48:30 (GMT)
committerPaul Marillonnet <pmarillonnet@entrouvert.com>2020-10-21 12:04:27 (GMT)
commit45a93bb27330c206db6e5b1d4d34049b82b37456 (patch)
treefcab12dfb634faba42446045f8601575c67b088e
parent911f847b24184c68b86e7e9b5a0ddb2714923b4f (diff)
downloadauthentic-45a93bb27330c206db6e5b1d4d34049b82b37456.zip
authentic-45a93bb27330c206db6e5b1d4d34049b82b37456.tar.gz
authentic-45a93bb27330c206db6e5b1d4d34049b82b37456.tar.bz2
manage: hide journal app whose icon is missing (#47891)v2.78
-rw-r--r--src/authentic2/manager/templates/authentic2/manager/homepage.html1
-rw-r--r--src/authentic2/manager/views.py8
-rw-r--r--tests/test_manager_journal.py2
3 files changed, 2 insertions, 9 deletions
diff --git a/src/authentic2/manager/templates/authentic2/manager/homepage.html b/src/authentic2/manager/templates/authentic2/manager/homepage.html
index 495c41e..a9448fc 100644
--- a/src/authentic2/manager/templates/authentic2/manager/homepage.html
+++ b/src/authentic2/manager/templates/authentic2/manager/homepage.html
@@ -12,6 +12,7 @@
<ul class="extra-actions-menu">
<li><a download href="{% url 'a2-manager-site-export' %}">{% trans 'Export Site' %}</a></li>
<li><a href="{% url 'a2-manager-site-import' %}" rel="popup">{% trans 'Import Site' %}</a></li>
+ <li><a href="{% url 'a2-manager-journal' %}">{% trans 'Journal' %}</a></li>
</ul>
</span>
{% endif %}
diff --git a/src/authentic2/manager/views.py b/src/authentic2/manager/views.py
index bf97d08..aacdbff 100644
--- a/src/authentic2/manager/views.py
+++ b/src/authentic2/manager/views.py
@@ -599,14 +599,6 @@ class HomepageView(TitleMixin, PermissionMixin, MediaMixin, TemplateView):
'permission': 'authentic2.search_service',
'slug': 'services',
},
- {
- 'class': 'icon-journal',
- 'href': reverse_lazy('a2-manager-journal'),
- 'label': _('Journal'),
- 'order': -1,
- 'permission': 'superuser',
- 'slug': 'journal',
- },
]
def dispatch(self, request, *args, **kwargs):
diff --git a/tests/test_manager_journal.py b/tests/test_manager_journal.py
index d637ccc..b2020d7 100644
--- a/tests/test_manager_journal.py
+++ b/tests/test_manager_journal.py
@@ -233,7 +233,7 @@ def test_global_journal(app, superuser, events):
# remove event about admin login
Event.objects.filter(user=superuser).delete()
- response = response.click(href="journal")
+ response = response.click("Journal")
content = extract_journal(response)