Closed
Bug 425599
Opened 17 years ago
Closed 17 years ago
show_activity missing space for attachment flag changes
Categories
(Bugzilla :: User Interface, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: bbaetz, Assigned: bbaetz)
References
()
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
Changes to attachment flags show up as "Attachment #294955 [details] [diff]Flag". This is due to how the fielddefs stuff is munged.
Patch coming
Assignee | ||
Comment 2•17 years ago
|
||
Its a bit ugly (specifically, the lcfirst breaks if theres ever an acronym at the start of the sentence), but fielddefs aren't localisable ATM anyway, so....
Assignee | ||
Updated•17 years ago
|
Attachment #312199 -
Flags: review?(LpSolit)
Comment 3•17 years ago
|
||
Comment on attachment 312199 [details] [diff] [review]
Patch
>Index: Bugzilla/Bug.pm
>+ if ($attachid) {
>+ $field =~ s/^Attachment\s*//;
>+ # Really ugly, but gives consistent results
>+ $field = lcfirst($field);
>+ }
This is overkill. We don't need that. Having fields with the first letter of *each* word uppercase is fine.
>Index: template/en/default/bug/activity/table.html.tmpl
>- Attachment #[% change.attachid %]</a>
>+ Attachment #[% change.attachid %]</a>[% " " %]
> [% END %]
> [% change.field %]
No, that's a hack. Simply write [%+ change.field %] instead.
Attachment #312199 -
Flags: review?(LpSolit) → review-
Updated•17 years ago
|
Severity: normal → minor
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 3.0
Assignee | ||
Comment 4•17 years ago
|
||
a) Yeah, but because of how fielddefs work you get:
Attachment #1 [details] [diff] mime type
Attachment #1 [details] [diff] filename
Attachment #1 [details] [diff] Flag
Of course, MIME should be upper case, which would break this too. Do we care that its inconsistent?
b) I was trying to avoid extra spaces for non-attachment bits (the END is the end of an IF), but I guess its HTML so doesn't really matter
Comment 5•17 years ago
|
||
(In reply to comment #4)
> a) Yeah, but because of how fielddefs work you get:
> [...] Do we care that its inconsistent?
Completely.
> b) I was trying to avoid extra spaces for non-attachment bits (the END is the
> end of an IF), but I guess its HTML so doesn't really matter
HTML doesn't matter and ignores the leading whitespaces, because both solutions below are equivalent:
<td>Foo</td>
<td>
Foo
</td>
Assignee | ||
Comment 6•17 years ago
|
||
* LpSolit has much more critical bugs to deal with than having "flag" lowercase in show activity :-p
Attachment #312199 -
Attachment is obsolete: true
Attachment #312250 -
Flags: review?(LpSolit)
Comment 7•17 years ago
|
||
Comment on attachment 312250 [details] [diff] [review]
patch v2
r=LpSolit
Attachment #312250 -
Flags: review?(LpSolit) → review+
Updated•17 years ago
|
Flags: approval3.0+
Flags: approval+
Assignee | ||
Comment 8•17 years ago
|
||
Checked in to trunk + branch
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 9•17 years ago
|
||
(In reply to comment #8)
> Checked in to trunk + branch
Please paste new rev. numbers. Else it's a pain to track changes.
You need to log in
before you can comment on or make changes to this bug.
Description
•