Changes notification links for user import/export

I found it unexpected that the export notification linked me directly to
the file, and wanted the import link to lead me to the import page
This commit is contained in:
Mouse Reeve 2023-11-06 08:27:30 -08:00
parent 15b7b7eaa7
commit 716e64de68
2 changed files with 9 additions and 1 deletions

View file

@ -1,11 +1,15 @@
{% extends 'notifications/items/layout.html' %}
{% load i18n %}
{% block primary_link %}{% spaceless %}
{% url 'prefs-user-export' %}
{% endspaceless %}{% endblock %}
{% block icon %}
<span class="icon icon-list"></span>
{% endblock %}
{% block description %}
{% url 'prefs-export-file' notification.related_user_export.task_id as url %}
{% url 'prefs-user-export' as url %}
{% blocktrans %}Your <a download href="{{ url }}">user export</a> is ready.{% endblocktrans %}
{% endblock %}

View file

@ -1,6 +1,10 @@
{% extends 'notifications/items/layout.html' %}
{% load i18n %}
{% block primary_link %}{% spaceless %}
{% url 'user-import' %}
{% endspaceless %}{% endblock %}
{% block icon %}
<span class="icon icon-list"></span>
{% endblock %}