Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
<tr> <td><img src="/images/interior_blueCurveTop.gif" width="1006" height="23"/></td> </tr> <tr> <td class="bodyBack" align="center"> <br /> <table width="90%" cellspacing="0" cellpadding="0"> <tr> <td align="left" style="height: 101px"> <table style="width: 100%" cellspacing="0" cellpadding="0"> <tr> <td><img src="/images/search.jpg" width="252" height="69" /></td> <td valign="bottom" align="right"> <%= link_to(image_tag("returnToSearch.gif", :alt => "Return to Search", :size => "154x37", :border => "0"), search_path ) %> </td> </tr> </table> <br/><br/></td> </tr> <tr> <td align="left" style="height:20em" valign="top"> <table style="width: 100%; height:35px; background-image: url('/images/search_results_blue_header_bar.gif')"> <tr> <td> <table style="width: 100%"> <tr> <td style="width: 681px">Listings in <span class="locationheader"> <% if @communities.collect(&:city).uniq.size == 1 %> <%=h @communities.collect(&:city).uniq %>, <% elsif @communities.collect(&:city).uniq.size == 0 %> No matching results found <% else %> Multiple cities <% end %> <% if @communities.collect(&:state).uniq.size == 1 %> <%=h @communities.collect(&:state).uniq %> <% elsif @communities.collect(&:city).uniq.size == 0 %> <% else %> Multiple states <% end %> </span> </td> <td>Filter by: <select name="Select1"> <option></option> <option selected="selected">-- referrals --</option> </select> </td> </tr> </table> </td> </tr> </table> <p> </p> <table style="width: 100%" cellpadding="0" cellspacing="0"> <tr> <td valign="top" style="width: 285px"> <img alt="Table Heading Properties" src="/images/th_properties.gif" width="301" height="45" /> </td> <td valign="top" style="width: 134px"> <img alt="Table Heading Listings Available" src="/images/th_listingsavailable.gif" width="194" height="45" /> </td> <td valign="top"> <img src="/images/th_spacer.gif" width="220" height="45" /> </td> <td valign="top"> <img src="/images/th_alertme.gif" width="215" height="45" /> </td> </tr> <tr> <td colspan="4"> <table cellpadding="10" cellspacing="0"> <% if @communities.size == 0 %> <br /> <tr><td> <strong>No matching results were found, please modify your search and try again</strong> </td></tr> <% else %> <% @communities.each do |community| %> <tr class="<%= cycle('on','off') %>"> <td valign="top" style="width: 285px" class="on"> <span class="orangefont"><%=h community.name %></span> <% if logged_in? %> <% restrict_to "community_admin" do %> <%= link_to 'Edit', edit_community_path(community) %> <% end %> <% end %> <br /><%=h community.street %><br /> <%=h community.city %>, <%=h community.state %> <%=h community.zip %><br /> Ph: <%=h community.phone %><br /> Fax: <%=h community.fax %><br /> <br /> <% if community.url %> <%= link_to "#{community.url}", community.url %> <% end %> <br />Property ID: <%=h community.id %> </td> <td valign="top" style="width: 134px" class="on"><%= community.referrals.count %> Referrals<br /> <%= community.properties.count %> Sub-Leases</td> <td valign="top" class="on"> <% if community.referrals.count == 0 && community.properties.count == 0 %> <%= image_tag("button_showdetails.gif", :alt => "Show Details Button", :width => "168", :height => "30", :border => "0") %> <% else %> <%= link_to(image_tag("button_showdetails.gif", :alt => "Show Details Button", :width => "168", :height => "30", :border => "0"), detail_community_path(community.id) ) %> <% end %> <br /> <br /> <%= link_to(image_tag("button_addmyreferral.gif", :alt => "Add my referral button", :width => "168", :height => "30", :border => "0"), new_community_referral_path(community.id) ) %> <br /> <br /> <%= link_to(image_tag("button_addmylease.gif", :alt => "Add my lease button", :width => "168", :height => "30", :border => "0"), new_community_property_path(community.id) ) %> </td> <td valign="top" class="on"> <% content_for :style do %> div.alerts { margin-left: 1.0em; line-height: 2.0em; } div.alerts div.spinner { display: inline; } <% end %> <div class="alerts"> <% if logged_in? %> <% if alert = current_user.community_alert(community, 'Referral') %> <%= render :partial => 'alerts/partials/alerted', :locals => { :alert => alert, :community => community, :alertable_type => 'Referral' }%> <% else %> <%= render :partial => 'alerts/partials/alert_me', :locals => { :community => community, :alertable_type => 'Referral' }%> <% end %> <% if alert = current_user.community_alert(community, 'Property') %> <%= render :partial => 'alerts/partials/alerted', :locals => { :alert => alert, :community => community, :alertable_type => 'Property' }%> <% else %> <%= render :partial => 'alerts/partials/alert_me', :locals => { :community => community, :alertable_type => 'Property' }%> <% end %> <% else %> Log in to be alerted when new referrals and sub leases are added to this community. <% end %> </div> </td> </tr> <tr> <td valign="top" colspan="4"><hr /></td> </tr> <% end %> <%= will_paginate @communities %> <% end %> </table> </td> </tr> </table> </td> </tr> <tr> <td style="text-align:right"> <p><br /> <%= link_to(image_tag("button_listing.gif", :alt => "Add a new community", :border => "0"), new_community_path ) %> </p> </td> </tr> </table> </td> </tr> <tr> <td> <img src="/images/interior_Bottom.gif" width="1006" height="145" alt="Interior Bottom" /></td> </tr <tr> <td> </td> </tr>
From the Design Piracy series on my blog: