mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
less shit code
This commit is contained in:
parent
7b5fd947f9
commit
5596a462f5
3 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ whenReady(() => {
|
||||||
listenAutocomplete();
|
listenAutocomplete();
|
||||||
registerEvents();
|
registerEvents();
|
||||||
setupBurgerMenu();
|
setupBurgerMenu();
|
||||||
bindCaptchaLinks();
|
bindCaptchaLinks();
|
||||||
initImagesClientside();
|
initImagesClientside();
|
||||||
setupComments();
|
setupComments();
|
||||||
setupDupeReports();
|
setupDupeReports();
|
||||||
|
|
|
@ -13,7 +13,7 @@ elixir:
|
||||||
i.fa.fa-sync
|
i.fa.fa-sync
|
||||||
span.hide-mobile<> Refresh
|
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
|
= render PhilomenaWeb.CommentView, "_comment.html", comment: comment, body: body, conn: @conn
|
||||||
|
|
||||||
.block
|
.block
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
= if assigns[:awards] do
|
= if assigns[:awards] do
|
||||||
= render PhilomenaWeb.ProfileView, "_awards.html", awards: @object.user.awards
|
= 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<>
|
strong<>
|
||||||
= link(anonymous_name(@object, true), to: Routes.profile_path(@conn, :show, @object.user))
|
= link(anonymous_name(@object, true), to: Routes.profile_path(@conn, :show, @object.user))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue