mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +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)
|
||||
|> validate_inclusion(:theme, ~W(default dark red))
|
||||
|> validate_inclusion(:images_per_page, 15..50)
|
||||
|> validate_inclusion(:comments_per_page, 15..100)
|
||||
|> validate_inclusion(:images_per_page, 1..50)
|
||||
|> validate_inclusion(:comments_per_page, 1..100)
|
||||
|> Search.validate_search(:watched_images_query_str, user, true)
|
||||
|> Search.validate_search(:watched_images_exclude_str, user, true)
|
||||
end
|
||||
|
|
|
@ -65,7 +65,7 @@ h1 Content Settings
|
|||
.fieldlabel: i Display the newest comments at the top of the page.
|
||||
.field
|
||||
=> 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
|
||||
.fieldlabel
|
||||
i
|
||||
|
@ -73,7 +73,7 @@ h1 Content Settings
|
|||
' For 1080p monitors, try 24.
|
||||
.field
|
||||
=> 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
|
||||
.fieldlabel: i This is the number of comments per page that are displayed on image pages.
|
||||
.field
|
||||
|
|
Loading…
Reference in a new issue