{%- for action in record_actions %} {%- if action == 'edit' %} {{ action }} {#{%- elseif action == 'show' %}#} {#{{ action }}#} {%- endif %} {%- endfor %}