cirandas.net

ref: master

plugins/escambo/views/snippets/_product.html.erb


<% profile = product.enterprise %>

>
<%= _('Offer') %>
<%= _('%{profile} offers %{product}') % { :profile => link_to(profile.name, profile.url), :product => link_to(product.name, product.url), } %>

<%= product.description %>

<%= render :partial => 'snippets/local', :locals => {:profile => profile} %>
<% if profile != @active_organization %> <%= render :partial => 'exchange_plugin_shared/start_exchange', :locals => {:profile => profile, :object_id => product.id, :object_type => "Product"} %> <% else %> <%= link_to _("Edit"), {:controller => "products_plugin/page", :action => :show, :profile => profile.identifier, :id => product.id}, :class => 'exchange' %> <%= link_to _("Remove"), {:controller => "products_plugin/page", :action => :destroy, :profile => profile.identifier, :id => product.id}, :class => 'exchange', :confirm => _('Are you sure you want to remove this product?') %> <% end %>