{% extends "base.html" %} {% import "_base.html" as _base %} {% import "_wtform.html" as wtform %} {% import "_section.html" as _section %} {% block breadcrumbs %} {{ _base.breadcrumbs(section, [ (gettext('Sandbox release aliases'), '') ]) }} {% endblock %} {% set current_revision = current_section['revision'] -%} {% set is_editable = is_owner and (section['revision'] == current_revision) -%} {% block content %}
{% trans -%} You are viewing aliases from an outdated revision of the section! {%- endtrans %}
{% trans actual_url=url_for('aliases', path=section['path'], revision=current_revision) -%} See aliases in section's current revision r{{ current_revision }}. {%- endtrans %}
{{ wtform.field_widget(empty_form['id'], compact=True) }} {{ wtform.field_widget(empty_form['name'], compact=True) }} | {{ wtform.field_widget(empty_form['resource'], compact=True) }} {% trans %}new{% endtrans %} |
{{ _section.sandbox_rule_config_source({'resource': form.resource.data, 'description': form.resource.resource_description}) }}
{% if form.used_in_rules %}{% trans %}In use by {% endtrans %} {% for rulename in form.used_in_rules %} {{ _section.rule_link(section, {'name': rulename}) }}{% if not loop.last %}, {% endif %} {% endfor %}
{% else %}{% trans %}Is not in use by any rule{% endtrans %}
{% endif %}{% trans %}No aliases set.{% endtrans %}
{% endif %} {% endif %} {% endblock %}