Last active
September 22, 2020 18:20
-
-
Save Sarapulov/04b318130f73e4f93e84d22d50f4c411 to your computer and use it in GitHub Desktop.
show_attachments_email.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for comment in ticket.comments %}{% capture indent %}{% assign current_index = forloop.index %}{% for i in (1..current_index) %}{% endfor %}{% endcapture %}{{indent}}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br><i>{{comment.author.name}} wrote on {{comment.created_at}}:</i><br>{{indent}}{{ comment.value_rich }}{% if comment.attachments.size > 0 %}<br>{{indent}}<i>Attachments:</i><br>{% for attachment in comment.attachments %}{{indent}}<a href="{{ attachment.url }}" title="{{ attachment.filename }}">{{ attachment.filename }}</a>{% endfor %}<br>{% endif %}{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment