PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/priv/sites/zotonic_status/templates/_sites.tpl

https://code.google.com/p/zotonic/
Smarty Template | 59 lines | 54 code | 5 blank | 0 comment | 6 complexity | fd7b1477bd24212aa6a1b21bc792125d MD5 | raw file
 1			<thead>
 2				<tr>
 3					<th>{_ Site _}</th>
 4					<th>{_ Status _}</th>
 5					{% if has_user %}
 6					<th>{_ Action _}</th>
 7					{% endif %}
 8				</tr>
 9			</thead>
10			
11			<tbody>
12{% for status, ss in sites %}
13	{% for name,childspec,pid,time in ss %}
14		{% if name /= 'zotonic_status' and (has_user or not configs[name].hidden) %}
15			<tr id="site-{{ name }}" class="{{ status }}">
16				<td>
17					<a href="http://{{ configs[name].hostname|escape }}/">http://{{ configs[name].hostname|escape }}/</a>
18				</td>
19				<td>
20					<span class="waiting status">{_ Waiting _}</span>
21					<span class="running status">{_ Running _}</span>
22					<span class="retrying status">{_ Retrying _}</span>
23					<span class="failed status">{_ Failed _}</span>
24					<span class="stopped status">{_ Stopped _}</span>
25				</td>
26				{% if has_user %}
27				<td>
28					{% button 
29							text=_"start"
30							class="start" 
31							title=_"Start the site." 
32							postback={site_start site=name} %}
33
34					{% button 
35							text=_"stop"
36							class="stop" 
37							title=_"Stop the site." 
38							postback={site_stop site=name} %}
39
40					{% button 
41							text=_"restart"
42							class="restart" 
43							title=_"Restart the site, all users will be logged off." 
44							postback={site_restart site=name} %}
45
46					{% button 
47							text=_"flush"
48							class="flush" 
49							title=_"Flush and reload all settings, templates etc." 
50							postback={site_flush site=name} %}
51					
52					{% all include "_z_status_button.tpl" %}
53				</td>
54				{% endif %}
55			</tr>
56		{% endif %}
57	{% endfor %}
58{% endfor %}
59			</tbody>