Sha256: fe0c1ccda359ec4a21b22a40533e6ac2770579aa6e7a2bb5d44943def8eef05b

Contents?: true

Size: 783 Bytes

Versions: 1

Compression:

Stored size: 783 Bytes

Contents

<%= link_to(image_tag(current_user.logo.url(:tie), :width => 20, :height => 20), current_user) %>

<li class="pipe">
  <%= link_to(current_user.name, current_user) %>

  <%= t('representation.action') %>

  <%= 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) ] } %>
    <%= f.submit t('representation.change') %>
  <% end %>
</li>

<%-# this should be in content_for(:javascript), but the partial is rendered after yield(:javascript) -%>
<script type="text/javascript" charset="utf-8">
  $("#representation_submit").hide();
  $("#representation_subject_dom_id").change(function() {
    $(this).closest("form").submit();
  });
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

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