diff options
author | ThibG <thib@sitedethib.com> | 2018-07-18 09:17:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-18 09:17:20 +0200 |
commit | c44579c42dd03c187be08978c54bdfe37d56cc45 (patch) | |
tree | 7a235fc9422d71f56993b4682b06439310f21f65 /config/navigation.rb | |
parent | 1fb78602c56b7bf52dcf383fea7a4c45ce568655 (diff) | |
parent | 7dbed4dab93d3eaf79b7e7e4a61f52782909d1ae (diff) |
Merge pull request #585 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'config/navigation.rb')
-rw-r--r-- | config/navigation.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/navigation.rb b/config/navigation.rb index f44c3153f..6fed173ef 100644 --- a/config/navigation.rb +++ b/config/navigation.rb @@ -39,7 +39,8 @@ SimpleNavigation::Configuration.run do |navigation| admin.item :email_domain_blocks, safe_join([fa_icon('envelope fw'), t('admin.email_domain_blocks.title')]), admin_email_domain_blocks_url, highlights_on: %r{/admin/email_domain_blocks}, if: -> { current_user.admin? } end - primary.item :admin, safe_join([fa_icon('cogs fw'), t('admin.title')]), proc { current_user.admin? ? edit_admin_settings_url : admin_custom_emojis_url }, if: proc { current_user.staff? } do |admin| + primary.item :admin, safe_join([fa_icon('cogs fw'), t('admin.title')]), admin_dashboard_url, if: proc { current_user.staff? } do |admin| + admin.item :dashboard, safe_join([fa_icon('tachometer fw'), t('admin.dashboard.title')]), admin_dashboard_url admin.item :settings, safe_join([fa_icon('cogs fw'), t('admin.settings.title')]), edit_admin_settings_url, if: -> { current_user.admin? } admin.item :custom_emojis, safe_join([fa_icon('smile-o fw'), t('admin.custom_emojis.title')]), admin_custom_emojis_url, highlights_on: %r{/admin/custom_emojis} admin.item :relays, safe_join([fa_icon('exchange fw'), t('admin.relays.title')]), admin_relays_url, if: -> { current_user.admin? }, highlights_on: %r{/admin/relays} |