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

Version Path
social_stream-1.1.12 base/app/views/layouts/_representation.html.erb
social_stream-base-1.1.11 app/views/layouts/_representation.html.erb
social_stream-1.1.11 base/app/views/layouts/_representation.html.erb
social_stream-base-1.1.10 app/views/layouts/_representation.html.erb
social_stream-1.1.10 base/app/views/layouts/_representation.html.erb
social_stream-base-1.1.9 app/views/layouts/_representation.html.erb
social_stream-1.1.9 base/app/views/layouts/_representation.html.erb
social_stream-base-1.1.8 app/views/layouts/_representation.html.erb
social_stream-1.1.8 base/app/views/layouts/_representation.html.erb
social_stream-base-1.1.7 app/views/layouts/_representation.html.erb
social_stream-1.1.7 base/app/views/layouts/_representation.html.erb
social_stream-base-1.1.6 app/views/layouts/_representation.html.erb
social_stream-1.1.6 base/app/views/layouts/_representation.html.erb
social_stream-base-1.1.5 app/views/layouts/_representation.html.erb
social_stream-1.1.5 base/app/views/layouts/_representation.html.erb
social_stream-base-1.1.4 app/views/layouts/_representation.html.erb
social_stream-1.1.4 base/app/views/layouts/_representation.html.erb
social_stream-1.1.3 base/app/views/layouts/_representation.html.erb
social_stream-base-1.1.3 app/views/layouts/_representation.html.erb
social_stream-1.1.2 base/app/views/layouts/_representation.html.erb