Open Bug 475021 Opened 16 years ago Updated 11 years ago

Visualize attachment types (show icons in attachment list)

Categories

(Bugzilla :: Attachments & Requests, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: InvisibleSmiley, Unassigned)

Details

I think it would help quickly identifying the type of an attachment if there was a small but distinct icon in each attachment row. The icons should be lined up vertically and of the same size, thus I'd vote for putting them to the front. 

Minimally there should be icons for patches, image types (e.g. image/png), plain text and a general one.

If the general rule is not to have icons on bug detail pages I suggest making this a per-user option.
This is a good idea. :-) I'd want the tooltip of the image to say the exact type, of course. And the Details page would also say the exact type. I'm sure there are open-source icons we could re-use.
Assignee: create-and-change → attach-and-request
Component: Creating/Changing Bugs → Attachments & Requests
Priority: -- → P2
Until this is implemented, here's a simple Stylish rule to achieve something basic:

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("bugzilla.mozilla.org") {
  .bz_contenttype_image_png > td:first-child > a:before,
  .bz_contenttype_image_jpeg > td:first-child > a:before {
content:url(put_your_data_URL_here);
}

(Tip: Use http://www.sveinbjorn.org/dataurlmaker for the data: URL.)
You need to log in before you can comment on or make changes to this bug.