{% translate "Links" %}

{% if can_edit %} {% translate "Add link" %} {% endif %}
{% if links %}
    {% for link in links %}{% with id_str=link.id|stringformat:"s" %}
  • {{ link.title }} {% translate "(opens in a new tab)" %} {% if can_edit %}
    {% translate "Edit" %}: {{ link.title }} {% url 'jobs:link_delete' job.id link.id as delete_url %} {% blocktranslate with title=link.title asvar dialog_title %}Delete link {{ title }}?{% endblocktranslate %} {% translate "The link is removed from the job. The file itself is not touched." as dialog_body %} {% translate "Delete" as dialog_confirm %} {% with dialog_id="confirm-delete-link-"|add:id_str %}{% include "components/confirm_dialog.html" with id=dialog_id title=dialog_title body=dialog_body action_url=delete_url confirm_label=dialog_confirm hx_target="#links-section" %}{% endwith %}
    {% endif %}
  • {% endwith %}{% endfor %}
{% else %}

{% translate "No links yet." %}

{% endif %}