Sha256: 5f43f014f9c61f5d64a811321a4d64e9c2334c94166ddc85e0c08e7d064b9d10

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 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| %>
   <% current_subject.comment_relations(activity).each do |r| %>
     <%= f.hidden_field "_relation_ids][", :id => "comment__relation_ids_#{ r.id }", :value => r.id %>
   <% end %>
   <%= 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", :id => "comment_submit"+dom_id(activity) %>
   </div>
 <% end %>
    </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social_stream-base-0.6.1 app/views/comments/_new.html.erb
social_stream-base-0.6.0 app/views/comments/_new.html.erb