moving divs outside of partials to be able to control the title.

This commit is contained in:
Andrew Davidson 2009-11-09 04:12:37 -08:00
parent f109defc5d
commit c03ab56663
6 changed files with 27 additions and 19 deletions

View file

@ -1,7 +1,3 @@
<div class="box">
<div class="border" style="width:450px;height:550;">
<% for p in @parray do %>
<% for p in @parray do %>
<div class="thumb"><%= link_to image_tag(p[:source], :alt => p[:id]), :action => 'photo', :id => p[:id] %></div>
<% end %>
</div>
</div>
<% end %>

View file

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

View file

@ -1 +1,5 @@
<%= render :partial => 'single' %>
<div class="box">
<div class="border" style="width:<%= @psize.width %>;">
<%= render :partial => 'single' %>
</div>
</div>

View file

@ -1 +1,5 @@
<%= render :partial => "grid" %>
<div class="box">
<div class="border" style="width:450px;height:550px;">
<%= render :partial => "grid" %>
</div>
</div>

View file

@ -1 +1,5 @@
<%= render :partial => 'single' %>
<div class="box">
<div class="border" style="width:<%= @psize.width %>;">
<%= render :partial => 'single' %>
</div>
</div>

View file

@ -1 +1,5 @@
<%= render :partial => 'grid' %>
<div class="box">
<div class="border" style="width:450px;height:550px;">
<%= render :partial => 'grid' %>
</div>
</div>