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