asciinema.org/app/views/asciicasts/_preview.html.slim
2015-05-15 17:36:12 +00:00

20 lines
712 B
Plaintext

- cache ['thumbnail', asciicast, asciicast.user] 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}