{% extends "page.html" %} {% import "_dgu_jinja_util.html" as m with context %} {% set can_update=h.check_access('package_update',{'id':c.pkg.id}) %} {% set can_publish=h.is_executive_editor() or h.is_sysadmin() %} {% set can_delete=h.check_access('package_delete', {'id':c.pkg.id}) and not h.is_package_deleted(c.pkg) %} {% set harvest_object=h.get_harvest_object(c.pkg) %} {% set can_harvest=harvest_object and h.check_access('harvest_source_update',{'id':harvest_object.source.id}) %} {% set update_link=h.url_for(controller='package', action='edit', id=c.pkg.name) %} {% set dataset_is_from_ns_pubhub = h.dataset_is_from_ns_pubhub(c.pkg_dict) %} {% set admin_mode = can_update or can_delete or can_harvest %} {% set all_licences = h.get_licenses(c.pkg) %} {% set publisher = c.pkg_dict.get('organization') %} {% set draft = h.is_draft_item(c.pkg_dict) %} {% set unpublished = h.is_unpublished_item(c.pkg_dict) %} {#% block secondary %}{% endblock %#} {% block secondary_content %} {% endblock %} {% block primary_content_inner %}
{{ h.get_total_views(c.pkg_dict) }} ogledov
Všečkaj

{{ c.pkg_dict.get('title', c.pkg_dict['name']) }} {% if draft or unpublished %} {% if draft and unpublished %}(v potrjevanju){% elif unpublished %}(v urejanju){% else %}(osnutek){% endif %}{% endif %}

{% with is_location_data = h.is_location_data(c.pkg_dict) %}
{# no whitespace here #}{{ c.pkg_dict.get('notes','') }}{# no whitespace here #} Nadaljujte z branjem ... {# no whitespace here #}{% if unpublished %} {% with notes=c.pkg.extras.get('release-notes','').strip() %} {% if notes %}Opombe ob izdaji:{% endif %} {{ notes }} {% endwith %} {% endif %}{# no whitespace here #}
{% if admin_mode %}
Administrativna orodja
{% endif %}
{% if unpublished %}
To je zapis podatkov v {% if draft %}potrjevanju{% else %}urejanju{% endif %}.
{% endif %} {% if c.pkg_dict.get('state') == 'deleted' %}
{% with deleted=m.if_(is_location_data,'umaknjena','izbrisana') %}
{{ deleted }} zbirka podatkov
{% endwith %} {% with deleted=m.if_(is_location_data,'umaknjena','izbrisana') %}
Ta zbirka podatkov je {{ deleted }}. Le administratorji in glavni uredniki jo lahko vidijo v tem stanju.
{% endwith %}
{% endif %} {% block dataset_detail %} {{ package_content() }} {% endblock %} {% endwith %}
{% endblock %}