Sha256: 48aab0c8f838436a528d67ffd317a93df67045ff6eed36a7860b29988443f39f
Contents?: true
Size: 1.32 KB
Versions: 192
Compression:
Stored size: 1.32 KB
Contents
<div id="current_user_info"> <% if current_user == current_subject %> <%= link_to(image_tag(current_user.logo.url(:representation), :width => 20, :height => 20, :class => 'menu_icon', :id=> 'current_user_avatar_img'), current_user) %> <% else %> <%= link_to(image_tag(current_user.logo.url(:representation), :width => 20, :height => 20, :class => 'menu_icon'), current_user) %> <% end %> <%= link_to(truncate_name(current_user.name), current_user) %> </div> <% representations = current_user.represented.unshift(current_user) - [current_subject] %> <% if !representations.empty? %> <div id="representations_menu"> <ul class="sf-menu" > <li id="representation_li"> <a href="#" class="sf-with-ul" id="current_subject_avatar_img" style="background: transparent url('<%= image_path current_subject.logo.url(:representation)%>') no-repeat left top;"><%= truncate_name current_subject.name %><span class="sf-sub-indicator"> ยป</span></a> <ul> <% representations.each do |representation| %> <li> <%= link_to truncate_name(representation.name), { :s => representation.slug }, { :style => "background: transparent url('#{ image_path representation.logo.url(:representation)}') no-repeat left center;margin-left:2px;" } %> </li> <% end %> </ul> </li> </ul> </div> <% end %>
Version data entries
192 entries across 192 versions & 4 rubygems