5 <%= render :partial=>'quote_form', locals: { :quote=>@quote, :securities=>@securities } %>
8 <div id='assets_invested' class="overview_counters">
10 <li>Invested: <span><%= smr_humanize(@assets.invested, :shortword=>true) %></span></li>
11 <li>Market Value: <span><%= smr_humanize(@assets.market_value, :shortword=>true) %></span></li>
12 <% if @assets.profit_loss>=0 then %>
13 <li class="profit">Profit: <span><%= smr_humanize(@assets.profit_loss, :shortword=>true) %> (<%= percentage_change(@assets.invested, @assets.market_value) %>)</span></li>
15 <li class="loss">Loss: <span><%= smr_humanize(@assets.profit_loss, :shortword=>true) %> (<%= percentage_change(@assets.invested, @assets.market_value) %>)</span></li>
17 <% if @assets.collateral_coverage_value > 0 then %>
18 <li>Collateral: <span><%= smr_humanize(@assets.collateral_coverage_value, :shortword=>true) %></span></li>
23 <%= form_tag({:action=>'index'}, :method=>:get, :id=>'controller_filter') do %>
25 <%= select_tag :portfolio, options_from_collection_for_select(@portfolios, :id, :name, @portfolio), prompt: '-- All Portfolios --' %>
26 <%= button_tag :show, :name=>'show', :value=>'this' %>
30 <h2>Open Positions</h2>
35 <th>Average Cost<span>per share</span></th>
38 <th>Profit / Loss</th>
43 <% @open_positions.sort.reverse.each do |p| %>
44 <tr class="separaterows">
46 <%= link_to '+', p.link.to_url %> <%= p.security %>
47 <span><%=p.security.symbol%> <%= link_to 'IR', p.security.url%></span>
48 <% if not p.comment.blank? %><span class="comment_text"><%= 'at %s:' % p.portfolio if p.is_cash_position? %> <%= p.comment %></span><% end %>
50 <td><%= smr_humanize(p.cost_price) %></td>
51 <td><% if not p.last_quote.quote %>-<% else %><%= p.last_quote.quote %> <span class='<%= p.last_quote.css_class(smr_browse_date) %>'>•</span><% end %></td>
52 <td><%= smr_humanize(p.market_value) %></td>
53 <td class="<%= smr_profitloss_status(p.profit_loss, :css=>true) %>">
54 <%= smr_humanize(p.profit_loss) %>
55 <span><%= percentage_change(p.invested, p.market_value) %></span>
57 <td><%= percentage_of(@assets.market_value, p.market_value) %></td>