We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 440747a + 8e62b78 commit 0d00c6bCopy full SHA for 0d00c6b
app/views/protips/_grid.html.haml
@@ -4,7 +4,7 @@
4
- show_ad_every = width*2+width-2
5
- items = show_job ? protips.each_slice(show_ad_every).map{|row| row.count == show_ad_every ? row.concat(['show-ad', nil]) : row }.flatten : protips
6
7
-- if collection.respond_to?(:error)
+- if collection.respond_to?(:error) && !collection.error.nil?
8
.error
9
="#{collection.error} Meanwhile you can "
10
=link_to 'create a pro tip', new_protip_path
0 commit comments