Sha256: 42f9c8a43135c4afff3e68b8e74f51d222634fceae5714efa45b57ed0cea8bc4
Contents?: true
Size: 1.93 KB
Versions: 49
Compression:
Stored size: 1.93 KB
Contents
<% if user_signed_in? && current_subject.can_comment?(activity) %> <div class="activity_new_comment"> <div class="actor_logo_new_comment"> <%= image_tag(current_subject.logo.url(:actor), :alt => current_subject.name)%> </div> <div class= "activity_content"> <div class="actor_name_new_comment"> <%= current_subject.name %> </div> <%= form_for Comment.new(:text => t('comment.input'), :_contact_id => current_subject.contact_to!(activity.receiver).id, :_activity_parent_id => activity.id ), :html => { :class => "new_comment", :id => "new_comment"+dom_id(activity) }, :remote => true do |f| %> <%= f.hidden_field :_contact_id %> <%= f.hidden_field :_activity_parent_id %> <div class="input_new_comments_container"> <%= f.text_area :text, :class =>"input_new_comments", :id => "comment_text_"+dom_id(activity), :rows => 1 %> <div class="copy_new_comment" id="copy_comment_text_<%= dom_id(activity) %>"></div> </div> <div class="activities_comment_btn"> <div class="activities_security"></div> <%= f.submit t('share'), :class =>"myButtonBlue submitActivity", :id => "comment_submit_"+dom_id(activity) %> </div> <% end %> </div> </div> <% end %> <%= javascript_tag do %> $(document).ready(function() { $("#comment_text_<%= dom_id(activity) %>").Watermark("<%= I18n.t('comment.input') %>","#666"); activate_anti_rebounds(); $("#comment_text_<%= dom_id(activity) %>") .change(function(){autoSize("<%= dom_id(activity) %>");}) .keydown(function(){autoSize("<%= dom_id(activity) %>");}) .keyup(function(){autoSize("<%= dom_id(activity) %>");}); autoSize("<%= dom_id(activity) %>"); }); <% end %>
Version data entries
49 entries across 49 versions & 2 rubygems