asciinema.org/app/views/asciicasts/_preview.html.slim

16 lines
554 B
Plaintext
Raw Normal View History

- cache ['thumbnail', asciicast, asciicast.user] 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
.thumbnail class="asciinema-theme-#{asciicast.theme_name}"
= 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
span.duration = asciicast.formatted_duration
span.author-avatar = asciicast.author_img_link
small by #{asciicast.author_link} #{time_ago_tag asciicast.created_at}