diff --git a/app/views/layouts/_menu.php b/app/views/layouts/_menu.php index cd8a31a..ab8b930 100755 --- a/app/views/layouts/_menu.php +++ b/app/views/layouts/_menu.php @@ -5,9 +5,9 @@ * having placeholders for user id and name that will be replaced with current user's * data right before echoing the menu. */ - $key = 'menu.'.current_user()->level; + $key = 'menu.' . Rails::application()->I18n()->locale() . '.'.current_user()->level; $menu = Rails::cache()->read($key); - + if (!$menu) : ob_start(); ?> @@ -15,10 +15,10 @@
  • linkTo($this->t('.account._'), ['user#home'], ['onclick' => 'if(!User.run_login_onclick(event)) return false;', 'class' => 'login-button']) ?> linkTo('■', '#', ['class' => 'submenu-button']) ?>
  • -
  • linkTo($this->t('.posts._'), ['controller' => 'post', 'action' => 'index']) ?> - linkTo('■', '#', ['class' => 'submenu-button']) ?> +
  • linkTo($this->t('.posts._'), ['controller' => 'post', 'action' => 'index']) ?> + linkTo('■', '#', ['class' => 'submenu-button']) ?> @@ -207,10 +207,7 @@
  • linkTo($this->t('.help.site'), "help#") ?>
  • - - - - +
  • linkTo($this->t('.more'), ['controller' => 'static', 'action' => 'more']) ?>