diff --git a/app/views/asciicasts/_preview.html.slim b/app/views/asciicasts/_preview.html.slim index d024b64..fc4a620 100644 --- a/app/views/asciicasts/_preview.html.slim +++ b/app/views/asciicasts/_preview.html.slim @@ -16,4 +16,4 @@ = 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} + small by #{asciicast.author_link} #{time_ago_tag asciicast.created_at unless no_created_at} diff --git a/app/views/asciicasts/_previews.html.slim b/app/views/asciicasts/_previews.html.slim index edf99d6..703e096 100644 --- a/app/views/asciicasts/_previews.html.slim +++ b/app/views/asciicasts/_previews.html.slim @@ -2,4 +2,4 @@ .row - slice.each do |asciicast| div class="col-md-#{12/per_row}" - = render 'asciicasts/preview', asciicast: asciicast + = render 'asciicasts/preview', asciicast: asciicast, no_created_at: local_assigns[:no_created_at] diff --git a/app/views/home/show.html.slim b/app/views/home/show.html.slim index ce220ac..ce8c6a9 100644 --- a/app/views/home/show.html.slim +++ b/app/views/home/show.html.slim @@ -64,7 +64,7 @@ .col-md-12 h1 Featured asciicasts .asciicast-list - = render 'asciicasts/previews', asciicasts: page.featured_asciicasts, per_row: 3 + = render 'asciicasts/previews', asciicasts: page.featured_asciicasts, per_row: 3, no_created_at: true p a href=category_path(:featured) class="btn btn-success" Browse featured asciicasts .row