changing status page to use language file

pull/18/head^2
Pepijn Over 2014-01-21 22:33:21 +01:00
parent 3c344cba8e
commit 552187c2ab
2 changed files with 7 additions and 4 deletions

View File

@ -68,6 +68,9 @@ class Status extends Core {
'offline_fg' => '#f7cece', 'offline_fg' => '#f7cece',
'online_bg' => '#53a000', 'online_bg' => '#53a000',
'online_fg' => '#d8f7ce', 'online_fg' => '#d8f7ce',
'label_last_check' => psm_get_lang('servers', 'last_check'),
'label_last_online' => psm_get_lang('servers', 'last_online'),
'label_rtime' => psm_get_lang('servers', 'rtime'),
); );
$this->tpl->addTemplateData($this->getTemplateId(), $tpl_data); $this->tpl->addTemplateData($this->getTemplateId(), $tpl_data);

View File

@ -52,8 +52,8 @@
<!--%tpl_repeat_servers_offline--> <!--%tpl_repeat_servers_offline-->
<div class="entity"> <div class="entity">
<h2>{label}</h2> <h2>{label}</h2>
<p>Last online: {last_online_nice}</p> <p>{label_last_online}: {last_online_nice}</p>
<p>Last checked: {last_checked_nice}</p> <p>{label_last_check}: {last_checked_nice}</p>
</div> </div>
<!--%%tpl_repeat_servers_offline--> <!--%%tpl_repeat_servers_offline-->
{servers_offline} {servers_offline}
@ -62,8 +62,8 @@
<!--%tpl_repeat_servers_online--> <!--%tpl_repeat_servers_online-->
<div class="entity"> <div class="entity">
<h2>{label}</h2> <h2>{label}</h2>
<p>Last checked: {last_checked_nice}</p> <p>{label_last_online}: {last_checked_nice}</p>
<p>Latency: {rtime}s</p> <p>{label_rtime}: {rtime}s</p>
</div> </div>
<!--%%tpl_repeat_servers_online--> <!--%%tpl_repeat_servers_online-->
{servers_online} {servers_online}