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

Version Path
social_stream-0.10.1 base/app/views/layouts/_representation.html.erb
social_stream-0.10.0 base/app/views/layouts/_representation.html.erb
social_stream-base-0.9.11 app/views/layouts/_representation.html.erb
social_stream-0.9.7 base/app/views/layouts/_representation.html.erb
social_stream-base-0.9.10 app/views/layouts/_representation.html.erb
social_stream-0.9.6 base/app/views/layouts/_representation.html.erb
social_stream-base-0.9.9 app/views/layouts/_representation.html.erb
social_stream-0.9.5 base/app/views/layouts/_representation.html.erb
social_stream-base-0.9.8 app/views/layouts/_representation.html.erb
social_stream-0.9.4 base/app/views/layouts/_representation.html.erb
social_stream-0.9.3 base/app/views/layouts/_representation.html.erb
social_stream-base-0.9.7 app/views/layouts/_representation.html.erb
social_stream-0.9.2 base/app/views/layouts/_representation.html.erb
social_stream-base-0.9.6 app/views/layouts/_representation.html.erb
social_stream-base-0.9.5 app/views/layouts/_representation.html.erb
social_stream-base-0.9.4 app/views/layouts/_representation.html.erb
social_stream-base-0.9.3 app/views/layouts/_representation.html.erb
social_stream-base-0.9.2 app/views/layouts/_representation.html.erb
social_stream-base-0.9.1 app/views/layouts/_representation.html.erb
social_stream-base-0.9.0 app/views/layouts/_representation.html.erb