asciinema.org/app/views/users/show.html.slim
2013-12-01 00:55:31 +01:00

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.