From 9ec73af147170df24a8edbfc63ea8cf4b08a6322 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 15 Jan 2021 10:25:39 -0800 Subject: html: fix modal div nesting --- fatcat_scholar/templates/search_macros.html | 115 ++++++++++++++-------------- 1 file changed, 58 insertions(+), 57 deletions(-) diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 92332b2..72f54a8 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -319,71 +319,72 @@ - - {# ### CITATION MODAL #} - {% if paper.doc_type == "work" %} - - -

{% trans %}Cite Work{% endtrans %}

- - - - - - - - - - - -
Generic{{ paper._obj.biblio.citation_str("default") }}
BibTeX
{{ paper._obj.biblio.citation_str("bibtex") }}
-
- {% endif %} +{# ### CITATION MODAL #} +{% if paper.doc_type == "work" %} + + +

{% trans %}Cite Work{% endtrans %}

+ + + + + + + + + + + +
Generic{{ paper._obj.biblio.citation_str("default") }}
BibTeX
{{ paper._obj.biblio.citation_str("bibtex") }}
+
+{% endif %} - {# ### VERSIONS MODAL #} - - +{# ### VERSIONS MODAL #} + + -

{% trans %}Access Options{% endtrans %}

- {% if paper.fulltext and paper.fulltext.thumbnail_url %} - - fulltext thumbnail - - {% endif %} +

{% trans %}Access Options{% endtrans %}

+ {% if paper.fulltext and paper.fulltext.thumbnail_url %} + + fulltext thumbnail + + {% endif %} - {% for access in paper.access %} - {% if access.access_type == "ia_sim" %} -

There is a digitized microfilm copy at archive.org. - {% elif access.access_type == "ia_file" %} -

There is a {{ access.mimetype }} file at archive.org. - {% elif access.access_type == "wayback" %} -

There is a {{ access.mimetype }} file in The Wayback Machine. - {% else %} -

Some other access here. - {% endif %} - {% endfor %} - {% if paper.biblio.doi %} -

You can visit the publisher landing page. + {% for access in paper.access %} + {% if access.access_type == "ia_sim" %} +

There is a digitized microfilm copy at archive.org. + {% elif access.access_type == "ia_file" %} +

There is a {{ access.mimetype }} file at archive.org. + {% elif access.access_type == "wayback" %} +

There is a {{ access.mimetype }} file in The Wayback Machine. + {% else %} +

Some other access here. {% endif %} + {% endfor %} + {% if paper.biblio.doi %} +

You can visit the publisher landing page. + {% endif %} - {% if paper.releases|length > 1 %} -

All Versions

- {% for release in paper.releases %} -
- {{ journal_row(release, paper) }} -
- {{ external_identifiers(release) }} -
+ {% if paper.releases|length > 1 %} +

All Versions

+ {% for release in paper.releases %} +
+ {{ journal_row(release, paper) }}
- {% endfor %} - {% endif %} -
+ {{ external_identifiers(release) }} + +
+ {% endfor %} + {% endif %} +
+ + {# final row close #} {% endmacro %} {% macro search_pagination(hits, top) %} -- cgit v1.2.3