From 5249deb47f5ad5e05f052edfbbb46f273fc482a8 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sat, 8 Aug 2020 15:13:41 -0400 Subject: [PATCH] more idiomatic --- .../templates/fingerprint_profile/tag_change/index.html.slime | 2 +- lib/philomena_web/templates/image/tag_change/index.html.slime | 2 +- .../templates/ip_profile/tag_change/index.html.slime | 2 +- lib/philomena_web/templates/profile/tag_change/index.html.slime | 2 +- lib/philomena_web/templates/tag/tag_change/index.html.slime | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/philomena_web/templates/fingerprint_profile/tag_change/index.html.slime b/lib/philomena_web/templates/fingerprint_profile/tag_change/index.html.slime index 956fef3b..dd2b50ac 100644 --- a/lib/philomena_web/templates/fingerprint_profile/tag_change/index.html.slime +++ b/lib/philomena_web/templates/fingerprint_profile/tag_change/index.html.slime @@ -3,7 +3,7 @@ h1 = @fingerprint - route = fn p -> Routes.fingerprint_profile_tag_change_path(@conn, :index, @fingerprint, p) end -- params = if @conn.params["added"] do [added: @conn.params["added"]] else nil end +- params = if @conn.params["added"], do: [added: @conn.params["added"]] - pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn, params: params .block diff --git a/lib/philomena_web/templates/image/tag_change/index.html.slime b/lib/philomena_web/templates/image/tag_change/index.html.slime index e2bdb979..82d78789 100644 --- a/lib/philomena_web/templates/image/tag_change/index.html.slime +++ b/lib/philomena_web/templates/image/tag_change/index.html.slime @@ -5,7 +5,7 @@ h1 = @image.id - route = fn p -> Routes.image_tag_change_path(@conn, :index, @image, p) end -- params = if @conn.params["added"] do [added: @conn.params["added"]] else nil end +- params = if @conn.params["added"], do: [added: @conn.params["added"]] - pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn, params: params .block diff --git a/lib/philomena_web/templates/ip_profile/tag_change/index.html.slime b/lib/philomena_web/templates/ip_profile/tag_change/index.html.slime index 518c0316..7d86ae72 100644 --- a/lib/philomena_web/templates/ip_profile/tag_change/index.html.slime +++ b/lib/philomena_web/templates/ip_profile/tag_change/index.html.slime @@ -3,7 +3,7 @@ h1 = @ip - route = fn p -> Routes.ip_profile_tag_change_path(@conn, :index, to_string(@ip), p) end -- params = if @conn.params["added"] do [added: @conn.params["added"]] else nil end +- params = if @conn.params["added"], do: [added: @conn.params["added"]] - pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn, params: params .block diff --git a/lib/philomena_web/templates/profile/tag_change/index.html.slime b/lib/philomena_web/templates/profile/tag_change/index.html.slime index 29e9703e..8fe9a9a4 100644 --- a/lib/philomena_web/templates/profile/tag_change/index.html.slime +++ b/lib/philomena_web/templates/profile/tag_change/index.html.slime @@ -4,7 +4,7 @@ h1 = @user.name - route = fn p -> Routes.profile_tag_change_path(@conn, :index, @user, p) end -- params = if @conn.params["added"] do [added: @conn.params["added"]] else nil end +- params = if @conn.params["added"], do: [added: @conn.params["added"]] - pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn, params: params .block diff --git a/lib/philomena_web/templates/tag/tag_change/index.html.slime b/lib/philomena_web/templates/tag/tag_change/index.html.slime index 73306544..caf85dbd 100644 --- a/lib/philomena_web/templates/tag/tag_change/index.html.slime +++ b/lib/philomena_web/templates/tag/tag_change/index.html.slime @@ -4,7 +4,7 @@ h1 = @tag.name - route = fn p -> Routes.tag_tag_change_path(@conn, :index, @tag, p) end -- params = if @conn.params["added"] do [added: @conn.params["added"]] else nil end +- params = if @conn.params["added"], do: [added: @conn.params["added"]] - pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn, params: params .block