Move moderation navigation to new location
This commit is contained in:
parent
2fb1966c5b
commit
aeedee8b2f
|
@ -1,4 +1,4 @@
|
|||
= render 'moderation/moderation_nav'
|
||||
= render 'navigation/moderation'
|
||||
.container.j2-page
|
||||
.row
|
||||
.col-md-3.col-sm-4.col-xs-12
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -1,4 +1,4 @@
|
|||
.card.hidden-xs
|
||||
.card.d-none.d-sm-block
|
||||
.list-group
|
||||
= list_group_item t('views.moderation.tabs.all'), moderation_path
|
||||
= list_group_item t('views.general.answer').pluralize(2), moderation_path('answer')
|
||||
|
|
Loading…
Reference in New Issue