Permalink
Browse files

Added icons on the highlight/unhighlight links, just cause

  • Loading branch information...
joshmcarthur committed Feb 4, 2011
1 parent a0955c3 commit 5ad500c4c5b41368b37340e644666b519894defe
@@ -1,5 +1,12 @@
<% if product.highlighted_at.blank? %>
- <%= link_to(t("highlight_products.do_highlight"), highlight_admin_product_url(product), :method => :post) unless product.deleted? %>
+ <%= link_to highlight_admin_product_url(product), :class => 'icon-link', :method => :post do -%>
+ <%= image_tag "arrow_up.png", :size => "16x16" -%>
+ <%= t("highlight_products.do_highlight") -%>
+ <% end unless product.deleted? -%>
<% else %>
- <%= link_to(t("highlight_products.do_unhighlight"), unhighlight_admin_product_url(product), :method => :post) unless product.deleted? %>
-<% end %>
+ <%= link_to unhighlight_admin_product_url(product), :class => 'icon-link', :method => :post do -%>
+ <%= image_tag "arrow_up.png", :size => "16x16" -%>
+ <%= t("highlight_products.do_unhighlight") -%>
+ <% end unless product.deleted? -%>
+<% end %>
+
Binary file not shown.
View
Binary file not shown.

0 comments on commit 5ad500c

Please sign in to comment.