mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
more idiomatic
This commit is contained in:
parent
2c121c80c8
commit
5249deb47f
5 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue