asciinema.org/app/views/users/show.html.slim
2014-02-12 20:51:01 +01:00

34 lines
1.1 KiB
Plaintext

- content_for(:title, page.title)
.profile-page
section.cinema
.container
span.user-avatar = page.user_avatar_image_tag
h1
= page.user_full_name
small = "Joined on #{page.user_joined_at}"
- if page.show_settings?
p.actions = link_to 'Settings', edit_user_path
.container
h2 = page.asciicast_count_text(self)
.row.asciicast-list
.col-md-12
- if page.asciicasts.present?
= render 'asciicasts/previews', asciicasts: page.asciicasts, per_row: 3
= paginate page.asciicasts
- else
- if page.current_users_profile?
p
' Seems like you haven't recorded anything yet.
= link_to 'Record now', docs_path('getting-started')
' .
p
' If you have already recorded an asciicast but you don't see it
here then associate it with your account by running
code asciinema auth
' in your terminal.
- else
' #{page.user_username} hasn't recorded anything yet.