PageRenderTime 15ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_logging/templates/_admin_log_row.tpl

https://code.google.com/p/zotonic/
Smarty Template | 25 lines | 25 code | 0 blank | 0 comment | 5 complexity | a4b1cb2f74f4b7e7a515f63f0957aca9 MD5 | raw file
 1{% with signal_props.log_id|default:id as id %}
 2{% with m.log[id] as l %}
 3<li id="{{ #li.id }}" class="clearfix">
 4        <span class="zp-5">{{ l.type|default:"-" }}</span>
 5        <span class="zp-25">{{ l.module|default:"-" }}{% if l.line %}:{{ l.line }}{% endif %}</span>
 6        <span class="zp-45">
 7            {% if l.message|length > 200 %}
 8            <pre>
 9                {{ l.message|truncate:255|force_escape|linebreaksbr }}
10            </pre>
11            {% else %}
12                {{ l.message|force_escape|linebreaksbr }}
13            {% endif %}
14        </span>
15        <span class="zp-15">
16            {% if l.user_id %}
17            <a href="{% url admin_edit_rsc id=l.user_id %}">{{ m.rsc[l.user_id].title }}</a>
18            {% else %}
19            -
20            {% endif %}
21        </span>
22        <span class="zp-10">{{ l.created|date:"d M Y, H:i" }}</span>
23</li>
24{% endwith %}
25{% endwith %}