Commit 6a5304ec58cc6599be19cfaf1732a07e16d960e9
Committed by
Gabriel Silva
1 parent
ceba70c6
Exists in
federation_followers_backend
Create page to edit follows category
Signed-off-by: Artur Bersan de Faria <artur_bersan@hotmail.com> Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com>
Showing
3 changed files
with
14 additions
and
5 deletions
Show diff stats
app/controllers/my_profile/followed_people_controller.rb
1 | class FollowedPeopleController < MyProfileController | 1 | class FollowedPeopleController < MyProfileController |
2 | 2 | ||
3 | def index | 3 | def index |
4 | - @followed_people = [].paginate(:per_page => 5, :page => params[:npage], :total_entries => profile.friends.count) | 4 | + @followed_people = Person.all.limit(10).paginate(:per_page => 5, :page => params[:npage]) |
5 | end | 5 | end |
6 | 6 | ||
7 | - | 7 | + def set_category |
8 | + render :partial => "set_category_modal" | ||
9 | + end | ||
8 | end | 10 | end |
app/views/followed_people/_profile_list.html.erb
@@ -7,9 +7,8 @@ | @@ -7,9 +7,8 @@ | ||
7 | <%= button_without_text :remove, content_tag('span',_('remove')), | 7 | <%= button_without_text :remove, content_tag('span',_('remove')), |
8 | { :action => 'remove', :id => profile.id }, | 8 | { :action => 'remove', :id => profile.id }, |
9 | :title => _('remove') %> | 9 | :title => _('remove') %> |
10 | - <%= button_without_text 'menu-mail', content_tag('span',_('contact')), | ||
11 | - profile.url.merge(:controller => 'contact', :action => 'new', :profile => profile.identifier), | ||
12 | - :title => _('contact') %> | 10 | + <%= modal_icon_button :change_categoy, content_tag('span',_('change category')), |
11 | + profile.url.merge(:controller => 'followed_people', :action => 'set_category', :profile => profile.identifier)%> | ||
13 | </div><!-- end class="controll" --> | 12 | </div><!-- end class="controll" --> |
14 | </li> | 13 | </li> |
15 | <% end %> | 14 | <% end %> |