2013-02-08 14:52:48 +01:00
|
|
|
{% extends "page.html" %}
|
|
|
|
|
|
|
|
{% set source = c.pkg_dict or c.harvest_source %}
|
2013-02-22 18:32:05 +01:00
|
|
|
{% if source %}
|
|
|
|
{% set authorized_user = h.check_access('harvest_source_update', {'id':source.id }) %}
|
|
|
|
{% else %}
|
|
|
|
{% set authorized_user = h.check_access('harvest_source_create') %}
|
|
|
|
{% endif %}
|
2013-02-08 14:52:48 +01:00
|
|
|
|
|
|
|
{% block subtitle %}{{ source.title or source.name }}{% endblock %}
|
|
|
|
|
|
|
|
{% block breadcrumb_content_root_selected %} class="active"{% endblock %}
|
|
|
|
|
|
|
|
{% block breadcrumb_content %}
|
2013-03-08 15:48:49 +01:00
|
|
|
{% if source.organization %}
|
|
|
|
{% set org = source.organization %}
|
2016-03-02 11:44:21 +01:00
|
|
|
<li>{{ h.nav_link(_('Organizations'), named_route='organizations_index') }}</li>
|
|
|
|
<li>{{ h.nav_link(org.title or org.name|truncate(10), named_route='organization_read', id=org.name) }}</li>
|
|
|
|
<li>{{ h.nav_link(_('Harvest Sources'), named_route='{0}_search'.format(c.dataset_type)) }}</li>
|
|
|
|
<li{{ self.breadcrumb_content_root_selected() }}>{{ h.nav_link(c.harvest_source.title|truncate(10), named_route='{0}_read'.format(c.dataset_type), id=c.harvest_source.name) }}</li>
|
2013-02-08 14:52:48 +01:00
|
|
|
{% else %}
|
2016-03-02 11:44:21 +01:00
|
|
|
<li>{{ h.nav_link(_('Harvest Sources'), named_route='{0}_search'.format(c.dataset_type)) }}</li>
|
|
|
|
<li{{ self.breadcrumb_content_root_selected() }}>{{ h.nav_link(c.harvest_source.title|truncate(30), named_route='{0}_read'.format(c.dataset_type), id=c.harvest_source.name) }}</li>
|
2013-02-08 14:52:48 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|