Sha256: 74060517f19e98da901f23d4508a58e1e4285007b00e271320100551fcb83495

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

<div id="current_user_info">
  <%= link_to(image_tag(current_user.logo.url(:representation), :width => 20, :height => 20, :class => 'menu_icon'), current_user) %>
  <%= link_to(current_user.name, current_user) %>
  <%= t('representation.action') %>
</div>
<%= form_for(Representation.new(current_subject), :url => representation_path) do |f| %>
  <%= f.select :subject_dom_id, current_user.represented.unshift(current_user).map{ |s| [ s.name, dom_id(s) ] }, :class=>"button sf-menu" %>
  <%= f.submit t('representation.change') %>
<% end %>
<% representations = current_user.represented.unshift(current_user) %>
<% representations.delete(current_subject) %>
<div id="representations_menu">
  <ul class="sf-menu" >
    <li id="representation_li">
      <a href="#" class="sf-with-ul" style="background: transparent url('<%= current_subject.logo.url(:representation)%>') no-repeat left top;"><%= current_subject.name %><span class="sf-sub-indicator"> ยป</span></a>
      <ul>
        <% representations.each do |representation| %>
        <li>
          <%= link_to  representation.name , representation_path(:representation => {:subject_dom_id => dom_id(representation)}),:method => :post,:hola => "yes", :style => "background: transparent url('#{representation.logo.url(:representation)}') no-repeat left center;margin-left:2px;"%>
       </li>
        <% end %>
      </ul>
    </li>
  </ul>
</div>
<%-# this should be in content_for(:javascript), but the partial is rendered after yield(:javascript) -%>
<script type="text/javascript" charset="utf-8">
 $("#new_representation").hide();
 $("#representation_li").show();
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social_stream-0.4.4 app/views/layouts/_representation.html.erb