Sha256: d8983dd4ef989621d4e14c53508a338495504ba16ed61baaa70e297fb432e73e
Contents?: true
Size: 1.88 KB
Versions: 12
Compression:
Stored size: 1.88 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'), :owner_id => Actor.normalize_id(activity.receiver), :_activity_parent_id => activity.id ), :html => { :class => "new_comment", :id => "new_comment"+dom_id(activity) }, :remote => true do |f| %> <%= f.hidden_field :owner_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 %> $(function() { $("#comment_text_<%= dom_id(activity) %>").Watermark("<%= I18n.t('comment.input') %>","#666"); $("#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) %>"); SocialStream.Wall.activateAntiRebounds(); }); <% end %>
Version data entries
12 entries across 12 versions & 2 rubygems