mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-22 13:23:09 +01:00
25 lines
No EOL
946 B
Text
25 lines
No EOL
946 B
Text
h1
|
|
' Source changes by
|
|
a href=~p"/profiles/#{@user}"
|
|
= @user.name
|
|
|
|
- route = fn p -> ~p"/profiles/#{@user}/source_changes?#{p}" end
|
|
- 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
|
|
|
|
.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 |