Skip to content

Instantly share code, notes, and snippets.

@Sarapulov
Last active September 22, 2020 18:20
Show Gist options
  • Save Sarapulov/04b318130f73e4f93e84d22d50f4c411 to your computer and use it in GitHub Desktop.
Save Sarapulov/04b318130f73e4f93e84d22d50f4c411 to your computer and use it in GitHub Desktop.
show_attachments_email.html
{% 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