Sha256: 25b1a85ce81efc9974d8077931084219aaad184488ad9a81ecb83fefc7beb1f6
Contents?: true
Size: 1.27 KB
Versions: 5
Compression:
Stored size: 1.27 KB
Contents
<% if receiver.sent_ties_allowing(current_subject, 'create', 'activity').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.sent_ties_allowing(current_subject, 'create', 'activity').first.id), :remote => true do |f| %> <%= f.hidden_field :_activity_tie_id %> <%= f.text_field :text, :id => "input_activities", :size => 85 %> <div id="activities_share_btn"> <div id="securities"> <%= f.select :_activity_tie_id, receiver.sent_ties_allowing(current_subject, 'create', 'activity').sort{ |t, u| t.relation <=> u.relation }.map{ |t| [ t.relation_name, t.id ] }, {}, :id => 'security' %> </div> <%= image_submit_tag "btn/btn_share.png" %> </div> <% end -%> </div> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems