Skip to content

Commit

Permalink
fixes doc count in template
Browse files Browse the repository at this point in the history
  • Loading branch information
actlikewill committed Jul 24, 2023
1 parent bd6fd7d commit 7ed9da5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion peachjam/templates/peachjam/author_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{% block title %}{{ author }}{% endblock %}
{% block page-title %}
<h1 class="mt-4">{% blocktrans %} Documents by {{ author }} {% endblocktrans %}</h1>
{% include 'peachjam/_document_count.html' %}
{% endblock %}
{% block entity-profile %}
{% with entity_profile_title=author entity_profile=author.entity_profile.first %}
Expand Down
2 changes: 2 additions & 0 deletions peachjam/templates/peachjam/layouts/document_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
{% block page-header %}
{% block page-title %}
<h1 class="mt-4">{% trans 'Documents' %}</h1>
{% endblock %}
{% block document-count %}
{% include 'peachjam/_document_count.html' %}
{% endblock %}
{% endblock %}
Expand Down
1 change: 0 additions & 1 deletion peachjam/templates/peachjam/legal_instrument_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
{% endblock %}
{% block page-title %}
<h1 class="mt-4">{% trans 'Legal Instruments' %}</h1>
{% include 'peachjam/_document_count.html' %}
{% endblock %}
5 changes: 1 addition & 4 deletions peachjam/templates/peachjam/taxonomy_detail.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{% extends 'peachjam/layouts/document_list.html' %}
{% load peachjam i18n %}
{% block title %}{{ taxonomy.name }}{% endblock %}
{% block page-title %}
<h1 class="mt-4">{{ taxonomy.name }}</h1>
{% include 'peachjam/_document_count.html' %}
{% endblock %}
{% block page-title %}<h1 class="mt-4">{{ taxonomy.name }}</h1>{% endblock %}
{% block breadcrumbs %}
<div class="container">
<nav aria-label="breadcrumb">
Expand Down

0 comments on commit 7ed9da5

Please sign in to comment.