Skip to content

Commit

Permalink
Merge pull request #2029 from laws-africa/judgment-meta
Browse files Browse the repository at this point in the history
Changes order on judgment metadata
  • Loading branch information
actlikewill authored Sep 13, 2024
2 parents f50867f + 40ceb20 commit 811d2d9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
2 changes: 0 additions & 2 deletions peachjam/static/stylesheets/components/_document-content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@
}

margin-bottom: 0px;
display: flex;
flex-wrap: wrap;

dt {
Expand All @@ -383,7 +382,6 @@
}
dd {
padding-left: 0.5rem;
width: calc(100% - var(--dt-width));
flex: 0 0 calc(100% - var(--dt-width));
}

Expand Down
28 changes: 12 additions & 16 deletions peachjam/templates/peachjam/judgment_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,34 +110,30 @@
{% endwith %}
{% endblock %}
{% block extra-metadata %}
{% if document.flynote %}
<dl>
<dl class="document-metadata-list d-md-flex">
{% if document.flynote %}
<dt>
{% trans 'Flynote' %}
</dt>
<dd>
{{ document.flynote|safe }}
</dd>
</dl>
{% endif %}
{% if document.order %}
<dl>
{% endif %}
{% if document.case_summary %}
<dt>
{% trans 'Order' %}
{% trans 'Case summary' %}
</dt>
<dd>
{{ document.order|safe }}
{{ document.case_summary|safe }}
</dd>
</dl>
{% endif %}
{% if document.case_summary %}
<dl>
{% endif %}
{% if document.order %}
<dt>
{% trans 'Case summary' %}
{% trans 'Order' %}
</dt>
<dd>
{{ document.case_summary|safe }}
{{ document.order|safe }}
</dd>
</dl>
{% endif %}
{% endif %}
</dl>
{% endblock %}
2 changes: 1 addition & 1 deletion peachjam/templates/peachjam/layouts/document_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h1>{{ document.title }}</h1>
<div class="row">
<div class="col-md mb-3">
{% block document-metadata-content %}
<dl class="document-metadata-list">
<dl class="document-metadata-list d-flex">
{% block document-metadata-content-jurisdiction %}
{% if MULTIPLE_JURISDICTIONS or document.locality %}
<dt>
Expand Down

0 comments on commit 811d2d9

Please sign in to comment.