shorten various staff titles

This commit is contained in:
Luna D 2021-01-20 22:47:06 +01:00
parent 50d053b672
commit 4921ee13a8
No known key found for this signature in database
GPG key ID: E1A46CE9C03638A6
3 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ defmodule PhilomenaWeb.StaffController do
"Technical Team":
Enum.filter(
users,
&(&1.role != "admin" and &1.secondary_role in ["Site Developer", "System Administrator"])
&(&1.role != "admin" and &1.secondary_role in ["Site Developer", "Devops"])
),
"Public Relations":
Enum.filter(users, &(&1.role != "admin" and &1.secondary_role == "Public Relations")),

View file

@ -17,7 +17,7 @@
.table-list__label__input = select f, :role, ["user", "assistant", "moderator", "admin"], class: "input"
label.table-list__label
.table-list__label__text Secondary banner:
.table-list__label__input = select f, :secondary_role, [[key: "-", value: ""], "Site Developer", "System Administrator", "Philomena Contributor", "Public Relations"], class: "input"
.table-list__label__input = select f, :secondary_role, [[key: "-", value: ""], "Site Developer", "Devops", "Philomena Contributor", "Public Relations"], class: "input"
label.table-list__label
.table-list__label__text Hide staff banner:
.table-list__label__input = checkbox f, :hide_default_role, class: "checkbox"

View file

@ -111,19 +111,19 @@ defmodule PhilomenaWeb.UserAttributionView do
do: [{"label--danger", "Head Administrator"} | labels]
defp staff_role(labels, %{hide_default_role: false, role: "admin"}),
do: [{"label--danger", "Site Administrator"} | labels]
do: [{"label--danger", "Administrator"} | labels]
defp staff_role(labels, %{hide_default_role: false, role: "moderator", senior_staff: true}),
do: [{"label--success", "Senior Moderator"} | labels]
defp staff_role(labels, %{hide_default_role: false, role: "moderator"}),
do: [{"label--success", "Site Moderator"} | labels]
do: [{"label--success", "Moderator"} | labels]
defp staff_role(labels, %{hide_default_role: false, role: "assistant", senior_staff: true}),
do: [{"label--purple", "Senior Assistant"} | labels]
defp staff_role(labels, %{hide_default_role: false, role: "assistant"}),
do: [{"label--purple", "Site Assistant"} | labels]
do: [{"label--purple", "Assistant"} | labels]
defp staff_role(labels, _user),
do: labels