Fix for removed snippet from ckan core

This commit is contained in:
John Martin 2013-03-07 11:52:59 +00:00
parent 703339a49e
commit 14e51ec587
2 changed files with 13 additions and 10 deletions

View File

@ -16,10 +16,9 @@
<li>{{ h.nav_named_link(_('View harvest source'), '{0}_read'.format(c.dataset_type), id=source.name, class_='btn', icon='eye-open')}}</li>
{% endblock %}
{% block page_header %}
{% snippet 'snippets/page_header.html', items=[
h.build_nav_icon('{0}_admin'.format(c.dataset_type), _('Dashboard'), id=source.name, icon='dashboard'),
h.build_nav_icon('harvest_job_list'.format(c.dataset_type), _('Jobs'), source=source.name, icon='reorder'),
h.build_nav_icon('{0}_edit'.format(c.dataset_type), _('Edit'), id=source.name, icon='edit'),
] %}
{% block page_header_tabs %}
{{ h.build_nav_icon('{0}_admin'.format(c.dataset_type), _('Dashboard'), id=source.name, icon='dashboard') }}
{{ h.build_nav_icon('harvest_job_list'.format(c.dataset_type), _('Jobs'), source=source.name, icon='reorder') }}
{{ h.build_nav_icon('{0}_edit'.format(c.dataset_type), _('Edit'), id=source.name, icon='edit') }}
{% endblock %}

View File

@ -32,10 +32,14 @@
{% block primary_content %}
<article class="module prose">
{% block page_header %}
{% snippet 'snippets/page_header.html', items=[
h.build_nav_icon('{0}_read'.format(c.dataset_type), _('Datasets'), id=source.name, icon='sitemap'),
h.build_nav_icon('{0}_about'.format(c.dataset_type), _('About'), id=source.name, icon='info-sign'),
] %}
<header class="module-content page-header">
<ul class="nav nav-tabs">
{% block page_header_tabs %}
{{ h.build_nav_icon('{0}_read'.format(c.dataset_type), _('Datasets'), id=source.name, icon='sitemap') }}
{{ h.build_nav_icon('{0}_about'.format(c.dataset_type), _('About'), id=source.name, icon='info-sign') }}
{% endblock %}
</ul>
</header>
{% endblock %}
{% block primary_content_inner %}{% endblock %}
</article>