add missing links

This commit is contained in:
byte[] 2019-12-20 10:05:34 -05:00
parent 79579a07af
commit e922f9a94b

View file

@ -53,6 +53,9 @@
= render PhilomenaWeb.ProfileView, "_commission.html", user: @user, commission_information: @commission_information, conn: @conn
.block
= if current?(@user, @conn.assigns.current_user) do
a.block__header--single-item href=Routes.profile_user_link_path(@conn, :new, @user) User Links
- else
.block__header
span.block__header__title User Links
= for link <- @user.verified_links, link.public or can?(@conn, :edit, link) do
@ -71,6 +74,9 @@
= pluralize("user", "users", watchers)
.block
= if manages_awards?(@conn) do
a.block__header--single-item href=Routes.profile_award_path(@conn, :new, @user) Badges
- else
.block__header
span.block__header__title Badges
= for award <- award_order(@user.awards) do