Skip to content

Commit

Permalink
[#688] Adds page_heading and inner blocks to related templates
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Mar 26, 2013
1 parent 582ae79 commit 6b7528d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ckan/templates/related/confirm_delete.html
Expand Up @@ -6,6 +6,7 @@

{% block main_content %}
<section class="module span6 offset3">
{% block form %}
<div class="module-content">
<p>{{ _('Are you sure you want to delete related item - {name}?').format(name=c.related_dict.title) }}</p>
<p class="form-actions">
Expand All @@ -14,6 +15,7 @@
<button class="btn btn-primary" type="submit" name="delete" >{{ _('Confirm Delete') }}</button>
</form>
</p>
{% endblock %}
</div>
</section>
{% endblock %}
10 changes: 9 additions & 1 deletion ckan/templates/related/dashboard.html
Expand Up @@ -12,8 +12,11 @@
{% block primary_content %}
<article class="module">
<div class="module-content">
<h1 class="page-heading">{{ _('Apps & Ideas') }}</h1>
<h1 class="page-heading">
{% block page_heading %}{{ _('Apps & Ideas') }}{% endblock %}
</h1>

{% block related_items %}
{% if item_count %}
{% trans first=page.first_item, last=page.last_item, item_count=item_count %}
<p>Showing items <strong>{{ first }} - {{ last }}</strong> of <strong>{{ item_count }}</strong> related items found</p>
Expand All @@ -25,11 +28,16 @@ <h1 class="page-heading">{{ _('Apps & Ideas') }}</h1>
{% else %}
<p class="empty">{{ _('There have been no apps submitted yet.') }}
{% endif %}
{% endblock %}

{% block related_list %}
{% snippet "related/snippets/related_list.html", related_items=page.items %}
{% endblock %}
</div>

{% block page_pagination %}
{{ page.pager() }}
{% endblock %}
</article>
{% endblock %}

Expand Down

0 comments on commit 6b7528d

Please sign in to comment.