<commit_before>{% ckan_extends %}

{% block secondary_content %}
  {% snippet 'package/snippets/info.html', res=res %}

  <section class="module module-narrow">
    <div class="module context-info">
      <div class="module-content">
          {# The first option will always be the selected one for now until the new UI is also implemented for the other linked views #}
          <a class="dataset-sidebar dataset-sidebar-selected" href="{{ h.url_for(pkg.type + '_read', controller='dataset', action='read', id=pkg.name) }}">{{ _("Subsystem's information") }}</a>
          <a class="dataset-sidebar" href="{{ h.url_for('apply_permissions.permission_application_settings', subsystem_id=pkg.name) }}">{{ _('Access request settings') }}</a>
          <a class="dataset-sidebar" href="{{ h.url_for('apply_permissions.manage_permission_applications', subsystem_id=pkg.name) }}">{{ _('Received access requests') }}</a>
      </div>
    </div>
  </section>
{% endblock %}<commit_msg>Fix dataset edit when apply permission is not enabled<commit_after>{% ckan_extends %}

{% block secondary_content %}
  {% snippet 'package/snippets/info.html', res=res %}

  <section class="module module-narrow">
    <div class="module context-info">
      <div class="module-content">
          {# The first option will always be the selected one for now until the new UI is also implemented for the other linked views #}
          <a class="dataset-sidebar dataset-sidebar-selected" href="{{ h.url_for(pkg.type + '_read', controller='dataset', action='read', id=pkg.name) }}">{{ _("Subsystem's information") }}</a>

          {% if h.is_extension_loaded('apply_permissions_for_service') %}
            <a class="dataset-sidebar" href="{{ h.url_for('apply_permissions.permission_application_settings', subsystem_id=pkg.name) }}">{{ _('Access request settings') }}</a>
            <a class="dataset-sidebar" href="{{ h.url_for('apply_permissions.manage_permission_applications', subsystem_id=pkg.name) }}">{{ _('Received access requests') }}</a>
          {% endif %}
      </div>
    </div>
  </section>
{% endblock %}
{'fraction_non_alphanumeric': 0.1664282308059132, 'fraction_numerical': 0.0, 'mean_word_length': 4.271356783919598, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3111474', 'n_tokens_mistral': 634, 'n_tokens_neox': 599, 'n_words': 155}