mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-25 15:56:07 +03:00
Generate offline message in the template
This commit is contained in:
parent
c397a953a1
commit
911487871d
@ -48,7 +48,6 @@ class HomeController extends AbstractController
|
|||||||
{
|
{
|
||||||
$operator = $this->getOperator();
|
$operator = $this->getOperator();
|
||||||
$is_online = is_operator_online($operator['operatorid']);
|
$is_online = is_operator_online($operator['operatorid']);
|
||||||
$users_url = $this->generateUrl('users', array('nomenu' => 1));
|
|
||||||
|
|
||||||
$page = array(
|
$page = array(
|
||||||
'version' => MIBEW_VERSION,
|
'version' => MIBEW_VERSION,
|
||||||
@ -62,10 +61,6 @@ class HomeController extends AbstractController
|
|||||||
'featuresPage' => $this->generateUrl('settings_features'),
|
'featuresPage' => $this->generateUrl('settings_features'),
|
||||||
'isOnline' => $is_online,
|
'isOnline' => $is_online,
|
||||||
'warnOffline' => true,
|
'warnOffline' => true,
|
||||||
'goOnlineLink' => getlocal(
|
|
||||||
"You are Offline.<br/><a href=\"{0}\">Connect...</a>",
|
|
||||||
array($users_url)
|
|
||||||
),
|
|
||||||
'title' => getlocal('Home'),
|
'title' => getlocal('Home'),
|
||||||
'menuid' => 'main',
|
'menuid' => 'main',
|
||||||
);
|
);
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{{#unless isOnline}}
|
{{#unless isOnline}}
|
||||||
<li id="offwarn">
|
<li id="offwarn">
|
||||||
<img src="{{asset "@CurrentStyle/images/dash/warn.gif"}}" alt="" width="24" height="24"/>
|
<img src="{{asset "@CurrentStyle/images/dash/warn.gif"}}" alt="" width="24" height="24"/>
|
||||||
<p>{{{goOnlineLink}}}</p>
|
<p>{{{l10n "You are Offline.<br/><a href=\"{0}\">Connect...</a>" (route "users" nomenu="1")}}}</p>
|
||||||
</li>
|
</li>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Loading…
Reference in New Issue
Block a user