Move moderation navigation to new location

This commit is contained in:
Andreas Nedbal 2020-04-25 20:20:00 +02:00
parent 2fb1966c5b
commit aeedee8b2f
4 changed files with 15 additions and 16 deletions

View File

@ -1,4 +1,4 @@
= render 'moderation/moderation_nav' = render 'navigation/moderation'
.container.j2-page .container.j2-page
.row .row
.col-md-3.col-sm-4.col-xs-12 .col-md-3.col-sm-4.col-xs-12

View File

@ -1,14 +0,0 @@
%nav.navbar.navbar-default.navbar-static-top.j2-navbar.d-flex.d-sm-none{role: "navigation"}
.container
%a.navbar-brand{href: moderation_path} Moderation
%button.navbar-toggler{"data-target" => "#j2-tl-navbar-collapse", "data-toggle" => "collapse", type: "button"}
%span.sr-only Toggle navigation
%span.navbar-toggler-icon
#j2-tl-navbar-collapse.collapse.navbar-collapse
%ul.nav.navbar-nav
= nav_entry t('views.moderation.tabs.all'), moderation_path
= nav_entry t('views.general.answer').pluralize(2) , moderation_path('answer')
= nav_entry t('views.general.comment').pluralize(2), moderation_path('comment')
= nav_entry t('views.general.user').pluralize(2) , moderation_path('user')
= nav_entry t('views.general.question').pluralize(2), moderation_path('question')
= nav_entry 'Priority', moderation_priority_path

View File

@ -0,0 +1,13 @@
%nav.navbar.navbar-light.bg-light.navbar-static-top.j2-navbar.d-flex.d-sm-none{role: "navigation"}
%a.navbar-brand{href: moderation_path} Moderation
%button.navbar-toggler{"data-target" => "#j2-tl-navbar-collapse", "data-toggle" => "collapse", type: "button"}
%span.sr-only Toggle navigation
%span.navbar-toggler-icon
#j2-tl-navbar-collapse.collapse.navbar-collapse
%ul.nav.navbar-nav
= nav_entry t('views.moderation.tabs.all'), moderation_path
= nav_entry t('views.general.answer').pluralize(2) , moderation_path('answer')
= nav_entry t('views.general.comment').pluralize(2), moderation_path('comment')
= nav_entry t('views.general.user').pluralize(2) , moderation_path('user')
= nav_entry t('views.general.question').pluralize(2), moderation_path('question')
= nav_entry 'Priority', moderation_priority_path

View File

@ -1,4 +1,4 @@
.card.hidden-xs .card.d-none.d-sm-block
.list-group .list-group
= list_group_item t('views.moderation.tabs.all'), moderation_path = list_group_item t('views.moderation.tabs.all'), moderation_path
= list_group_item t('views.general.answer').pluralize(2), moderation_path('answer') = list_group_item t('views.general.answer').pluralize(2), moderation_path('answer')