First draft async imports.
This commit is contained in:
parent
bba63e3515
commit
881cc4d64b
8 changed files with 57 additions and 56 deletions
|
@ -2,17 +2,9 @@
|
|||
{% block content %}
|
||||
<div id="content">
|
||||
<div>
|
||||
<h1>The following books could not be imported: </h1>
|
||||
<h1>Import</h1>
|
||||
|
||||
<ul>
|
||||
{% for item in failures %}
|
||||
<li>
|
||||
{{ item }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<p>{{ success_count }} books imported successfully</p>
|
||||
Import uploaded successfully. The import is being processed.
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
{% for notification in notifications %}
|
||||
<div class="notification{% if notification.id in unread %} unread{% endif %}">
|
||||
<small class="time-ago">{{ notification.created_date | naturaltime }}</small>
|
||||
{% if notification.related_user %}
|
||||
{% include 'snippets/username.html' with user=notification.related_user %}
|
||||
{% if notification.notification_type == 'FAVORITE' %}
|
||||
favorited your
|
||||
|
@ -36,6 +37,10 @@
|
|||
{% elif notification.notification_type == 'BOOST' %}
|
||||
boosted your <a href="{{ notification.related_status.absolute_id}}">status</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
your <a href="{{ notification.related_status.absolute_id }}">import</a> succeeded.
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% if not notifications %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue