I18n()->locale() . '.'.current_user()->level; $menu = Rails::cache()->read($key); if (!$menu) : ob_start(); ?>
  • linkTo($this->t('.account._'), ['user#home'], ['onclick' => 'if(!User.run_login_onclick(event)) return false;', 'class' => 'login-button']) ?> linkTo('■', '#', ['class' => 'submenu-button']) ?>
      is_anonymous()) : ?>
    • linkTo($this->t('.account.login'), ['controller' => 'user', 'action' => 'login'], ['id' => 'login-link', 'class' => 'login-button']) ?>
    • linkTo($this->t('.account.reset'), ['controller' => 'user', 'action' => 'reset_password']) ?>
    • linkTo($this->t('.account.profile'), ['controller' => 'user', 'action' => 'show', 'id' => "-user.id-"]) // MI: -user.id- ?>
    • linkTo($this->t('.account.mail'), ['controller' => 'dmail', 'action' => 'inbox']) ?>
    • linkTo($this->t('.account.favorites'), ['controller' => 'post', 'action' => 'index', 'tags' => "order:vote vote:3:-user.name-"]) // MI: -user.name- ?>
    • linkTo($this->t('.account.settings'), ['controller' => 'user', 'action' => 'edit']) ?>
    • linkTo($this->t('.account.change_password'), ['controller' => 'user', 'action' => 'change_password']) ?>
    • linkTo($this->t('.account.logout'), ['controller' => 'user', 'action' => 'logout']/* (MI: Since menu is cached, this doesn't make sense) , ['from' => $this->request()->path()]*/) ?>
  • linkTo($this->t('.posts._'), ['controller' => 'post', 'action' => 'index']) ?> linkTo('■', '#', ['class' => 'submenu-button']) ?>
    • formTag('post#', ['method' => 'get'], function(){ ?> textFieldTag('tags', '', ['id' => '']) ?>
      submitTag($this->t('.posts.search')) ?>
    • linkTo($this->t('.posts.view'), ['controller' => 'post', 'action' => 'index']) ?>
    • linkTo($this->t('.posts.search'), ['controller' => 'post', 'action' => 'index'], ['class' => 'search-link']) ?>
    • linkTo($this->t('.posts.upload'), ['controller' => 'post', 'action' => 'upload']) ?>
    • linkTo($this->t('.posts.random'), ['controller' => 'post', 'tags' => 'order:random']) ?>
    • linkTo($this->t('.posts.popular'), ['controller' => 'post', 'action' => 'popular_recent']) ?>
    • linkTo($this->t('.posts.history'), ['controller' => 'history', 'action' => 'index']) ?>
    • is_janitor_or_higher()) : ?>
    • linkTo($this->t('.posts.moderate'), ['controller' => 'post', 'action' => 'moderate'], ['class' => 'moderate']) ?>
    • is_admin_or_higher()) : ?>
    • linkTo($this->t('.posts.import'), ['post#import']) ?>
  • linkTo($this->t('.comments._'), ['controller' => 'comment', 'action' => 'index'], ['id' => 'comments-link']) ?> linkTo('■', '#', ['class' => 'submenu-button']) ?>
    • formTag('comment#search', ['method' => 'get'], function(){ ?> textFieldTag('query', '') ?>
      submitTag($this->t('.comments.search')) ?>
    • linkTo($this->t('.comments.view'), ['controller' => 'comment', 'action' => 'index']) ?>
    • linkTo($this->t('.comments.search'), ['controller' => 'comment', 'action' => 'search'], ['class' => 'search-link']) ?>
    • is_janitor_or_higher()) : ?>
    • linkTo($this->t('.comments.moderate'), ['controller' => 'comment', 'action' => 'moderate']) ?>
  • linkTo($this->t('.notes._'), ['controller' => 'note', 'action' => 'index']) ?> linkTo('■', '#', ['class' => 'submenu-button']) ?>
    • formTag('note#search', ['method' => 'get'], function(){ ?> textFieldTag('query', '') ?>
      submitTag($this->t('.notes.search')) ?>
    • linkTo($this->t('.notes.view'), ['controller' => 'note', 'action' => 'index']) ?>
    • linkTo($this->t('.notes.search'), ['controller' => 'note', 'action' => 'search'], ['class' => 'search-link']) ?>
    • linkTo($this->t('.notes.requests'), ['controller' => 'post', 'action' => 'index', 'tags' => 'translation_request']) ?>
  • linkTo($this->t('.artists._'), ['controller' => 'artist', 'action' => 'index', 'order' => 'date']) ?> linkTo('■', '#', ['class' => 'submenu-button']) ?>
    • formTag('artist#index', ['method' => 'get'], function(){ ?> textFieldTag('name', '') ?>
      submitTag($this->t('.artists.search')) ?>
    • linkTo($this->t('.artists.view'), ['controller' => 'artist', 'action' => 'index']) ?>
    • linkTo($this->t('.artists.search'), ['controller' => 'artist', 'action' => 'index'], ['class' => 'search-link']) ?>
    • linkTo($this->t('.artists.create'), ['controller' => 'artist', 'action' => 'create']) ?>
  • linkTo($this->t('.tags._'), ['controller' => 'tag', 'action' => 'index', 'order' => 'date']) ?> linkTo('■', '#', ['class' => 'submenu-button']) ?>
    • formTag('tag#index', ['method' => 'get'], function(){ ?> textFieldTag('name', '') ?>
      submitTag($this->t('.tags.search')) ?>
    • linkTo($this->t('.tags.view'), ['controller' => 'tag', 'action' => 'index']) ?>
    • linkTo($this->t('.tags.search'), ['controller' => 'tag', 'action' => 'index'], ['class' => 'search-link']) ?>
    • linkTo($this->t('.tags.popular'), ['controller' => 'tag', 'action' => 'popular_by_day']) ?>
    • linkTo($this->t('.tags.aliases'), ['controller' => 'tag_alias', 'action' => 'index']) ?>
    • linkTo($this->t('.tags.implications'), ['controller' => 'tag_implication', 'action' => 'index']) ?>
    • is_janitor_or_higher()) : ?>
    • linkTo($this->t('.tags.mass_edit'), ['controller' => 'tag', 'action' => 'mass_edit']) ?>
  • linkTo($this->t('.pools._'), ['controller' => 'pool', 'action' => 'index']) ?> linkTo('■', '#', ['class' => 'submenu-button']) ?>
    • formTag('pool#index', ['method' => 'get'], function(){ ?> textFieldTag('query', '') ?>
      submitTag($this->t('.pools.search')) ?>
    • linkTo($this->t('.pools.view'), ['controller' => 'pool', 'action' => 'index']) ?>
    • linkTo($this->t('.pools.search'), ['controller' => 'pool', 'action' => 'index'], ['class' => 'search-link']) ?>
    • linkTo($this->t('.pools.create'), ['controller' => 'pool', 'action' => 'create']) ?>
  • linkTo($this->t('.wiki._'), (!CONFIG()->menu_wiki_link ? ['wiki#index'] : array_merge(['wiki#show'], CONFIG()->menu_wiki_link))) ?> linkTo('■', '#', ['class' => 'submenu-button']) ?>
    • formTag('wiki#index', ['method' => 'get'], function(){ ?> textFieldTag('query', '') ?>
      submitTag($this->t('.wiki.search')) ?>
    • linkTo($this->t('.wiki.index'), ['controller' => 'wiki', 'action' => 'index']) ?>
    • linkTo($this->t('.wiki.search'), ['controller' => 'wiki', 'action' => 'index'], ['class' => 'search-link']) ?>
    • linkTo($this->t('.wiki.create'), ['controller' => 'wiki', 'action' => 'add']) ?>
  • linkTo($this->t('.forum._'), ['controller' => 'forum', 'action' => 'index'], ['id' => 'forum-link']) ?> linkTo('■', '#', ['class' => 'submenu-button']) ?>
    • formTag('forum#search', ['method' => 'get'], function(){ ?> textFieldTag('query', '') ?>
      submitTag($this->t('.forum.search')) ?>
    • linkTo($this->t('.forum.view'), ['controller' => 'forum', 'action' => 'index']) ?>
    • linkTo($this->t('.forum.search'), ['controller' => 'forum', 'action' => 'index'], ['class' => 'search-link']) ?>
    • linkTo($this->t('.forum.new'), ['controller' => 'forum', 'action' => 'new']) ?>
    • linkTo($this->t('.forum.mark_all_read'), ['controller' => 'forum', 'action' => 'mark_all_read'], ['id' => 'forum-mark-all-read', 'style' => 'display: none;']) ?>
  • linkTo($this->t('.help._'), "help#") ?> linkTo('■', '#', ['class' => 'submenu-button']) ?>
    • linkTo($this->t(".help." . $item . "s"), "help#" . $item . "s", ['class' => ['help-item', $item]]) ?>
    • linkTo($this->t(".help.${item}"), "help#" . $item, ['class' => ['help-item', $item]]) ?>
    • linkTo($this->t('.help.site'), "help#") ?>
  • linkTo($this->t('.more'), ['controller' => 'static', 'action' => 'more']) ?>
  • linkTo($this->t('.new_mail'), ['controller' => 'dmail', 'action' => 'inbox'], ['id' => 'has-mail-notice']) ?>
write($key, $menu); endif; if (!current_user()->is_anonymous()) { $menu = substr_replace($menu, current_user()->id, strpos($menu, '-user.id-'), 9); echo substr_replace($menu, current_user()->name, strpos($menu, '-user.name-'), 11); } else { echo $menu; } ?>