def show_html_format format
format.html {
- play_list = Locmare::ListGroup.list(
+ @play_list = Locmare::ListGroup.list(
'story_sheets', 'by_story', @operators,
- {:id => @item.id, :my_play => @item.own?(@operators)}
+ {:id => @item.id, :page_size => -1} # set no limit options
)
- @play_count = play_list.count(@operators)
}
end
end
def play
+ set_play
+ @list.options.merge!({'per_page' => 1}) # show one sheet
+ @list.reset
play_list
- # no limit
- # no pager
respond_to do |format|
format.html {
+ @pager = @list.page_status.pager
if @item.own? @operators
@new_sheet_items = assist_items('home', 'sheets')
end