PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/modules/mod_logging/templates/admin_log.tpl

https://code.google.com/p/zotonic/
Smarty Template | 40 lines | 32 code | 8 blank | 0 comment | 2 complexity | 349d43aa9d6cbde0b1e92602221e1bc0 MD5 | raw file
 1{% extends "admin_log_base.tpl" %}
 2
 3{% block title %}{_ Log messages _}{% endblock %}
 4
 5{% block title_log %}{_ Log messages _}{% endblock %}
 6
 7{% block content_log %}
 8
 9		<h3 class="above-list ">
10			{_ Most recent messages _}
11		</h3>
12
13		{% with m.search[{log page=q.page pagelen=20}] as result %}
14			<ul class="short-list">
15				<li class="headers clearfix" id="log-headers">
16					<span class="zp-5">{_ Type _}</span>
17					<span class="zp-25">{_ Module _}</span>
18					<span class="zp-45">{_ Message _}</span>
19					<span class="zp-15">{_ User _}</span>
20					<span class="zp-10">{_ Date _}</span>
21				</li>
22			</ul>
23
24		   <div class="wrapper" style="height: 620px; overflow: auto">
25			   <ul class="short-list" id="log-area">
26				{% for id in result %}
27					{% include "_admin_log_row.tpl" id=id %}
28				{% empty %}
29					<li>
30						{_ No log messages. _}
31					</li>
32				{% endfor %}
33				</ul>
34			   {% button text="more..." action={moreresults result=result target="log-area" template="_admin_log_row.tpl"} %}
35		   </div>
36		{% endwith %}
37
38        {% wire action={connect signal={log_message} action={addlog target="log-area"}} %}
39
40{% endblock %}