removing error handling from flickr photo view

This commit is contained in:
Andrew Davidson 2009-10-30 00:36:28 -07:00
parent ba10bfad72
commit 52878f4ecb

View file

@ -1,9 +1,8 @@
<div class="box">
<div class="border" style="width:<%= @psize.width %>;">
<%= link_to image_tag(@psize.source, :alt => @pinfo.title), :controller => "flickr", :action => "photo", :id => @pid %>
<p><%= @pinfo.title %></p>
</div>
<% if (@error) then %>
<p>requested photo id not found, random photo displayed.</p>
<% if (@psize && @pinfo && @pid ) then %>
<div class="border" style="width:<%= @psize.width %>;">
<%= link_to image_tag(@psize.source, :alt => @pinfo.title), :controller => "flickr", :action => "photo", :id => @pid %>
<p><%= @pinfo.title %></p>
</div>
<% end %>
</div>