2019-11-12 02:27:09 +01:00
|
|
|
.profile-top
|
|
|
|
.profile-top__avatar
|
|
|
|
= render PhilomenaWeb.UserAttributionView, "_user_avatar.html", object: %{user: @user}, class: "avatar--125px"
|
|
|
|
.profile-top__name-and-links
|
|
|
|
div
|
|
|
|
h1.profile-top__name-header
|
|
|
|
= @user.name
|
|
|
|
| 's profile
|
|
|
|
span
|
|
|
|
' Member since
|
|
|
|
= pretty_time(@user.created_at)
|
|
|
|
|
|
|
|
.profile-top__options
|
|
|
|
ul.profile-top__options__column
|
2019-12-04 14:25:10 +01:00
|
|
|
li = link("Send message", to: Routes.conversation_path(@conn, :new, recipient: @user.name))
|
|
|
|
li = link("Our conversations", to: Routes.conversation_path(@conn, :index, with: @user.id))
|
|
|
|
li = link("Report this user", to: Routes.profile_report_path(@conn, :new, @user))
|
2019-11-12 02:27:09 +01:00
|
|
|
|
|
|
|
ul.profile-top__options__column
|
|
|
|
li = link("Uploads", to: Routes.search_path(@conn, :index, q: "uploader_id:#{@user.id}"))
|
2019-12-01 03:29:46 +01:00
|
|
|
li = link("Comments", to: Routes.comment_path(@conn, :index, cq: "user_id:#{@user.id}"))
|
|
|
|
li = link("Posts", to: Routes.post_path(@conn, :index, pq: "user_id:#{@user.id}"))
|
2019-11-12 02:27:09 +01:00
|
|
|
|
|
|
|
ul.profile-top__options__column
|
|
|
|
li = link("Favorites", to: Routes.search_path(@conn, :index, q: "faved_by_id:#{@user.id}"))
|
2019-12-04 23:10:35 +01:00
|
|
|
li = link("Tag changes", to: Routes.profile_tag_change_path(@conn, :index, @user))
|
2019-12-04 23:56:13 +01:00
|
|
|
li = link("Source changes", to: Routes.profile_source_change_path(@conn, :index, @user))
|
2019-11-12 02:27:09 +01:00
|
|
|
|
|
|
|
.column-layout
|
|
|
|
.column-layout__left
|
|
|
|
.block
|
|
|
|
.block__header
|
|
|
|
span.block__header__title User Links
|
|
|
|
= for link <- @user.public_links do
|
|
|
|
.block__content.alternating-color.break-word
|
|
|
|
.center
|
|
|
|
= if link.tag do
|
|
|
|
.tag_list = render PhilomenaWeb.TagView, "_tag.html", tag: link.tag
|
|
|
|
= link(link.uri, to: link.uri)
|
|
|
|
|
|
|
|
.block
|
|
|
|
.block__header
|
|
|
|
span.block__header__title Badges
|
|
|
|
= for award <- award_order(@user.awards) do
|
|
|
|
.block__content.flex.flex--centered.flex--center-distributed.alternating-color.no-overflow title=award.label
|
|
|
|
.flex__grow.center
|
2019-11-12 02:37:11 +01:00
|
|
|
.badge = badge_image(award.badge, alt: award.label, width: "32", height: "32")
|
2019-11-12 02:27:09 +01:00
|
|
|
br
|
2019-11-12 02:41:26 +01:00
|
|
|
= award_title(award)
|
2019-11-12 02:27:09 +01:00
|
|
|
.flex__grow.center
|
|
|
|
= pretty_time(award.awarded_on)
|
|
|
|
|
|
|
|
.column-layout__main
|
2019-11-18 14:10:17 +01:00
|
|
|
= render PhilomenaWeb.ProfileView, "_recent_images.html", title: "Recent Uploads", images: @recent_uploads, view_all_path: Routes.search_path(@conn, :index, q: "uploader_id:#{@user.id}"), conn: @conn
|
|
|
|
= render PhilomenaWeb.ProfileView, "_recent_images.html", title: "Recent Favorites", images: @recent_faves, view_all_path: Routes.search_path(@conn, :index, q: "faved_by_id:#{@user.id}"), conn: @conn
|