asciinema.org/app/views/asciicasts/_preview.html.slim
2015-09-16 10:29:08 +02:00

20 lines
750 B
Plaintext

- cache ['thumbnail', asciicast, asciicast.user, !!no_created_at] do
.preview
= link_to asciicast, class: 'thumbnail-link' do
.play-button
span.arrow
span.glyphicon.glyphicon-play
.thumbnail class="asciinema-theme-#{asciicast.theme_name}"
= asciicast.thumbnail(100, 15)
.info.clearfix
h2
= link_to asciicast.title, asciicast
- if asciicast.private?
= render 'asciicasts/private_label'
- if asciicast.featured?
= render 'asciicasts/featured_label'
span.duration = asciicast.formatted_duration
span.author-avatar = asciicast.author_img_link
small by #{asciicast.author_link} #{time_ago_tag asciicast.created_at unless no_created_at}