You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/app/views/users/show.html.slim

28 lines
899 B
Plaintext

- content_for(:title, "#{@user.nickname}'s profile".html_safe)
.profile-page
section.cinema
.container
span.user-avatar = @user.avatar_image_tag
h1
= @user.fullname_and_nickname
small
' Joined on #{@user.created_at.strftime("%b %-d, %Y")}
- if current_user == @user
p.actions = link_to 'Settings', edit_user_path
.container
h2 #{pluralize @user.asciicast_count, 'asciicast'} by #{@user.nickname}
.row.asciicast-list
.col-md-12
= render 'asciicasts/previews', asciicasts: @asciicasts, per_row: 3
= paginate @asciicasts
- if @asciicasts.size == 0
- if current_user && current_user.id == @user.id
' You haven't recorded anything yet.
= link_to 'Record now', docs_path('getting-started')
- else
' #{@user.nickname} hasn't recorded anything yet.