diff --git a/lib/philomena_web/templates/layout/_header.html.slime b/lib/philomena_web/templates/layout/_header.html.slime index 86846306..46626472 100644 --- a/lib/philomena_web/templates/layout/_header.html.slime +++ b/lib/philomena_web/templates/layout/_header.html.slime @@ -104,5 +104,5 @@ header.header nav.header.header--secondary .flex.flex--centered.flex--spaced-out.flex--wrap = render PhilomenaWeb.LayoutView, "_header_navigation.html", assigns - /- if current_user.try(:staff?) - include _header_staff_links.html \ No newline at end of file + = if @current_user.role != "user" do + = render PhilomenaWeb.LayoutView, "_header_staff_links.html", assigns diff --git a/lib/philomena_web/templates/layout/_header_staff_links.html.slime b/lib/philomena_web/templates/layout/_header_staff_links.html.slime new file mode 100644 index 00000000..9e3d16a5 --- /dev/null +++ b/lib/philomena_web/templates/layout/_header_staff_links.html.slime @@ -0,0 +1,67 @@ +/ Dummy view for the admin bar +.flex.flex--centered.header--secondary__admin-links.stretched-mobile-links.js-staff-action + .dropdown.hide-mobile + a.header__link title="Admin" + =<> "A" + i.fa.fa-caret-down + .dropdown__content.js-burger-links + = link to: "/admin/flipper", class: "header__link" do + i.fa.fa-fw.fa-toggle-on + | Site Settings + = link to: "/admin/site_notices", class: "header__link" do + i.fa.fa-fw.fa-info-circle + | Site Notices + = link to: "#", class: "header__link" do + i.fa.fa-fw.fa-tags + | Tags + = link to: "#", class: "header__link" do + i.fa.fa-fw.fa-users + | Users + = link to: "#", class: "header__link" do + i.fa.fa-fw.fa-comments + | Comments + = link to: "#", class: "header__link" do + i.fa.fa-fw.fa-paragraph + | Forums + = link to: "#", class: "header__link" do + i.fa.fa-fw.fa-shopping-bag + | Advertisements + = link to: "#", class: "header__link" do + i.fa.fa-fw.fa-trophy + | Badges + = link to: "#", class: "header__link" do + i.fa.fa-fw.fa-sticky-note + | Pages + = link to: "#", class: "header__link" do + i.fa.fa-fw.fa-sticky-note + | Mod Notes + = link to: "#", class: "header__link", title: "Duplicates" do + =<> "D" + span.header__counter__admin + | 0 + = link to: "#", class: "header__link", title: "Reports" do + =<> "R" + span.header__counter__admin + | 0 + = link to: "#", class: "header__link", title: "User Links" do + =<> "L" + span.header__counter__admin + | 0 + = link to: "#", class: "header__link", title: "DNP Requests" do + =<> "S" + span.header__counter__admin + | 0 + .dropdown.hide-mobile + a.header__link title="Bans" + =<> "B" + i.fa.fa-caret-down + .dropdown__content.dropdown__content-right.js-burger-links + = link to: "#", class: "header__link" do + i.fa.fa-fw.fa-user + | User Bans + = link to: "#", class: "header__link" do + i.fa.fa-fw.fa-internet-explorer + | IP Bans + = link to: "#", class: "header__link" do + i.fa.fa-fw.fa-desktop + | FP Bans