Don't show timestamp for featured asciicasts on homepage
This commit is contained in:
parent
16a8d94d60
commit
f5b87a8a84
@ -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}
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user