Code

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#13723 closed (fixed)

Links in error lists looks bad [PATCH]

Reported by: sebastian_noack Owned by: nobody
Component: contrib.admin Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

By passing a SafeString to the ValidationError, you can include markup in your error messages. This quite useful, escpecially to put links to more detailed explanations in the error message. But even though the error messages are styled white on red background, the links are rendered just in their default color (blue), which looks really bad and is nearly unreadable on red background. I have added a patch, that styles those links white with an underscrore, to make them recognized as link by the user.

Attachments (1)

admin_more_readable_links_in_errorlist.patch (510 bytes) - added by sebastian_noack 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by sebastian_noack

comment:1 Changed 4 years ago by jacob

  • milestone set to 1.3
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 4 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(In [13659]) Fixed #13723 -- Improved the legibility of hyperlinks included in admin validation error messages. Thanks to Sebastian Noack for the suggestion and patch.

comment:3 Changed 4 years ago by russellm

(In [13662]) [1.2.X] Fixed #13723 -- Improved the legibility of hyperlinks included in admin validation error messages. Thanks to Sebastian Noack for the suggestion and patch.

Backport of r13659 from trunk.

comment:4 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.