#10995 closed defect (fixed)
Missing line break on the admin component edit page
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 1.0.1 |
Component: | general | Version: | 1.1.1dev |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Added missing line break after the Owner label on the Component edit admin panel. |
||
API Changes: | |||
Internal Changes: |
Attachments (9)
Change History (18)
by , 12 years ago
Attachment: | AdminComponentEdit.png added |
---|
by , 12 years ago
Attachment: | AdminMilestoneEdit.png added |
---|
by , 12 years ago
Attachment: | AdminVersionEdit.png added |
---|
by , 12 years ago
Attachment: | t10995-r11483-1.patch added |
---|
by , 12 years ago
Attachment: | AdminComponentEdit-AfterPatch.png added |
---|
comment:2 by , 12 years ago
Milestone: | → 1.0.1 |
---|
Thanks for the patch. Note that the owner_field()
is used twice in the template, and one requires the <br/>
while the other doesn't. So the patch will be slightly more complicated.
comment:3 by , 12 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
by , 12 years ago
Attachment: | t10995-r11483-5.patch added |
---|
Patch against r11483 of the trunk that sets max line width to 79 characters.
comment:4 by , 12 years ago
Thanks, I took another crack at it in t10995-r11483-3.patch. Component.select
returns None if owner
is an empty string, so default_owner
will only be an empty string when owner_field
is called with no arguments.
I think the logic would be less confusing if select
returned an empty string for Component.owner
(rather than None
) and the default argument to owner_field
could then be None
, but I doubt we want to make changes like that which could have other consequences.
t10995-r11483-4.patch also fixes two PEP8 violations. Finally, I've wondered why the max 79 character line length coding guideline doesn't seem to be enforced for templates. I modified this template to meet the guideline in t10995-r11483-5.patch and it seems nice and readable.
follow-up: 9 comment:5 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I used a more explicit approach in [11495], by passing an additional br_after_label
argument.
We don't particularly limit the line length of templates to 79 characters, as long as the file is readable, so I didn't apply patch -5
.
comment:6 by , 12 years ago
Owner: | changed from | to
---|
comment:7 by , 12 years ago
Release Notes: | modified (diff) |
---|
comment:8 by , 12 years ago
Release Notes: | modified (diff) |
---|
comment:9 by , 12 years ago
Replying to rblank:
I used a more explicit approach in [11495], by passing an additional
br_after_label
argument.
That makes sense; it is consistent with [11164#file7] and much more clear than my patch. The argument could even be changed from br_after_label
to multiline
for consistency across the template code.
Patch against r11483 of the trunk.