Add ActionSuccessView
ActionSuccessView is a a generic view that indicates that something was successful, e.g. deleting a post or banning a user. This hopefully reduces the amount of boilerplate code used for creating success pages since most of them can derive from this generic view. The report and delete success views are updated to use this directly. The ban and modify success views are updated to derive from this class, with special permissions required. The post success view is updated to derive from this class, using a different template. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -161,13 +161,13 @@ if USE_HCAPTCHA:
|
||||
|
||||
# How many seconds to wait before closing the report window after a report is
|
||||
# created.
|
||||
# By default, wait 5 seconds. This should give users plenty of time to read it.
|
||||
REPORT_WINDOW_CLOSE_TIMEOUT = 5
|
||||
# By default, wait 3 seconds. This should give users plenty of time to read it.
|
||||
REPORT_WINDOW_CLOSE_TIMEOUT = 3
|
||||
|
||||
# How many seconds to wait before closing the ban window after a ban is created.
|
||||
# By default, wait 0 seconds and close immediately. It is assumed that the ban
|
||||
# is created successfully, and if an error occurs, the window won't close anyway.
|
||||
BAN_WINDOW_CLOSE_TIMEOUT = 0
|
||||
ACTION_SUCCESS_CLOSE_TIMEOUT = 0
|
||||
|
||||
# How many seconds to wait before closing the new post window after a post is
|
||||
# created.
|
||||
|
||||
Reference in New Issue
Block a user