Avoid empty section when no more by asciicasts by the user

This commit is contained in:
Marcin Kulik 2013-11-22 22:38:40 +01:00
parent 2dbc811caf
commit f2e462e1cb
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

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