Sha256: 1b896576940d0677d9ba712ae1db75ea6d4943241f68cde5f0137ec34d16bb14

Contents?: true

Size: 931 Bytes

Versions: 2

Compression:

Stored size: 931 Bytes

Contents

<% representations = current_user.represented.unshift(current_user) - [current_subject] %>
<% unless representations.empty? %>
<li>
  <%= link_to t('representation.switch'), "javascript:;", :class=>"session_change" %>
  <ul>
    <% representations.each do |representation| %>
    <li>
      <%= content_tag :span do %>
        <%= link_to truncate_name(representation.name, :length => 15), { :s => representation.slug }, { :style => "background: transparent url('#{ image_path representation.logo.url(:representation)}') no-repeat left center;margin-left:2px;" } %>
        <%  pending_total = representation.mailbox.notifications.not_trashed.unread.count %>
        <%= link_to content_tag(:span, pending_total.to_s, :class => "switch_pending_count"), notifications_path(:s => representation.slug), { :style => 'margin: 1px; padding: 0;' }  if pending_total > 0 %>
      <% end %>
    </li>
    <% end %>
  </ul>
</li>
<% end %> 

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
social_stream-0.17.0 base/app/views/layouts/_header_dropdown_menu_sessions.html.erb
social_stream-base-0.12.0 app/views/layouts/_header_dropdown_menu_sessions.html.erb