ref: master
plugins/exchange/views/exchange_plugin_myprofile/index.html.erb
<%= _("%s's Exchanges") % profile.name %>
<% if !@active_exchanges.blank? %><%= _('Active Exchanges') %>
<% @active_exchanges.each do |ee| %><% end %> <% end %> <% unless @inactive_exchanges.blank? %><%= _('Exchange created at %{time} by %{profile}') % { :time => ee.exchange.created_at.strftime("%m/%d/%Y"), :profile => (ee.role == "origin" ? ee.profile.name : ee.the_other.name) } %>
<%= link_to _('Open Exchange'), {:controller => 'exchange_plugin_myprofile', :action => 'exchange_console', :exchange_id => ee.exchange.id} , :class => 'action-button' %><%= render :partial => "states", :locals => {:exchange => ee.exchange}%><%= profile_link_with_image ee.the_other, :thumb %><%= link_to ee.the_other.name, ee.the_other.url %>
<%= _('Closed Exchanges') %>
<% @inactive_exchanges.each do |ee| %><% end %> <% end %><%= _('Exchange with %{the_other} created at %{time} by %{profile} and closed at %{closed_time}') % { :the_other => ee.the_other.name, :time => ee.exchange.created_at.strftime("%m/%d/%Y"), :profile => (ee.role == "origin" ? ee.profile.name : ee.the_other.name), :closed_time => ee.exchange.concluded_at.strftime("%m/%d/%Y") } %>
<%= link_to _('See history'), {:controller => 'exchange_plugin_myprofile', :action => 'exchange_console', :exchange_id => ee.exchange.id} , :class => 'action-button' %>