diff --git a/app/views/moderation/_moderation_nav.html.haml b/app/views/moderation/_moderation_nav.html.haml new file mode 100644 index 00000000..f33f013a --- /dev/null +++ b/app/views/moderation/_moderation_nav.html.haml @@ -0,0 +1,16 @@ +%nav.navbar.navbar-default.navbar-static-top.j2-navbar.visible-xs{role: "navigation"} + .container + .navbar-header + %button.navbar-toggle{"data-target" => "#j2-tl-navbar-collapse", "data-toggle" => "collapse", type: "button"} + %span.sr-only Toggle navigation + %span.icon-bar + %span.icon-bar + %span.icon-bar + %a.navbar-brand{href: "/"} Moderation + #j2-tl-navbar-collapse.collapse.navbar-collapse + %ul.nav.navbar-nav + = nav_entry "All reports", moderation_path + = nav_entry "Answers", moderation_path('answer') + = nav_entry "Comments", moderation_path('comment') + = nav_entry "Users", moderation_path('user') + = nav_entry "Questions", moderation_path('question') \ No newline at end of file diff --git a/app/views/moderation/_moderation_tabs.html.haml b/app/views/moderation/_moderation_tabs.html.haml index 05d93880..cb75096a 100644 --- a/app/views/moderation/_moderation_tabs.html.haml +++ b/app/views/moderation/_moderation_tabs.html.haml @@ -1,5 +1,5 @@ .col-md-3.col-sm-3.col-xs-12 - .panel.panel-default + .panel.panel-default.hidden-xs .panel-body %ul.nav.nav-pills.nav-stacked = nav_entry "All reports", moderation_path diff --git a/app/views/moderation/index.html.haml b/app/views/moderation/index.html.haml index a2407e94..5fb59763 100644 --- a/app/views/moderation/index.html.haml +++ b/app/views/moderation/index.html.haml @@ -1,3 +1,4 @@ += render 'moderation/moderation_nav' .container.j2-page .row = render 'moderation/moderation_tabs'