Skip to content

Commit

Permalink
[#84] footer layout fix for displaying previous version of a term
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdash committed Dec 21, 2023
1 parent 7062f8b commit 59b3c1a
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,12 @@ <h4>NOTE: This is an archived version of this term. There is a <a href="{% url d
</section>

{% if user.is_staff %}
<section class="previous-versions">
<div class="column two-columns data-view">
<h4>
{% if object.previous_version %}
Previous version of this term: <br><a href="{% url detail_url object.previous_version.term object.previous_version.pk %}">{{ object.previous_version.term }}</a> {{ object.previous_version.definition }}
{% endif %}
</h4>
</div>
<section class="previous-versions data-view">
<h4>
{% if object.previous_version %}
Previous version of this term: <a href="{% url detail_url object.previous_version.term object.previous_version.pk %}">{{ object.previous_version.term }}</a>
{% endif %}
</h4>
</section>
{% endif %}
{% endblock %}

0 comments on commit 59b3c1a

Please sign in to comment.