Sha256: d001e831f02d1524b408780f3149b49c11381cba3f5b73ffb953437d443465b9
Contents?: true
Size: 926 Bytes
Versions: 106
Compression:
Stored size: 926 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 0% 5px;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
106 entries across 106 versions & 2 rubygems