mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 19:11:09 +00:00
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:
parent
15b7b7eaa7
commit
716e64de68
2 changed files with 9 additions and 1 deletions
|
@ -1,11 +1,15 @@
|
||||||
{% extends 'notifications/items/layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% block primary_link %}{% spaceless %}
|
||||||
|
{% url 'prefs-user-export' %}
|
||||||
|
{% endspaceless %}{% endblock %}
|
||||||
|
|
||||||
{% block icon %}
|
{% block icon %}
|
||||||
<span class="icon icon-list"></span>
|
<span class="icon icon-list"></span>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block description %}
|
{% 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 %}
|
{% blocktrans %}Your <a download href="{{ url }}">user export</a> is ready.{% endblocktrans %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
{% extends 'notifications/items/layout.html' %}
|
{% extends 'notifications/items/layout.html' %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% block primary_link %}{% spaceless %}
|
||||||
|
{% url 'user-import' %}
|
||||||
|
{% endspaceless %}{% endblock %}
|
||||||
|
|
||||||
{% block icon %}
|
{% block icon %}
|
||||||
<span class="icon icon-list"></span>
|
<span class="icon icon-list"></span>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue