2019-12-05 19:32:53 +01:00
|
|
|
.block__content.profile-about
|
|
|
|
= cond do
|
|
|
|
- @user.description not in [nil, ""] ->
|
2024-05-04 05:15:14 +02:00
|
|
|
= @about_me
|
2019-12-05 19:32:53 +01:00
|
|
|
|
|
|
|
- current?(@user, @conn.assigns.current_user) ->
|
|
|
|
em
|
|
|
|
' Want to
|
2024-04-29 02:55:27 +02:00
|
|
|
=> link "add some info about yourself?", to: ~p"/profiles/#{@user}/description/edit"
|
2019-12-05 19:32:53 +01:00
|
|
|
|
2024-05-07 19:33:56 +02:00
|
|
|
- true ->
|
|
|
|
| No description provided.
|
2019-12-05 19:32:53 +01:00
|
|
|
|
2023-11-23 17:07:49 +01:00
|
|
|
= if can?(@conn, :edit_description, @user) do
|
|
|
|
= if @user.description not in [nil, ""] do
|
|
|
|
hr.separator.separator--secondary
|
2024-06-06 22:28:35 +02:00
|
|
|
a.button href=~p"/profiles/#{@user}/description/edit"
|
2023-11-23 17:07:49 +01:00
|
|
|
i.fa.fa-edit>
|
|
|
|
| Edit
|