2015-09-16 08:29:08 +00:00
|
|
|
- cache ['thumbnail', asciicast, asciicast.user, !!no_created_at] do
|
2013-11-22 22:31:18 +00:00
|
|
|
.preview
|
|
|
|
= link_to asciicast, class: 'thumbnail-link' do
|
|
|
|
.play-button
|
|
|
|
span.arrow
|
|
|
|
span.glyphicon.glyphicon-play
|
2014-06-30 21:26:25 +00:00
|
|
|
.thumbnail class="asciinema-theme-#{asciicast.theme_name}"
|
2013-12-03 20:51:49 +00:00
|
|
|
= asciicast.thumbnail(100, 15)
|
2013-08-14 17:38:01 +00:00
|
|
|
|
2013-11-22 22:31:18 +00:00
|
|
|
.info.clearfix
|
|
|
|
h2
|
|
|
|
= link_to asciicast.title, asciicast
|
2015-05-15 17:36:12 +00:00
|
|
|
- if asciicast.private?
|
|
|
|
= render 'asciicasts/private_label'
|
|
|
|
- if asciicast.featured?
|
|
|
|
= render 'asciicasts/featured_label'
|
2013-11-22 22:31:18 +00:00
|
|
|
span.duration = asciicast.formatted_duration
|
|
|
|
span.author-avatar = asciicast.author_img_link
|
2015-09-16 08:24:58 +00:00
|
|
|
small by #{asciicast.author_link} #{time_ago_tag asciicast.created_at unless no_created_at}
|