diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-04-08 14:45:55 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-04-08 14:45:55 -0700 |
commit | 7f5a6e64a865ff2a4de9b5bafeed68a0195597bf (patch) | |
tree | 25c09dca18f319e50fa02925f629f8c392ec8ad8 /fatcat_covid19/templates/entity_macros.html | |
parent | 38825876b64cdd08495f515a5d503f3da89385c2 (diff) | |
download | fatcat-covid19-7f5a6e64a865ff2a4de9b5bafeed68a0195597bf.tar.gz fatcat-covid19-7f5a6e64a865ff2a4de9b5bafeed68a0195597bf.zip |
tweak desktop style: larger SERP font
Diffstat (limited to 'fatcat_covid19/templates/entity_macros.html')
-rw-r--r-- | fatcat_covid19/templates/entity_macros.html | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/fatcat_covid19/templates/entity_macros.html b/fatcat_covid19/templates/entity_macros.html index 1c4177c..c4cee62 100644 --- a/fatcat_covid19/templates/entity_macros.html +++ b/fatcat_covid19/templates/entity_macros.html @@ -67,7 +67,7 @@ {# ### AUTHOR ROW #} {% if paper.contrib_names %} - <div style="margin-top: 0.1em; margin-bottom: 0.1em; font-size: 1.1em;"> + <div style="margin-top: 0.1em; margin-bottom: 0.2em; font-size: 1.1em;"> <b> {{ ", ".join(paper.contrib_names[:12]) }} {% if paper.contrib_names|length > 12 %}<i>(+{{ paper.contrib_names|length - 12 }} others)</i>{% endif %} @@ -169,13 +169,27 @@ </div> <div class="three wide left aligned column" style="padding: 1em;"> {% if paper.fulltext.thumbnail_url %} - <a href="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.pdf_url.replace('//', '/') }}"> - <img src="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.thumbnail_url.replace('//', '/') }}" style="border: 1px solid grey; max-height: 12em; max-width: 100%;"> + {% if paper.fulltext.ia_pdf_url %} + <a href="{{ paper.fulltext.ia_pdf_url }}"> + {% else %} + <a href="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.pdf_url }}"> + {% endif %} + <img src="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.thumbnail_url }}" style="border: 1px solid grey; max-height: 12em; max-width: 100%;"> </a> <br> {% else %} {# No Fulltext #} {% endif %} +{# should we include these little links? + <code style="font-size: 0.9rem; padding-left: 0.5em;"> + {% if paper.fulltext.pdf_url %} + <a href="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.pdf_url }}">mirror</a> + {% endif %} + {% if paper.fulltext.grobid_xml_url %} + <a href="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.grobid_xml_url }}">xml</a> + {% endif %} + </code> +#} </div> </div> {% endmacro %} |