ref: master
plugins/exchange/views/exchange_plugin_myprofile/_proposals.html.erb
<% first = true %> <% @proposals.each do |proposal| %> <% next unless (not proposal.open?) or proposal.origin == profile %><% if not proposal.open? %><% end %><%= _('Proposal sent %s') % proposal.sent_at.strftime(_("%m/%d/%Y at %H:%Mh")) %><% end %><%= render "proposal_header", proposal: proposal %> <% if first and (@exchange.state == "proposal" or @exchange.state == "negociation") %> <%= render "proposal_buttons", proposal: proposal %> <% end %> <%= render "proposal_messages", proposal: proposal, new_message: first %> <% first = false %><%= _('You offer') %>
<%= render 'proposal_element_list', proposal: proposal, profile: @profile, actor: 'profile' %> <% if proposal.open? %><%= _('What you can offer?') %>
<%= render 'proposal_offers', profile: profile, actor: 'profile', proposal: proposal %> <%= render 'proposal_knowledges', profile: profile, actor: 'profile', proposal: proposal %> <% end %><%= _('You ask') %>
<%= render 'proposal_element_list', proposal: proposal, profile: @theother, actor: 'theother' %> <% if proposal.open? %> <%= render 'proposal_offers', profile: @theother, actor: 'theother', proposal: proposal %> <%= render 'proposal_knowledges', profile: @theother, actor: 'theother', proposal: proposal %> <% end %>