]> gitweb.fperrin.net Git - djsite.git/blob - quotes/templates/quotes/domassimport.html
Add a massimport page
[djsite.git] / quotes / templates / quotes / domassimport.html
1 {% extends 'quotes/base.html' %}
2
3 {% block title %}Searching for quotes{% endblock %}
4
5 {% block body %}
6
7 {% if fatal_error %}
8   <p>Fatal error during import process. Transaction rolled back.</p>
9
10   <p>The error from the database was:</p>
11
12   <pre>{{ fatal_error_message }}</pre>
13 {% endif %}
14
15 {% if rejected %}
16   <p>Some quotes were rejected during import:</p>
17   {% for reject in rejected %}
18     <p>The quote made up of:</p>
19     <pre class="rejected">{{ reject }}</pre>
20   {% endfor %}
21 {% endif %}
22
23 <p>Created authors:</p>
24 <ul>
25   {% for author in created_authors %}
26   <li><a href="{{ author.get_absolute_url }}"
27          class="author_name">{{ author.name }}</a></li>
28   {% empty %}
29   <li>No new author</li>
30   {% endfor %}
31 </ul>
32
33 <p>Created works:</p>
34 <ul>
35   {% for work in created_works %}
36   <li><a href="{{ work.get_absolute_url }}"
37          class="work_name">{{ work.name }}</a></li>
38   {% empty %}
39   <li>No new work</li>
40   {% endfor %}
41 </ul>
42
43 <p>Created tags:</p>
44 <ul>
45   {% for tag in created_tags %}
46   <li><a href="{{ tag.get_absolute_url }}"
47          class="tag_link">{{ tag.tag }}</a></li>
48   {% empty %}
49   <li>No new tag</li>
50   {% endfor %}
51 </ul>
52
53 <p>Created quotes:</p>
54 {% for quote in created_quotes %}
55   {% include "quotes/display.html" with quote=quote %}
56 {% endfor %}
57
58 {% endblock %}