Sha256: d96a86d828c6c71c8deca209cb0f903c581b13913b8f587197b4eb30837af12c
Contents?: true
Size: 1.32 KB
Versions: 4
Compression:
Stored size: 1.32 KB
Contents
<% if receiver.active_ties_for(current_subject).any? %> <% content_for :javascript do %> securityImage = "<%= escape_javascript(image_tag('btn/btn_security.png', :id => 'security_image', :alt => 'security')) %>"; downImage = "<%= escape_javascript(image_tag('btn/btn_down.png')) %>"; $("#security").dropdownchecklist( { closeRadioOnClick: true } ); $("#security_image").parent().width(28); $("#security_image").parent().parent().width(28); <% end %> <div id="activities_header" class="content_size"> <%= form_for Post.new(:text => t('activity.input'), :_activity_tie_id => receiver.active_ties_for(current_subject).first.id), :remote => true do |f| %> <%= f.text_field :text, :id => "input_activities", :size => 85 %> <div id="activities_share_btn"> <% if receiver.active_ties_for(current_subject).count > 1 %> <div id="securities"> <%= f.select :_activity_tie_id, receiver.active_ties_for(current_subject).sort{ |t, u| t.relation <=> u.relation }.map{ |t| [ t.relation_name, t.id ] }, {}, :id => 'security' %> </div> <% else %> <%= f.hidden_field :_activity_tie_id %> <% end %> <%= f.submit t('share'), :class =>"myButtonBlue" %> </div> <% end -%> </div> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems