Skip to content

Commit

Permalink
fix: only display warning if version is smaller than latest
Browse files Browse the repository at this point in the history
Closes #789
  • Loading branch information
alycejenni committed Jul 22, 2024
1 parent a51f7f5 commit bb549b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/nhm/theme/templates/record/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{% block page_header %}
<header class="page-header">
<div class="row flex-container flex-wrap flex-wrap-spacing flex-between flex-stretch-first flex-reverse">
{% if g.version and h.latest_item_version(resource_id=res.id, record_id=rec['_id']) != g.version %}
{% if g.version and h.latest_item_version(resource_id=res.id, record_id=rec['_id']) > g.version %}
<div class="col-md-12 full-width alert-info margin-bottom">
<p><b>This is not the most recent version of this record.</b></p>
<p>This version is from {{ h.get_version_date(g.version) }}.</p>
Expand Down

0 comments on commit bb549b8

Please sign in to comment.