From 911487871ddb5f925df0bd987db13619e1d7ec1a Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 18 Sep 2014 08:32:16 +0000 Subject: [PATCH] Generate offline message in the template --- src/mibew/libs/classes/Mibew/Controller/HomeController.php | 5 ----- .../pages/default/templates_src/server_side/_menu.handlebars | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/mibew/libs/classes/Mibew/Controller/HomeController.php b/src/mibew/libs/classes/Mibew/Controller/HomeController.php index 99f7c3fb..8c97c429 100644 --- a/src/mibew/libs/classes/Mibew/Controller/HomeController.php +++ b/src/mibew/libs/classes/Mibew/Controller/HomeController.php @@ -48,7 +48,6 @@ class HomeController extends AbstractController { $operator = $this->getOperator(); $is_online = is_operator_online($operator['operatorid']); - $users_url = $this->generateUrl('users', array('nomenu' => 1)); $page = array( 'version' => MIBEW_VERSION, @@ -62,10 +61,6 @@ class HomeController extends AbstractController 'featuresPage' => $this->generateUrl('settings_features'), 'isOnline' => $is_online, 'warnOffline' => true, - 'goOnlineLink' => getlocal( - "You are Offline.
Connect...", - array($users_url) - ), 'title' => getlocal('Home'), 'menuid' => 'main', ); diff --git a/src/mibew/styles/pages/default/templates_src/server_side/_menu.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/_menu.handlebars index 6569c010..c5b76d38 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/_menu.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/_menu.handlebars @@ -4,7 +4,7 @@ {{#unless isOnline}}
  • -

    {{{goOnlineLink}}}

    +

    {{{l10n "You are Offline.
    Connect..." (route "users" nomenu="1")}}}

  • {{/unless}} {{/if}}