mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
set lower limit on user pagination to 1
This commit is contained in:
parent
57427079f1
commit
89d3eccef3
2 changed files with 4 additions and 4 deletions
|
@ -330,8 +330,8 @@ defmodule Philomena.Users.User do
|
||||||
])
|
])
|
||||||
|> TagList.propagate_tag_list(:watched_tag_list, :watched_tag_ids)
|
|> TagList.propagate_tag_list(:watched_tag_list, :watched_tag_ids)
|
||||||
|> validate_inclusion(:theme, ~W(default dark red))
|
|> validate_inclusion(:theme, ~W(default dark red))
|
||||||
|> validate_inclusion(:images_per_page, 15..50)
|
|> validate_inclusion(:images_per_page, 1..50)
|
||||||
|> validate_inclusion(:comments_per_page, 15..100)
|
|> validate_inclusion(:comments_per_page, 1..100)
|
||||||
|> Search.validate_search(:watched_images_query_str, user, true)
|
|> Search.validate_search(:watched_images_query_str, user, true)
|
||||||
|> Search.validate_search(:watched_images_exclude_str, user, true)
|
|> Search.validate_search(:watched_images_exclude_str, user, true)
|
||||||
end
|
end
|
||||||
|
|
|
@ -65,7 +65,7 @@ h1 Content Settings
|
||||||
.fieldlabel: i Display the newest comments at the top of the page.
|
.fieldlabel: i Display the newest comments at the top of the page.
|
||||||
.field
|
.field
|
||||||
=> label f, :images_per_page
|
=> label f, :images_per_page
|
||||||
=> number_input f, :images_per_page, min: 15, max: 50, step: 1, class: "input"
|
=> number_input f, :images_per_page, min: 1, max: 50, step: 1, class: "input"
|
||||||
= error_tag f, :images_per_page
|
= error_tag f, :images_per_page
|
||||||
.fieldlabel
|
.fieldlabel
|
||||||
i
|
i
|
||||||
|
@ -73,7 +73,7 @@ h1 Content Settings
|
||||||
' For 1080p monitors, try 24.
|
' For 1080p monitors, try 24.
|
||||||
.field
|
.field
|
||||||
=> label f, :comments_per_page
|
=> label f, :comments_per_page
|
||||||
=> number_input f, :comments_per_page, min: 15, max: 100, step: 1, class: "input"
|
=> number_input f, :comments_per_page, min: 1, max: 100, step: 1, class: "input"
|
||||||
= error_tag f, :comments_per_page
|
= error_tag f, :comments_per_page
|
||||||
.fieldlabel: i This is the number of comments per page that are displayed on image pages.
|
.fieldlabel: i This is the number of comments per page that are displayed on image pages.
|
||||||
.field
|
.field
|
||||||
|
|
Loading…
Reference in a new issue