Avoid empty section when no more by asciicasts by the user

openid
Marcin Kulik 11 years ago
parent 2dbc811caf
commit f2e462e1cb

@ -1,4 +1,6 @@
- if @asciicast.other_by_user.any?
.other-asciicasts
h2 More by #{@asciicast.author_link}
= render 'previews', asciicasts: @asciicast.other_by_user, per_row: 3
section.odd
.container
.other-asciicasts
h2 More by #{@asciicast.author_link}
= render 'previews', asciicasts: @asciicast.other_by_user, per_row: 3

@ -68,6 +68,4 @@
.container
.content = @asciicast.description
section.odd
.container
= render 'other_by_user'
= render 'other_by_user'

Loading…
Cancel
Save