Sha256: 365b5267492e07624af2ec41bc1b81352fefd959456bfc8ade6b49d3f6e61e26

Contents?: true

Size: 1.09 KB

Versions: 11

Compression:

Stored size: 1.09 KB

Contents

<% if user_signed_in? && current_subject.can_comment?(activity) %>
  <div class="activity_new_comment">
 <%= 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();  
  });
<% end %>

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
social_stream-0.9.5 base/app/views/comments/_new.html.erb
social_stream-base-0.9.8 app/views/comments/_new.html.erb
social_stream-0.9.4 base/app/views/comments/_new.html.erb
social_stream-0.9.3 base/app/views/comments/_new.html.erb
social_stream-base-0.9.7 app/views/comments/_new.html.erb
social_stream-0.9.2 base/app/views/comments/_new.html.erb
social_stream-base-0.9.6 app/views/comments/_new.html.erb
social_stream-base-0.9.5 app/views/comments/_new.html.erb
social_stream-base-0.9.4 app/views/comments/_new.html.erb
social_stream-base-0.9.3 app/views/comments/_new.html.erb
social_stream-base-0.9.2 app/views/comments/_new.html.erb