fix post version listing bug
This commit is contained in:
@@ -18,7 +18,7 @@ div.comments-for-post {
|
|||||||
|
|
||||||
div.content {
|
div.content {
|
||||||
margin-left: 2em;
|
margin-left: 2em;
|
||||||
width: 30em;
|
width: 35em;
|
||||||
float: left;
|
float: left;
|
||||||
|
|
||||||
menu {
|
menu {
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ module Danbooru
|
|||||||
end
|
end
|
||||||
|
|
||||||
def records_per_page
|
def records_per_page
|
||||||
(@paginator_options[:limit] || Danbooru.config.posts_per_page).to_i
|
(@paginator_options.try(:[], :limit) || Danbooru.config.posts_per_page).to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
# taken from kaminari (https://github.com/amatsuda/kaminari)
|
# taken from kaminari (https://github.com/amatsuda/kaminari)
|
||||||
|
|||||||
Reference in New Issue
Block a user