2019-12-04 23:56:13 +01:00
|
|
|
h1
|
|
|
|
' Source changes by
|
2024-04-29 02:55:27 +02:00
|
|
|
a href=~p"/profiles/#{@user}"
|
2019-12-04 23:56:13 +01:00
|
|
|
= @user.name
|
|
|
|
|
2024-04-29 02:55:27 +02:00
|
|
|
- route = fn p -> ~p"/profiles/#{@user}/source_changes?#{p}" end
|
2025-02-11 13:07:50 +01:00
|
|
|
- params = if @conn.params["added"], do: [added: @conn.params["added"]]
|
|
|
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @source_changes, route: route, conn: @conn, params: params
|
2019-12-04 23:56:13 +01:00
|
|
|
|
2025-02-11 13:07:50 +01:00
|
|
|
.block
|
|
|
|
.block__header
|
|
|
|
span.block__header__title
|
|
|
|
| Display only:
|
|
|
|
|
|
|
|
= link "Removed", to: ~p"/profiles/#{@user}/source_changes?#{[added: 0]}"
|
|
|
|
= link "Added", to: ~p"/profiles/#{@user}/source_changes?#{[added: 1]}"
|
|
|
|
= link "All", to: ~p"/profiles/#{@user}/source_changes"
|
|
|
|
|
|
|
|
.block__header.block__header--light
|
|
|
|
span.block__header__title.page__info
|
|
|
|
' Listing changes for
|
|
|
|
=> @image_count
|
|
|
|
= pluralize("image", "images", @image_count)
|
|
|
|
|
|
|
|
= render PhilomenaWeb.SourceChangeView, "index.html", conn: @conn, source_changes: @source_changes, pagination: pagination
|