From 4dd3dd3fb3f4444c4866e8b626ff8f00d628b4ce Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 15 Jan 2021 03:48:08 -0800 Subject: html: tweaks to modal pop-ups --- fatcat_scholar/templates/base.html | 2 ++ fatcat_scholar/templates/search_macros.html | 16 +++++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index a0af582..4e09de1 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -57,6 +57,8 @@ display: flex; justify-content: center; column-gap: 0.3em; + min-width: 12em; + max-width: 15em; } @media only screen and (max-width: 767px) { diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index c26ce7b..4ef9c48 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -226,7 +226,7 @@ {% else %} Other {% endif %} - {% if paper.fulltext.thumbnail_url %} + {% if paper.fulltext and paper.fulltext.thumbnail_url %} @@ -261,7 +261,7 @@ {% elif paper.biblio.doi_prefix in ["10.1080"] %} tandfonline.com {% else %} - Publisher (DOI) + Publisher DOI {% endif %} @@ -322,6 +322,9 @@ {# ### CITATION MODAL #} {% if paper.doc_type == "work" %} +

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

@@ -340,8 +343,12 @@ {# ### VERSIONS MODAL #} + +

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

- {% if paper.fulltext.thumbnail_url %} + {% if paper.fulltext and paper.fulltext.thumbnail_url %} fulltext thumbnail @@ -358,6 +365,9 @@

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

-- cgit v1.2.3