Sha256: ad2118b29f6308a85a75b5a5de428b739cbed4d82c7dfd09af2e1140d1ec0e00

Contents?: true

Size: 1.42 KB

Versions: 4

Compression:

Stored size: 1.42 KB

Contents

<% if user_signed_in? && current_subject.can_comment?(activity) %>
  <div class="activity_new_comment">
    <div class="actor_logo_subactivity">
      <%= image_tag(current_subject.logo.url(:actor),
                            :alt => 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 %>

   <%= f.text_field :text, :class =>"input_new_comments", :id => "comment_text_"+dom_id(activity) %>

   <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>
<% end %>

<%= javascript_tag do %>
  $(document).ready(function() {
    $("#comment_text_<%= dom_id(activity) %>").Watermark("<%= I18n.t('comment.input') %>","#666");
    activate_anti_rebounds();
    $(".input_new_comments").blur(function(){
        $(".activity_new_comment").hide();
        $(".comment_shown").show();
      });  
  });
<% end %>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
social_stream-0.9.7 base/app/views/comments/_new.html.erb
social_stream-base-0.9.10 app/views/comments/_new.html.erb
social_stream-0.9.6 base/app/views/comments/_new.html.erb
social_stream-base-0.9.9 app/views/comments/_new.html.erb