Fix for removed snippet from ckan core
This commit is contained in:
parent
703339a49e
commit
14e51ec587
|
@ -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>
|
<li>{{ h.nav_named_link(_('View harvest source'), '{0}_read'.format(c.dataset_type), id=source.name, class_='btn', icon='eye-open')}}</li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_header %}
|
|
||||||
{% snippet 'snippets/page_header.html', items=[
|
{% block page_header_tabs %}
|
||||||
h.build_nav_icon('{0}_admin'.format(c.dataset_type), _('Dashboard'), id=source.name, icon='dashboard'),
|
{{ 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('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'),
|
{{ h.build_nav_icon('{0}_edit'.format(c.dataset_type), _('Edit'), id=source.name, icon='edit') }}
|
||||||
] %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -32,10 +32,14 @@
|
||||||
{% block primary_content %}
|
{% block primary_content %}
|
||||||
<article class="module prose">
|
<article class="module prose">
|
||||||
{% block page_header %}
|
{% block page_header %}
|
||||||
{% snippet 'snippets/page_header.html', items=[
|
<header class="module-content page-header">
|
||||||
h.build_nav_icon('{0}_read'.format(c.dataset_type), _('Datasets'), id=source.name, icon='sitemap'),
|
<ul class="nav nav-tabs">
|
||||||
h.build_nav_icon('{0}_about'.format(c.dataset_type), _('About'), id=source.name, icon='info-sign'),
|
{% 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 %}
|
{% endblock %}
|
||||||
{% block primary_content_inner %}{% endblock %}
|
{% block primary_content_inner %}{% endblock %}
|
||||||
</article>
|
</article>
|
||||||
|
|
Loading…
Reference in New Issue