Skip to content

Commit

Permalink
deal with missing provision_eid differently
Browse files Browse the repository at this point in the history
  • Loading branch information
goose-life committed Jan 17, 2025
1 parent 5f8ba8d commit a59dc52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions indigo_app/templates/indigo_api/document/_defined_terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h4 class="modal-title">{% trans 'Defined Terms' %}</h4>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
{% if provision_eid == "" %}
{% if not provision_eid %}
<p>{% trans 'These are terms that are explicitly defined in this document. Always refresh defined terms before publishing a document to ensure that all references to terms are captured.' %}</p>
<div class="card bg-light scrollable">
<div class="card-body">
Expand All @@ -27,7 +27,7 @@ <h4 class="modal-title">{% trans 'Defined Terms' %}</h4>
<button type="button" class="btn btn-outline-secondary remove-terms pull-left"><i class="fas fa-times"></i> {% trans 'Remove defined terms' %}</button>
<button class="btn btn-outline-secondary link-terms">
<i class="fas fa-sync"></i>
{% if provision_eid == "" %}
{% if not provision_eid %}
{% trans 'Find and link defined terms' %}
{% else %}
{% trans 'Link defined terms' %}
Expand Down
2 changes: 1 addition & 1 deletion indigo_app/templates/indigo_api/document/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h5 class="main-header-title">
</div>

{% include "indigo_api/document/_revisions.html" %}
{% include "indigo_api/document/_defined_terms.html" with provision_eid=provision_eid %}
{% include "indigo_api/document/_defined_terms.html" %}
{% include "indigo_api/document/_references.html" %}
{% include "indigo_api/document/_annotations.html" %}
{% include "indigo_api/document/_insert_image_modal.html" %}
Expand Down

0 comments on commit a59dc52

Please sign in to comment.