Opened 15 years ago
Closed 15 years ago
#12041 closed (duplicate)
Wrap messages in block in admin base template
Reported by: | Ben Davis | Owned by: | Ben Davis |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | messages template | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Sometimes it is useful to be able to override how messages are displayed in the admin site. For example, if you want to have different message types (e.g., error, warning, etc..) you'll need to be able to override the messages <ul> in base.html. Unfortunately, it's not in a block so you'd have to copy the entire base.html to your app, which is not good.
This simple patch wraps it in block tags so it can be overridden.
Attachments (1)
Change History (4)
by , 15 years ago
Attachment: | messages_block.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|
comment:2 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
Patch to allow messages <ul> in base.html to be overridden