Skip to content

Commit

Permalink
Adjusted pagination (30 to 32) and removed map description from maps (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Nov 14, 2016
2 parents 2e77bd9 + 9001d25 commit 1a2817e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/map_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class MapController < ApplicationController

def index
@title = "Maps"
@nodes = DrupalNode.paginate(:page => params[:page])
@nodes = DrupalNode.paginate(:page => params[:page], :per_page => 32)
.order("nid DESC")
.where(type: 'map', status: 1)

Expand Down
1 change: 0 additions & 1 deletion app/views/map/_maps.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<i class="fa fa-trash"></i>
<% end %><% end %>
</small></p>
<p><%= raw strip_tags(sanitize(RDiscount.new(node.body).to_html)).truncate(100) %></p>
</div>
<hr class="visible-xs visible-sm" />
<% if ((i+1)/4.0).to_i == ((i+1)/4.0) %>
Expand Down

0 comments on commit 1a2817e

Please sign in to comment.