Avoid empty section when no more by asciicasts by the user
This commit is contained in:
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…
Reference in New Issue
Block a user