Commit c86198332b919618899f26a8674d3f4761bf76bb

Authored by Daniela Feitosa
Committed by Antonio Terceiro
1 parent cac9b82e

ActionItem1020: removing pagination when viewing a community

app/helpers/application_helper.rb
@@ -420,7 +420,7 @@ module ApplicationHelper @@ -420,7 +420,7 @@ module ApplicationHelper
420 end 420 end
421 content_tag tag, 421 content_tag tag,
422 link_to_remote( display, 422 link_to_remote( display,
423 - :update => 'search-results', 423 + :update => 'search-results-and-pages',
424 :url => {:controller => 'account', :action => 'profile_details', :profile => profile.identifier}, 424 :url => {:controller => 'account', :action => 'profile_details', :profile => profile.identifier},
425 :onclick => 'document.location.href = this.href', # work-arround for ie. 425 :onclick => 'document.location.href = this.href', # work-arround for ie.
426 :class => 'profile_link url', 426 :class => 'profile_link url',
app/views/memberships/new_community.rhtml
@@ -17,11 +17,9 @@ @@ -17,11 +17,9 @@
17 <%= f.text_field('tag_list', :size => 64) %> 17 <%= f.text_field('tag_list', :size => 64) %>
18 <%= content_tag( 'small', _('Separate tags with commas') ) %> 18 <%= content_tag( 'small', _('Separate tags with commas') ) %>
19 19
20 - <div id="profile_change_picture">  
21 - <% f.fields_for :image_builder, @community.image do |i| %>  
22 - <%= file_field_or_thumbnail(_('Image:'), @community.image, i) %>  
23 - <% end %>  
24 - </div> 20 + <% f.fields_for :image_builder, @community.image do |i| %>
  21 + <%= file_field_or_thumbnail(_('Image:'), @community.image, i) %>
  22 + <% end %>
25 23
26 <div style='margin-bottom: 1em; margin-top: 1em;'> 24 <div style='margin-bottom: 1em; margin-top: 1em;'>
27 <%= _('New members must be approved:')%> 25 <%= _('New members must be approved:')%>
app/views/search/communities.rhtml
@@ -12,11 +12,12 @@ @@ -12,11 +12,12 @@
12 <div class='atention'><%= __('Choose the communities you want to join and/or create your own.') %></div> 12 <div class='atention'><%= __('Choose the communities you want to join and/or create your own.') %></div>
13 <% end %> 13 <% end %>
14 14
15 -<%# FIXME ARMENGUE %>  
16 -<%= display_results(false) %>  
17 -  
18 -<%= pagination_links @results.values.first %> 15 +<div id='search-results-and-pages'>
  16 + <%# FIXME ARMENGUE %>
  17 + <%= display_results(false) %>
19 18
  19 + <%= pagination_links @results.values.first %>
  20 +</div>
20 21
21 <% if logged_in? %> 22 <% if logged_in? %>
22 <% button_bar do %> 23 <% button_bar do %>