{% if logs %}
<h4 onclick='jQ(this).next().toggle()' class='cursor_pointer'>Change Log
	<span class='log_grey'>Click to show the detail information</span>
</h4>

<ul style='display:none'>
	{% for log in logs %}
		<li>
			[{{ log.date }}] - [{{ log.who__username }}] -
			{% if log.original_value %}
			Field {{ log.field }} is changed <strong>from</strong> "{{ log.original_value }}" <strong>to</strong> "{{ log.new_value }}"
			{% else %}
			Field {{ log.field }} is changed <strong>to</strong> "{{ log.new_value }}"
			{% endif %}
		</li>
	{% endfor %}
</ul>
{% else %}
<h4>Change Log</h4>
<ul>
<li class="grey">No log recorded.</li>
</ul>
{% endif %}

