You are here

node-details.html.twig in Permissions by Term 8.2

Same filename and directory in other branches
  1. 8 src/View/node-details.html.twig
{% trans %}This widget shows information about taxonomy term related permissions. It's being updated, as soon you make any related changes in the form.{% endtrans %}<br /><br />

<b>{% trans %}Allowed users:{% endtrans %}</b>
{% if users is not empty %}
  {% for user in users  %}
    {{ user.displayname }}{% if not loop.last %}, {% endif %}
  {% endfor %}
{% else %}
  <i>{% trans %}No user restrictions.{% endtrans %}</i>
{% endif %}
<br />
<b>{% trans %}Allowed roles:{% endtrans %}</b>
{% if roles is not empty %}
  {% for role in roles %}
    {{ role.label }}{% if not loop.last %}, {% endif %}
  {% endfor %}
{% else %}
  <i>{% trans %}No role restrictions.{% endtrans %}</i>
{% endif %}

File

src/View/node-details.html.twig
View source
  1. {% trans %}This widget shows information about taxonomy term related permissions. It's being updated, as soon you make any related changes in the form.{% endtrans %}<br /><br />
  2. <b>{% trans %}Allowed users:{% endtrans %}</b>
  3. {% if users is not empty %}
  4. {% for user in users %}
  5. {{ user.displayname }}{% if not loop.last %}, {% endif %}
  6. {% endfor %}
  7. {% else %}
  8. <i>{% trans %}No user restrictions.{% endtrans %}</i>
  9. {% endif %}
  10. <br />
  11. <b>{% trans %}Allowed roles:{% endtrans %}</b>
  12. {% if roles is not empty %}
  13. {% for role in roles %}
  14. {{ role.label }}{% if not loop.last %}, {% endif %}
  15. {% endfor %}
  16. {% else %}
  17. <i>{% trans %}No role restrictions.{% endtrans %}</i>
  18. {% endif %}