Sha256: f9167d2af99a67291874798d63cbe69478c843d7e467520d7db7cd9c73af2802

Contents?: true

Size: 768 Bytes

Versions: 4

Compression:

Stored size: 768 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>
      <%  pending_total = representation.mailbox.notifications.not_trashed.unread.count %>
      <%= link_to truncate_name(representation.name, :length => 15) + (content_tag(:span, pending_total.to_s, :class => "switch_pending_count") if pending_total > 0), { :s => representation.slug }, { :style => "background: transparent url('#{ image_path representation.logo.url(:representation)}') no-repeat left center;margin-left:2px;" } %>
    </li>
    <% end %>
  </ul>
</li>
<% end %> 

Version data entries

4 entries across 4 versions & 4 rubygems

Version Path
vkhater-social_stream-0.16.3.3 base/app/views/layouts/_header_dropdown_menu_sessions.html.erb
vkhater-social_stream-base-0.11.2 app/views/layouts/_header_dropdown_menu_sessions.html.erb
social_stream-0.16.3 base/app/views/layouts/_header_dropdown_menu_sessions.html.erb
social_stream-base-0.11.2 app/views/layouts/_header_dropdown_menu_sessions.html.erb