mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
add missing links
This commit is contained in:
parent
79579a07af
commit
e922f9a94b
1 changed files with 10 additions and 4 deletions
|
@ -53,8 +53,11 @@
|
||||||
= render PhilomenaWeb.ProfileView, "_commission.html", user: @user, commission_information: @commission_information, conn: @conn
|
= render PhilomenaWeb.ProfileView, "_commission.html", user: @user, commission_information: @commission_information, conn: @conn
|
||||||
|
|
||||||
.block
|
.block
|
||||||
.block__header
|
= if current?(@user, @conn.assigns.current_user) do
|
||||||
span.block__header__title User Links
|
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
|
= for link <- @user.verified_links, link.public or can?(@conn, :edit, link) do
|
||||||
- watchers = if link.tag, do: @watcher_counts[link.tag.id] || 0, else: 0
|
- watchers = if link.tag, do: @watcher_counts[link.tag.id] || 0, else: 0
|
||||||
|
|
||||||
|
@ -71,8 +74,11 @@
|
||||||
= pluralize("user", "users", watchers)
|
= pluralize("user", "users", watchers)
|
||||||
|
|
||||||
.block
|
.block
|
||||||
.block__header
|
= if manages_awards?(@conn) do
|
||||||
span.block__header__title Badges
|
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
|
= for award <- award_order(@user.awards) do
|
||||||
.block__content.flex.flex--centered.flex--center-distributed.alternating-color.no-overflow title=award.label
|
.block__content.flex.flex--centered.flex--center-distributed.alternating-color.no-overflow title=award.label
|
||||||
.flex__grow.center
|
.flex__grow.center
|
||||||
|
|
Loading…
Reference in a new issue