|
1 | 1 | {% extends '/core/home.jinja2' %} |
2 | | - |
3 | | - |
4 | 2 | {% block content %} |
5 | | - {% block subcontent %} |
6 | | - {% endblock %} |
| 3 | + {% block subcontent %}{% endblock %} |
7 | 4 | <section class="profile-options-flex"> |
8 | 5 | <div class="container"> |
9 | 6 | {# FIXME: maybe this can be improved #} |
10 | 7 | <link rel="stylesheet" href="{{ static('css/repository-list.css') }}"> |
11 | 8 | <link rel="stylesheet" href="{{ static ('css/generic-modal.css') }}"> |
12 | 9 | <script src="{{ static('js/modal.js') }}"></script> |
13 | | - |
14 | 10 | {% for element_type, repository_list, class_type in [ |
15 | | - ("mr-exhibit",mr_exhibits, "titExb"), |
16 | | - ("ar-exhibit",ar_exhibits, "titExb"), |
17 | | - ("artwork",artworks, "titArt"), |
18 | | - ("marker",markers, "titMrk"), |
19 | | - ("object",objects, "titObj"), |
20 | | - ("sound",sounds, "titObj") |
21 | | - ] |
22 | | - %} |
23 | | - |
| 11 | + ("mr-exhibit",mr_exhibits, "titExb"), |
| 12 | + ("ar-exhibit",ar_exhibits, "titExb"), |
| 13 | + ("artwork",artworks, "titArt"), |
| 14 | + ("marker",markers, "titMrk"), |
| 15 | + ("object",objects, "titObj"), |
| 16 | + ("sound",sounds, "titObj") |
| 17 | + ] |
| 18 | + %} |
24 | 19 | {% if repository_list %} |
25 | | - |
26 | | - {% if element_type == "ar-exhibit" %} |
27 | | - <h1 class={{class_type}} style="font-size: 1.5em;">{{_("Jandig AR Exhibits")}}</h1> |
28 | | - {% elif element_type == "mr-exhibit" %} |
29 | | - <h1 class={{class_type}} style="font-size: 1.5em;">{{_("Jandig MR Exhibits")}}</h1> |
| 20 | + {% if element_type == "ar-exhibit" %} |
| 21 | + <h1 class={{ class_type }} style="font-size: 1.5em;">{{ _("Jandig AR Exhibits") }} |
| 22 | + </h1> |
| 23 | + {% elif element_type == "mr-exhibit" %} |
| 24 | + <h1 class={{ class_type }} style="font-size: 1.5em;">{{ _("Jandig MR Exhibits") }} |
| 25 | + </h1> |
30 | 26 | {% else %} |
31 | | - <h1 class={{class_type}} style="font-size: 1.5em;">{{_("Jandig " + element_type.capitalize() + "s")}}</h1> |
| 27 | + <h1 class={{ class_type }} style="font-size: 1.5em;">{{ _("Jandig " + element_type.capitalize() + "s") }} |
| 28 | + </h1> |
32 | 29 | {% endif %} |
33 | | - |
34 | 30 | {% with repository_list = repository_list, element_type=element_type %} |
35 | 31 | {% include "core/components/item-list.jinja2" %} |
36 | 32 | {% endwith %} |
37 | 33 | {% if seeall == False %} |
38 | | - {% if element_type == "ar-exhibit" %} |
39 | | - <a href = "/see_all/?which={{element_type}}" class="seeall">{{_("All AR Exhibits")}}</a> |
| 34 | + {% if element_type == "ar-exhibit" %} |
| 35 | + <a href = "/see_all/?which={{ element_type }}" class="seeall">{{ _("All AR Exhibits") }}</a> |
40 | 36 | {% elif element_type == "mr-exhibit" %} |
41 | | - <a href = "/see_all/?which={{element_type}}" class="seeall">{{_("All MR Exhibits")}}</a> |
| 37 | + <a href = "/see_all/?which={{ element_type }}" class="seeall">{{ _("All MR Exhibits") }}</a> |
42 | 38 | {% else %} |
43 | | - <a href = "/see_all/?which={{element_type}}" class="seeall">{{_("All " + element_type.capitalize() + "s")}}</a> |
| 39 | + <a href = "/see_all/?which={{ element_type }}" class="seeall">{{ _("All " + element_type.capitalize() + "s") }}</a> |
44 | 40 | {% endif %} |
45 | 41 | {% endif %} |
46 | 42 | {% if seeall == True %} |
47 | | - <nav> |
48 | | - <div class="flex"> |
49 | | - {% for page_number in repository_list.adjusted_elided_pages %} |
| 43 | + <nav> |
| 44 | + <div class="flex"> |
| 45 | + {% for page_number in repository_list.adjusted_elided_pages %} |
50 | 46 | {% if page_number == repository_list.number %} |
51 | | - <div class="active useful-links"> |
52 | | - <span class="page-link" style="background-color: #05f7ae; color: #fff; padding: 5px;"> |
53 | | - {{ page_number }} |
54 | | - <span class="sr-only"></span> |
55 | | - </div> |
56 | | - {% else %} |
57 | | - <div class="useful-links"> |
58 | | - <a class="page-link" |
59 | | - href="?which={{element_type}}&page={{ page_number }}"> |
| 47 | + <div class="active useful-links"> |
| 48 | + <span class="page-link" |
| 49 | + style="background-color: #05f7ae; |
| 50 | + color: #fff; |
| 51 | + padding: 5px"> |
60 | 52 | {{ page_number }} |
61 | | - </a> |
62 | | - </div> |
63 | | - {% endif %} |
64 | | - {% endfor %} |
65 | | - </div> |
66 | | - </nav> |
| 53 | + <span class="sr-only"></span> |
| 54 | + </div> |
| 55 | + {% else %} |
| 56 | + <div class="useful-links"> |
| 57 | + <a class="page-link" |
| 58 | + href="?which={{ element_type }}&page={{ page_number }}"> |
| 59 | + {{ page_number }} |
| 60 | + </a> |
| 61 | + </div> |
| 62 | + {% endif %} |
| 63 | + {% endfor %} |
| 64 | + </div> |
| 65 | + </nav> |
| 66 | + {% endif %} |
67 | 67 | {% endif %} |
| 68 | + {% endfor %} |
| 69 | + {% if not ar_exhibits and not mr_exhibits and not artworks and not markers and not objects and not sounds %} |
| 70 | + <h1 class="titObj" style="font-size: 1em;"> |
| 71 | + {{ _("We found no content on your Collection, try uploading an object.") }} |
| 72 | + </h1> |
68 | 73 | {% endif %} |
69 | | - {% endfor %} |
70 | | - {% if not ar_exhibits and not mr_exhibits and not artworks and not markers and not objects and not sounds %} |
71 | | - <h1 class="titObj" style="font-size: 1em;">{{_("We found no content on your Collection, try uploading an object.")}}</h1> |
72 | | - {% endif %} |
73 | | - |
74 | | - <section id="modal" class="modal"></section> |
75 | | - </div> |
76 | | - </section> |
77 | | -{% endblock %} |
| 74 | + <section id="modal" class="modal"> |
| 75 | + </section> |
| 76 | + </div> |
| 77 | + </section> |
| 78 | + {% endblock %} |
0 commit comments