Skip to content

Commit

Permalink
FCL-477 | check for document html instead of ncn for showing pdf only…
Browse files Browse the repository at this point in the history
… view
  • Loading branch information
jlhdxw committed Feb 3, 2025
1 parent 0bb498c commit d0f0c98
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions ds_judgements_public_ui/templates/judgment/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@
{% endblock precontent %}
{% block body_class %}document-detail{% endblock body_class %}
{% block content %}
{% if document.best_human_identifier %}
{% if document_html %}
<div id="start-of-document"></div>
{% if document_html %}
{% autoescape off %}
{{ document_html }}
{% endautoescape %}
{% else %}
{{ content }}
{% endif %}
{% autoescape off %}
{{ document_html }}
{% endautoescape %}

{% include "includes/judgment_end_document_marker.html" %}
{% include "includes/judgment_navigation.html" %}
{% else %}
{% include "includes/judgment_pdf_only.html" %}
{% endif %}

{% endblock content %}
{% block postcontent %}
{% if document.best_human_identifier %}
Expand Down

0 comments on commit d0f0c98

Please sign in to comment.