cirandas.net

ref: master

plugins/exchange/views/exchange_plugin_myprofile/_states.html.erb


<%
  #css classes for the states
  if exchange.state == "proposal"
    @state1class = "exchange-active"
    @state2class = "exchange-future"
    @state3class = "exchange-future"
    @state4class = "exchange-future"
  elsif exchange.state == "negociation"
    @state1class = "exchange-past"
    @state2class = "exchange-active"
    @state3class = "exchange-future"
    @state4class = "exchange-future"
  elsif exchange.state == "evaluation"
    @state1class = "exchange-past"
    @state2class = "exchange-past"
    @state3class = "exchange-active"
    @state4class = "exchange-future"
  elsif exchange.state == "concluded"
    @state1class = "exchange-past"
    @state2class = "exchange-past"
    @state3class = "exchange-past"
    @state4class = "exchange-active"
  end
%>

1

<%= _('Proposal') %>

2

<%= _('Negociation') %>

3

<%= _('Evaluation') %>

4

<%= _('Finished') %>