Sha256: a995cd1474f18b0e5b63a6a3dd6660af2cb72a13344597f22d1e9fa220f60122
Contents?: true
Size: 1.39 KB
Versions: 38
Compression:
Stored size: 1.39 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? %> <span id="representation_text"><%= t('representation.action') %></span> <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
38 entries across 38 versions & 2 rubygems