_profile_wall.html.erb 1.18 KB
<h3><%= _("%s's wall") % @profile.name %></h3>
<div id='leave_scrap'>
  <%= flash[:error] %>
  <%= form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap', :tab_action => 'wall' }, :update => 'profile_activities', :success => "jQuery('#leave_scrap_content').val(''); jQuery('#filter-followed').tokenInput('clear')", :complete => "jQuery('#leave_scrap_form').removeClass('loading').find('*').attr('disabled', false)", :loading => "jQuery('#leave_scrap_form').addClass('loading').find('*').attr('disabled', true)", :html => {:id => 'leave_scrap_form' } do %>
    <%= limited_text_area :scrap, :content, 420, 'leave_scrap_content', :rows => 2, :class => 'autogrow' %>
    <% if profile == user %>
      <%= token_input_field_tag(:filter_followed, 'filter-followed', {:action => 'search_followed'}, {:theme => 'facebook', :placeholder => _('Filter followed, friends or group of friends to send them a private scrap...')}) %>
    <% end %>
    <%= submit_button :new, _('Share') %>
  <% end %>
</div>
<div id='leave_scrap_response'></div>
<ul id='profile_activities' class='profile-activities'>
  <%= render :partial => 'profile_activities_list', :locals => {:activities => @activities} %>
</ul>