OSDN Git Service

t#32402:add file prof
[pettanr/pettanr.git] / app / controllers / ground_pictures_controller.rb
index 16989a0..04b164f 100644 (file)
@@ -17,6 +17,10 @@ class GroundPicturesController < ApplicationController
     respond_to do |format|
       format.html {
         @paginate = GroundPicture.list_paginate(@page, @page_size)
+        render :template => 'system/filer', :locals => {
+          :items => @ground_pictures, :model => GroundPicture, 
+          :roles => [@user, @admin], :pager => @paginate
+        }
       }
       format.json { render :json => @ground_pictures.to_json(GroundPicture.list_json_opt) }
     end