{# XXX Hacky #}
{# With the title here, people will know that all of the things in the #}
{# panes are log messages #}
{% if object.getAvailableTags %}
Event Log Messages
Use this form to apply a tag to your new log entry. Choose a tag
name from the dropdown menu or enter a new one. If you are
creating a new tag, please also provide a display name.
{% endif %}
{# Loop over the available tags. #}
{% if object.getAvailableTags %}
{% for tag in object.getAvailableTags %}
{% if tag.name in blessed_tags %}
{# Create a div to hold the pane innerHTML for this tag #}
{# A section for the images #}
{% if object|logsForTagHaveImage:tag.name %}
{% for log in object|getLogsForTag:tag.name %}
{% if log.hasImage %}
{{log.comment|sanitize}}
{% if log.fileurl %}
{{log.filename}}.
{% endif %}
Submitted by {{log.issuer}} on {{log.created}}
{% endif %}
{% endfor %}
{% endif %}
{# A section for the text-only captions #}
{% if object|logsForTagHaveText:tag.name %}
{# Set up regular log message table #}
No.
{{ "logtime"|timeselect:"utc" }} Log Entry Created
Submitter
Comment
{% for log in object|getLogsForTag:tag.name %}
{% if not log.hasImage %}
{{log.getN}}
{{log.created|multiTime:"logtime"}}
{{log.issuer}}
{{log.comment|sanitize}}
{% if log.fileurl %}
{{log.filename}}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %} {# endif the tag is blessed #}
{% endfor %}
{% endif %}
{# XXX Hacky. We don't want the title here if we're doing panes. #}
{# And we only do panes if there are available tags. #}
{% if not object.getAvailableTags %}
Event Log Messages
Use this form to apply a tag to your new log entry. Choose a tag
name from the dropdown menu or enter a new one. If you are
creating a new tag, please also provide a display name.
{% endif %}
{% if object.eventlog_set.count %}
{% if blessed_tags %}
Use this form to tag an existing log message. Choose a tag name from the
dropdown menu or enter a new one. If you are creating a new tag, please
also provide a display name.
{% endif %}
No.
{{ "logtime"|timeselect:"utc" }} Log Entry Created
Submitter
{% if object.getAvailableTags %}
Tags
{% endif %}
Comment
{% for log in object.eventlog_set.iterator %}
{{log.getN}}
{{log.created|multiTime:"logtime"}}
{{log.issuer}}
{% if object.getAvailableTags %}
{%for tag in log.tag_set.all %}
{{tag.name}}
{% endfor %}
{% endif %}
{{log.comment|sanitize}}
{% if log.fileurl %}
{{log.filename}}
{% endif %}