manage: hide journal app whose icon is missing (#47891)
This commit is contained in:
parent
911f847b24
commit
45a93bb273
|
@ -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 %}
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue