Opened 7 years ago

Closed 7 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: master
Severity: Keywords: messages template
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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)

messages_block.diff (772 bytes) - added by Ben Davis 7 years ago.
Patch to allow messages <ul> in base.html to be overridden

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Ben Davis

Attachment: messages_block.diff added

Patch to allow messages <ul> in base.html to be overridden

comment:1 Changed 7 years ago by Ben Davis

Has patch: set
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

comment:2 Changed 7 years ago by Ben Davis

Owner: changed from nobody to Ben Davis
Status: newassigned

comment:3 Changed 7 years ago by Russell Keith-Magee

Resolution: duplicate
Status: assignedclosed

Duplicate of #10917

Note: See TracTickets for help on using tickets.
Back to Top