Skip to content

Better presentation for files attached to issues #6089

@ctrlaltca

Description

@ctrlaltca
  • Gitea version (or commit ref): 1.7.0
  • Git version: 2.14.5
  • Operating system: Slackware64 14.2
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant (the demo doesn't allow non-image uploads)
  • Log gist:

Description

Looking at the view rendering issue attachments, it seems that only images have a special handling.
If you attach files of other types (eg. pdf, txt, odt, ..) an icon with a tooltip containing the file name is rendered.
If an issue contains more than one attachment, it's quite hard to look for a specific attachment on desktop, and impossible on mobile without downloading them all.
It would be nice to have at least the file name printed (alone or alongside the icon), or even better to have an icon like the one already used for newly uploaded files

Screenshots

The screenshot is from an issue containing 2 pdf and 3 odt attachments. There's no way to discriminate between the files:
schermata 2019-02-15 alle 18 48 09
The icon used for newly uploaded files is way nicer:
schermata 2019-02-15 alle 18 49 52

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions