diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-07-27 18:48:14 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-07-27 18:48:14 -0700 |
commit | fa2ba60834cf3cb3edea05af3c1830e6fc0d5bcc (patch) | |
tree | 2ae1f69f218c2caf05bce736edc3c3b29665ce27 /python/fatcat_web/templates/release_view_fuzzy_refs.html | |
parent | db88516724e3e0afc4f1c88356c0ee7f39fbb38c (diff) | |
download | fatcat-fa2ba60834cf3cb3edea05af3c1830e6fc0d5bcc.tar.gz fatcat-fa2ba60834cf3cb3edea05af3c1830e6fc0d5bcc.zip |
refs: several small improvements to web UI
Diffstat (limited to 'python/fatcat_web/templates/release_view_fuzzy_refs.html')
-rw-r--r-- | python/fatcat_web/templates/release_view_fuzzy_refs.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/python/fatcat_web/templates/release_view_fuzzy_refs.html b/python/fatcat_web/templates/release_view_fuzzy_refs.html index ffca0bc9..8cba4f4e 100644 --- a/python/fatcat_web/templates/release_view_fuzzy_refs.html +++ b/python/fatcat_web/templates/release_view_fuzzy_refs.html @@ -13,13 +13,15 @@ {% elif direction == "out" %} <h3>References</h3> <i>NOTE: currently batch computed and may include additional references sources, or be missing recent changes, compared to entity reference list.</i> -{% endif %} -{% if hits.result_refs %} - {{ refs_macros.refs_table(hits, direction) }} -{% else %} - <br><br><p><b>None found</b> + {% if hits.count_total == 0 and release.refs %} + <div class="ui positive message"> + <p>No <i>fuzzy</i> references found, but there are <a href="/release/{{ release.ident }}/references">{{ release.refs|count }} legacy references</a> + </div> + {% endif %} {% endif %} +{{ refs_macros.refs_table(hits, direction) }} + {% endblock %} |