aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/OSM
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-08-17 15:09:42 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-08-17 15:09:42 +0100
commit0a9dd827dd0d36cc56a7e8011ce58efe215e4237 (patch)
treecb3547e7540a2d29baa900318a59d83a99263022 /perllib/FixMyStreet/Map/OSM
parent72a336a98ade46ee6a96ca111b4ebe18505bd3b9 (diff)
Generalise hostname language overriding.
Diffstat (limited to 'perllib/FixMyStreet/Map/OSM')
0 files changed, 0 insertions, 0 deletions
otfix/0.21.0.12'>hotfix/0.21.0.12 Unnamed repository; edit this file 'description' to name the repository.MimesBrønn
aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/info_request_batch_controller.rb
blob: b666587571c1471ed0654840ce79cc8b4487c047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class InfoRequestBatchController < ApplicationController

    def show
        @info_request_batch = InfoRequestBatch.find(params[:id])
        @per_page = 25
        @page = get_search_page_from_params
        if @info_request_batch.sent_at
            @info_requests = @info_request_batch.info_requests.visible.all(:offset => (@page - 1) * @per_page,
                                                                       :limit => @per_page)
        else
            @public_bodies = @info_request_batch.public_bodies.all(:offset => (@page - 1) * @per_page,
                                                                   :limit => @per_page)
        end
    end

end