Skip to content

Commit 6dc14fe

Browse files
-
1 parent 915b028 commit 6dc14fe

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

templates/Modules/cluster/cluster_audit.html.twig

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -444,19 +444,17 @@
444444
{% if 'audit_fail' == result %}
445445
{{ ('audit_comments.fail_for_repositories')|trans|raw }}
446446
{% for repository in parameters %}
447-
{{ repository }}{% if false == loop.last %},{% endif %}
447+
{% if is_granted('REPOSITORIES', 'global') %}
448+
<a href="{{ path('repositories_read', {'repository': repository}) }}">{{ repository }}</a>{% if false == loop.last %},{% endif %}
449+
{% else %}
450+
{{ repository }}{% if false == loop.last %},{% endif %}
451+
{% endif %}
448452
{% endfor %}
449453
{% endif %}
450454
{% if 'audit_notice' == result %}
451455
{{ ('audit_comments.' ~ checkpoint ~ '.notice')|trans|raw }}
452456
{% endif %}
453457
{% endblock %}
454-
455-
{% block internal_link %}
456-
{% if is_granted('REPOSITORIES', 'global') %}
457-
<a href="{{ path('repositories') }}">{{ 'repositories'|trans }}</a>
458-
{% endif %}
459-
{% endblock %}
460458
{% endembed %}
461459
{% endif %}
462460

0 commit comments

Comments
 (0)