diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-07-27 17:01:29 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-07-27 17:01:29 -0700 |
commit | cb3d10a06c0166c4eb8ec2d48852e4bfc236ef27 (patch) | |
tree | f26df234c0a139f65f560343d14684473ce0d9a9 /python/fatcat_web/templates/wikipedia_view_fuzzy_refs.html | |
parent | d5ea71b2892b84040b07107643d939f1cfb74d67 (diff) | |
download | fatcat-cb3d10a06c0166c4eb8ec2d48852e4bfc236ef27.tar.gz fatcat-cb3d10a06c0166c4eb8ec2d48852e4bfc236ef27.zip |
refs: support for wikipedia outbound refs, and display in tables
Diffstat (limited to 'python/fatcat_web/templates/wikipedia_view_fuzzy_refs.html')
-rw-r--r-- | python/fatcat_web/templates/wikipedia_view_fuzzy_refs.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/wikipedia_view_fuzzy_refs.html b/python/fatcat_web/templates/wikipedia_view_fuzzy_refs.html new file mode 100644 index 00000000..5b53d692 --- /dev/null +++ b/python/fatcat_web/templates/wikipedia_view_fuzzy_refs.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} +{% import "refs_macros.html" as refs_macros %} + +{% block title %}Wikipedia Refs{% endblock %} + +{% block fullbody %} +<h1 class="ui header"> + [{{ wiki_lang }}] {{ wiki_article }} + <span class="sub header"><a href="{{ wiki_url }}"><code>{{ wiki_url }}</code></a></span> +</h1> + +{% if direction == "in" %} + <h3>Cited By</h3> + <p>This page lists references to a wikipedia article, from other works (eg, journal articles). +{% elif direction == "out" %} + <h3>References</h3> + <i>Refernces from wikipedia article to other entities.</i> +{% endif %} + +{% if hits.result_refs %} + {{ refs_macros.refs_table(hits, direction) }} +{% else %} + <br><br><p><b>None found</b> +{% endif %} + +{% endblock %} + |