My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 31 attachment: new_and_sale_icons.patch (1.7 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/helpers/application_helper.rb
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/helpers/application_helper.rb (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/helpers/application_helper.rb (working copy)
@@ -38,10 +38,10 @@
product = '<div class="product">'
# Add 'on sale' image if applicable
if on_sale
- product << '<img src="/images/ui/icons/on-sale.gif" alt="On Sale" border="0" class="icon" />'
+ product << image_tag('public-ui/icons/on-sale.gif', :alt => 'On Sale', :class => 'icon', :plugin => 'substruct')
end
if is_new && !on_sale
- product << '<img src="/images/ui/icons/new.gif" alt="New" border="0" class="icon" />'
+ product << image_tag('public-ui/icons/new.gif', :alt => 'New', :class => 'icon', :plugin => 'substruct')
end
product << %Q/
<div class="product_top"><\/div>
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/store/_product.rhtml
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/store/_product.rhtml (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/store/_product.rhtml (working copy)
@@ -11,5 +11,7 @@
image_url,
url_for(:controller => 'store', :action => 'show', :id => product.code),
product.name,
- product.display_price)
+ product.display_price,
+ product.is_on_sale?,
+ product.is_new?)
-%>
\ No newline at end of file

Powered by Google Project Hosting