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-20 15:19:19 (GMT)
commitd9751018c0217b4c43660217ba6f03dd039edef1 (patch)
tree6c1347993058559de869ce7ce675a5fe24c471be
parent1fc76fd66ef70222241ad511a2bf318540f98db4 (diff)
downloadauthentic-wip/47891-manage-hide-journal-no-icon.zip
authentic-wip/47891-manage-hide-journal-no-icon.tar.gz
authentic-wip/47891-manage-hide-journal-no-icon.tar.bz2
manage: hide journal app whose icon is missing (#47891)wip/47891-manage-hide-journal-no-icon
-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)