{% if "SharedContentDetails" in v %}
|
{{ msg|replace('\n', '
')|safe }}
{% for key, val in v.MESSAGE.items() %}
{% if key.startswith('QUOTE') %}
| {{ key }}: {{ val }} |
{% endif %}
{% endfor %}
|
{% for key, val in v["SharedContentDetails"].items() %}
{% if val is not none and val != "" %}
| {{ key }}: |
{% if key == "URI_DECODED_METADATA" or key == "SHARED_MESSAGE_FLAGS" or key == "SHARED_CONTENT_FILE_METADATA" or key == "SHARED_CONTENT_FILE_LOCATION" %}
{% for k, v in val.items() %}
{% if key == "SHARED_CONTENT_FILE_METADATA" or key == "SHARED_CONTENT_FILE_LOCATION" and v is mapping %}
{% for k2, v2 in v.items() %}
{{ k2 }}: {{ v2 }}
{% endfor %}
{% else %}
{{ k }}: {{ v }}
{% endif %}
{% endfor %}
|
{% else %}
{{ val }} |
{% endif %}
{% endif %}
{% endfor %}
{% elif class == "msg rcvd fwd" or class == "msg rcvd myquote" or class == "msg rcvd theirquote" %}
|
{{ msg|replace('\n', '
') |safe }}
{% for key, val in v.MESSAGE.items() %}
{% if key.startswith('QUOTE') %}
| {{ key }}: {{ val }} |
{% endif %}
{% endfor %}
{% else %}
{{ msg|replace('\n', '
') |safe }}
{% endif %}