summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/search_macros.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-15 10:25:39 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-19 19:49:39 -0800
commit9ec73af147170df24a8edbfc63ea8cf4b08a6322 (patch)
tree5ea916e395ade3a3b96f2d3bd937d316c0721da6 /fatcat_scholar/templates/search_macros.html
parentc0de337a66e6a1d253e5aefc8f0ea67167b1a1b2 (diff)
downloadfatcat-scholar-9ec73af147170df24a8edbfc63ea8cf4b08a6322.tar.gz
fatcat-scholar-9ec73af147170df24a8edbfc63ea8cf4b08a6322.zip
html: fix modal div nesting
Diffstat (limited to 'fatcat_scholar/templates/search_macros.html')
-rw-r--r--fatcat_scholar/templates/search_macros.html115
1 files 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
@@ -320,70 +320,71 @@
</div>
</div>
-</div>
- {# ### CITATION MODAL #}
- {% if paper.doc_type == "work" %}
- <dialog id="cite-modal-{{ paper.key }}">
- <button class="circular ui right floated compact basic icon button" onclick="this.parentElement.close()">
- <i class="close icon"></i>
- </button>
- <h2>{% trans %}Cite Work{% endtrans %}</h2>
- <table class="ui very basic table">
- <tbody>
- <tr>
- <td>Generic</td>
- <td>{{ paper._obj.biblio.citation_str("default") }}</td>
- </tr>
- <tr>
- <td>BibTeX</td>
- <td><pre>{{ paper._obj.biblio.citation_str("bibtex") }}</pre></td>
- </tr>
- </tbody>
- </table>
- </dialog>
- {% endif %}
+{# ### CITATION MODAL #}
+{% if paper.doc_type == "work" %}
+<dialog id="cite-modal-{{ paper.key }}">
+ <button class="circular ui right floated compact basic icon button" onclick="this.parentElement.close()">
+ <i class="close icon"></i>
+ </button>
+ <h2>{% trans %}Cite Work{% endtrans %}</h2>
+ <table class="ui very basic table">
+ <tbody>
+ <tr>
+ <td>Generic</td>
+ <td>{{ paper._obj.biblio.citation_str("default") }}</td>
+ </tr>
+ <tr>
+ <td>BibTeX</td>
+ <td><pre>{{ paper._obj.biblio.citation_str("bibtex") }}</pre></td>
+ </tr>
+ </tbody>
+ </table>
+</dialog>
+{% endif %}
- {# ### VERSIONS MODAL #}
- <dialog id="access-modal-{{ paper.key }}">
- <button class="circular ui right floated compact basic icon button" onclick="this.parentElement.close()">
- <i class="close icon"></i>
- </button>
+{# ### VERSIONS MODAL #}
+<dialog id="access-modal-{{ paper.key }}">
+ <button class="circular ui right floated compact basic icon button" onclick="this.parentElement.close()">
+ <i class="close icon"></i>
+ </button>
- <h2>{% trans %}Access Options{% endtrans %}</h2>
- {% if paper.fulltext and paper.fulltext.thumbnail_url %}
- <a href="{{ paper.fulltext.access_url }}">
- <img src="{{ paper.fulltext.thumbnail_url }}" alt="fulltext thumbnail" loading="lazy">
- </a>
- {% endif %}
+ <h2>{% trans %}Access Options{% endtrans %}</h2>
+ {% if paper.fulltext and paper.fulltext.thumbnail_url %}
+ <a href="{{ paper.fulltext.access_url }}">
+ <img src="{{ paper.fulltext.thumbnail_url }}" alt="fulltext thumbnail" loading="lazy">
+ </a>
+ {% endif %}
- {% for access in paper.access %}
- {% if access.access_type == "ia_sim" %}
- <p>There is a digitized microfilm copy <a href="{{ access.access_url }}">at archive.org</a>.
- {% elif access.access_type == "ia_file" %}
- <p>There is a <code>{{ access.mimetype }}</code> file <a href="{{ access.access_url }}">at archive.org</a>.
- {% elif access.access_type == "wayback" %}
- <p>There is a <code>{{ access.mimetype }}</code> file <a href="{{ access.access_url }}">in The Wayback Machine</a>.
- {% else %}
- <p>Some other <a href="{{ access.access_url }}">access here</a>.
- {% endif %}
- {% endfor %}
- {% if paper.biblio.doi %}
- <p>You can visit the publisher <a href="{{ paper.biblio.doi }}">landing page</a>.
+ {% for access in paper.access %}
+ {% if access.access_type == "ia_sim" %}
+ <p>There is a digitized microfilm copy <a href="{{ access.access_url }}">at archive.org</a>.
+ {% elif access.access_type == "ia_file" %}
+ <p>There is a <code>{{ access.mimetype }}</code> file <a href="{{ access.access_url }}">at archive.org</a>.
+ {% elif access.access_type == "wayback" %}
+ <p>There is a <code>{{ access.mimetype }}</code> file <a href="{{ access.access_url }}">in The Wayback Machine</a>.
+ {% else %}
+ <p>Some other <a href="{{ access.access_url }}">access here</a>.
{% endif %}
+ {% endfor %}
+ {% if paper.biblio.doi %}
+ <p>You can visit the publisher <a href="{{ paper.biblio.doi }}">landing page</a>.
+ {% endif %}
- {% if paper.releases|length > 1 %}
- <h2>All Versions</h2>
- {% for release in paper.releases %}
- <div class="biblio-record">
- {{ journal_row(release, paper) }}
- <br>
- {{ external_identifiers(release) }}
- </div>
+ {% if paper.releases|length > 1 %}
+ <h2>All Versions</h2>
+ {% for release in paper.releases %}
+ <div class="biblio-record">
+ {{ journal_row(release, paper) }}
<br>
- {% endfor %}
- {% endif %}
- </dialog>
+ {{ external_identifiers(release) }}
+ </div>
+ <br>
+ {% endfor %}
+ {% endif %}
+</dialog>
+
+</div> {# final row close #}
{% endmacro %}
{% macro search_pagination(hits, top) %}