less shit code

This commit is contained in:
Luna D 2019-12-20 17:37:50 -05:00
parent 7b5fd947f9
commit 5596a462f5
No known key found for this signature in database
GPG key ID: D0F46C94720BAA4B
3 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ whenReady(() => {
listenAutocomplete();
registerEvents();
setupBurgerMenu();
bindCaptchaLinks();
bindCaptchaLinks();
initImagesClientside();
setupComments();
setupDupeReports();

View file

@ -13,7 +13,7 @@ elixir:
i.fa.fa-sync
span.hide-mobile<> Refresh
= for {comment, body} <- @comments, not comment.destroyed_content or (can?(@conn, :show, comment) and @conn.cookies["hide_staff_tools"] != "true") do
= for {comment, body} <- @comments, not comment.destroyed_content or (can?(@conn, :show, comment) and not hide_staff_tools?(@conn)) do
= render PhilomenaWeb.CommentView, "_comment.html", comment: comment, body: body, conn: @conn
.block

View file

@ -5,7 +5,7 @@
= if assigns[:awards] do
= render PhilomenaWeb.ProfileView, "_awards.html", awards: @object.user.awards
- not is_nil(@object.user) and (can?(@conn, :reveal_anon, @object) and @conn.cookies["hide_staff_tools"] != "true") ->
- not is_nil(@object.user) and (can?(@conn, :reveal_anon, @object) and not hide_staff_tools?(@conn)) ->
strong<>
= link(anonymous_name(@object, true), to: Routes.profile_path(@conn, :show, @object.user))