Commit c86198332b919618899f26a8674d3f4761bf76bb
Committed by
Antonio Terceiro
1 parent
cac9b82e
Exists in
master
and in
22 other branches
ActionItem1020: removing pagination when viewing a community
Showing
3 changed files
with
9 additions
and
10 deletions
Show diff stats
app/helpers/application_helper.rb
| ... | ... | @@ -420,7 +420,7 @@ module ApplicationHelper |
| 420 | 420 | end |
| 421 | 421 | content_tag tag, |
| 422 | 422 | link_to_remote( display, |
| 423 | - :update => 'search-results', | |
| 423 | + :update => 'search-results-and-pages', | |
| 424 | 424 | :url => {:controller => 'account', :action => 'profile_details', :profile => profile.identifier}, |
| 425 | 425 | :onclick => 'document.location.href = this.href', # work-arround for ie. |
| 426 | 426 | :class => 'profile_link url', | ... | ... |
app/views/memberships/new_community.rhtml
| ... | ... | @@ -17,11 +17,9 @@ |
| 17 | 17 | <%= f.text_field('tag_list', :size => 64) %> |
| 18 | 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 | 24 | <div style='margin-bottom: 1em; margin-top: 1em;'> |
| 27 | 25 | <%= _('New members must be approved:')%> | ... | ... |
app/views/search/communities.rhtml
| ... | ... | @@ -12,11 +12,12 @@ |
| 12 | 12 | <div class='atention'><%= __('Choose the communities you want to join and/or create your own.') %></div> |
| 13 | 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 | 22 | <% if logged_in? %> |
| 22 | 23 | <% button_bar do %> | ... | ... |