removing error handling from flickr photo view
This commit is contained in:
parent
ba10bfad72
commit
52878f4ecb
1 changed files with 5 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue