Don't show timestamp for featured asciicasts on homepage

This commit is contained in:
Marcin Kulik 2015-09-16 10:24:58 +02:00
parent 16a8d94d60
commit f5b87a8a84
3 changed files with 3 additions and 3 deletions

View File

@ -16,4 +16,4 @@
= render 'asciicasts/featured_label' = render 'asciicasts/featured_label'
span.duration = asciicast.formatted_duration span.duration = asciicast.formatted_duration
span.author-avatar = asciicast.author_img_link 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}

View File

@ -2,4 +2,4 @@
.row .row
- slice.each do |asciicast| - slice.each do |asciicast|
div class="col-md-#{12/per_row}" 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]

View File

@ -64,7 +64,7 @@
.col-md-12 .col-md-12
h1 Featured asciicasts h1 Featured asciicasts
.asciicast-list .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 p
a href=category_path(:featured) class="btn btn-success" Browse featured asciicasts a href=category_path(:featured) class="btn btn-success" Browse featured asciicasts
.row .row