Closed Bug 425599 Opened 17 years ago Closed 17 years ago

show_activity missing space for attachment flag changes

Categories

(Bugzilla :: User Interface, defect)

3.0.3
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: bbaetz, Assigned: bbaetz)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Changes to attachment flags show up as "Attachment #294955 [details] [diff]Flag". This is due to how the fielddefs stuff is munged. Patch coming
(Well, without the [details] bit.....)
Status: NEW → ASSIGNED
Attached patch Patch (obsolete) (deleted) — Splinter Review
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....
Attachment #312199 - Flags: review?(LpSolit)
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-
Severity: normal → minor
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 3.0
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
(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>
Attached patch patch v2 (deleted) — Splinter Review
* 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 on attachment 312250 [details] [diff] [review] patch v2 r=LpSolit
Attachment #312250 - Flags: review?(LpSolit) → review+
Flags: approval3.0+
Flags: approval+
Checked in to trunk + branch
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
(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.

Attachment

General

Created:
Updated:
Size: