Skip to content
Snippets Groups Projects
Select Git revision
  • 10c45b75a1710dba8a10de35f9aa6da6e96bc731
  • main default protected
  • OZG-8252-gitlab-pipelines
  • OZG-7856_schadcode_scanner
  • release
  • develop
  • OZG-4097-OSI2-Anbindung
  • OZG-7689_use-new-pm
  • fix-dependencies
  • CommandRepositoryRefactoring
  • OZG-5580-torsten-test-20240902
  • OZG-5580-Configure-To-Connect-To-Zufi
  • fix-keycloak-metadata
  • ozg-3938-disable-grpc-tls
  • OZG-4906
  • 2.28.0
  • 2.27.0
  • 2.26.0
  • 2.25.0
  • 2.24.2
  • 2.24.1
  • 2.24.0
  • 2.23.0
  • 2.22.0
  • 2.21.0
  • 2.20.0
  • 2.19.0
  • 2.18.0
  • 2.17.1
  • 2.17.0
  • 2.16.1
  • 2.16.0
  • 2.15.0
  • 2.14.1
  • bescheid-manager-1.18.0
35 results

mvnw.cmd

  • resources_list.html 1.20 KiB
    {#
    Renders a list of resources with icons and view links.
    
    resources - A list of resources to render
    pkg - A package object that the resources belong to.
    
    Example:
    
      {% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources %}
    
    #}
    <section id="dataset-resources" class="resources">
      <h3>{{ _('Dateien') }}:</h3>
      {% block resource_list %}
        {% if resources %}
          <ul class="{% block resource_list_class %}resource-list{% endblock %}">
            {% block resource_list_inner %}
              {% set can_edit = h.check_access('package_update', {'id':pkg.id }) %}
              {% for resource in resources %}
                {% snippet 'package/snippets/resource_item.html', pkg=pkg, res=resource, can_edit=can_edit %}
              {% endfor %}
            {% endblock %}
          </ul>
        {% else %}
          {% if h.check_access('resource_create', {'package_id': pkg['id']}) %}
              {% trans url=h.url_for('resource.new', id=pkg.name) %}
                <p class="empty">This dataset has no data, <a href="{{ url }}">why not add some?</a></p>
              {% endtrans %}
          {% else %}
              <p class="empty">{{ _('This dataset has no data') }}</p>
          {% endif %}
        {% endif %}
        {% endblock %}
    </section>