lib/aipim-rails/html.rb in aipim-rails-0.0.166 vs lib/aipim-rails/html.rb in aipim-rails-0.0.168
- old
+ new
@@ -111,11 +111,15 @@
output.puts '
</ul>
</div>
- <div class="panel-footer scenario-screenshot">
- <a href="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'"><img src="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'" /></a>
+ <div class="panel-footer scenario-screenshot">'
+ if !scenario[:screenshot].nil? && !feature[:filename].nil?
+ output.puts '
+ <a href="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'"><img src="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'" /></a>'
+ end
+ output.puts '
</div>
</div>'
end