Opened 15 years ago

Closed 14 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)

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

Download all attachments as: .zip

Change History (4)

by Ben Davis, 15 years ago

Attachment: messages_block.diff added

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

comment:1 by Ben Davis, 15 years ago

Has patch: set

comment:2 by Ben Davis, 15 years ago

Owner: changed from nobody to Ben Davis
Status: newassigned

comment:3 by Russell Keith-Magee, 14 years ago

Resolution: duplicate
Status: assignedclosed

Duplicate of #10917

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