Zine

open source content publishing system


Ticket #148 (new enhancement)

Opened 3 years ago

Clear flashes on non-admin redirection

Reported by: mitsuhiko Owned by:
Priority: minor Milestone: Zine 0.2
Component: admin Version:
Keywords: Cc:

Description

If the admin flashes and redirects outside the admin panel the user will see flashed messages when entering the admin panel again. However it makes no sense to display flashed messages that are older than 10 seconds or so in the admin panel.

I would propose adding a timestamp to flashed messages and only display flashes if they are not older than 5 seconds.

Caveat: this change must be forward compatible. If a message is flashed and Zine is upgraded between flashing and displaying the application must not die with a 500 internal server error just because the format changed.

Note: See TracTickets for help on using tickets.