Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save luqmaan/f253af1057cfef374fb2 to your computer and use it in GitHub Desktop.
Save luqmaan/f253af1057cfef374fb2 to your computer and use it in GitHub Desktop.
<a href='{{case.direct_url}}'>{{case.subject}}</a>
<br />
Case {{case.id}} ({{case.status.name}}, Priority {{case.priority}}) updated{% if case.active_user %} by {{case.active_user.name}}{% endif %}.
{% if case.customer.name %}Customer <i>{{case.customer.name}}.</i> {% endif %}
{% if case.customer.company %}Company <i>{{case.customer.company}}.</i> {% endif %}
<br />
{% if case.user.name != '' or case.labels != '' or case.description != '' %}
{% if case.user.name %}Assigned to <i>{{case.user.name}}.</i> {% endif %}
{% if case.labels and case.labels != '' %}Labels <i>{{case.labels}}.</i> {% endif %}
{% if case.description and case.description != '' %}Description <i>{{case.description}}.</i> {% endif %}
<br />
{% endif %}
{% if case.opened_at == case.created_at %}
{% if case.opened_at %}Opened <i>{{case.opened_at | date: "%a, %b %d %I:%M:%S %p" }}.</i> {% endif %}
{% else %}
{% if case.created_at %}Created <i>{{case.created_at | date: "%a, %b %d %I:%M:%S %p" }}.</i> {% endif %}
{% if case.opened_at %}Opened <i>{{case.opened_at | date: "%a, %b %d %I:%M:%S %p" }}.</i> {% endif %}
{% endif %}
{% if case.closed_at %}Closed <i>{{case.closed_at | date: "%a, %b %d %I:%M:%S %p" }}.</i> {% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment