philomena/lib/philomena_web/templates/profile/_about_me.html.slime

20 lines
553 B
Text
Raw Normal View History

2019-12-05 19:32:53 +01:00
.block__content.profile-about
= cond do
- @user.description not in [nil, ""] ->
= @about_me
2019-12-05 19:32:53 +01:00
- current?(@user, @conn.assigns.current_user) ->
em
' Want to
=> 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