Changeset 1231

Show
Ignore:
Timestamp:
11/11/06 19:52:51 (2 years ago)
Author:
james
Message:

fixed edit issue with product admin, new item handling in product list

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • peasantonline/app/controllers/admin_controller.rb

    r1219 r1231  
    131131                        destination_thumb = "#{RAILS_ROOT}/public/images/products/#{product_image_folder}/#{@product.id}/#{@product_image.id}_thumb.jpg" 
    132132                        File.open(destination, "wb") { |f| f.write(params[:image][:file_data].read) } 
    133                         end 
     133 
    134134                        create_main(destination, destination, 600, 750) 
    135135          create_thumb(destination, destination_thumb, 100, 80) 
     136                        end 
     137                         
    136138 
    137139 
  • peasantonline/app/views/catalog/_product_list.rhtml

    r1164 r1231  
    77                <%= link_to '<img src="/images/interface/spacer.png" height="143" width="170" border="0"/>', :controller => 'shop', :action=> 'product', :id => product.id %><br /> 
    88                <div class="product-holder-text"> 
    9                         <%= link_to product.name, :controller => 'shop', :action=> 'product', :id => product.id %><br /> 
     9                        <% if product.tag_names.include?("new_items") %><b class="new_arrival">New Arrival!</b><br/><% end %><%= link_to product.name, :controller => 'shop', :action=> 'product', :id => product.id %><br /> 
    1010                        <%= product.short_description %> 
    1111                </div> 
  • peasantonline/public/stylesheets/catalog.css

    r1219 r1231  
    228228         
    229229} 
     230 
     231.new_arrival { 
     232        padding: 0px 2px; 
     233        background-color: #660000; 
     234        letter-spacing: 1px; 
     235        font-size: 12px; 
     236        color: #FFFFFF;  
     237}