From 86d018dffc3c77f542388bcab5b4319d54fdb3b0 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sat, 30 Mar 2024 12:15:39 +0100 Subject: [PATCH] [FEAT] Visual separation between types of attachments - Add a visual (but still semantic way) separation between Forgejo's generated attachments and the user's uploaded ones. - The styling was first done by `ul` element, but is moved to the individual list items to have better control over them. - Add tooltip explaining the attachment was generated by Forgejo. - Remove the tooltip of the other attachments and 'simplify' them into a text. - Resolves #2893 Co-authored-by: 0ko <0ko@noreply.codeberg.org> (cherry picked from commit 20a35972200fc7f2a5a105fe5e8aaaa118bc9b5d) --- options/locale/locale_en-US.ini | 3 ++- templates/repo/release/list.tmpl | 15 ++++++++++----- templates/repo/release/new.tmpl | 5 +---- web_src/css/repo/release-tag.css | 24 ++++++++++++++++++------ 4 files changed, 31 insertions(+), 16 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 3a871b2eb8..56a866bae5 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2635,11 +2635,12 @@ release.tag_name_invalid = The tag name is not valid. release.tag_name_protected = The tag name is protected. release.tag_already_exist = This tag name already exists. release.downloads = Downloads -release.download_count = Downloads: %s +release.download_count = %s downloads release.add_tag_msg = Use the title and content of release as tag message. release.add_tag = Create Tag Only release.releases_for = Releases for %s release.tags_for = Tags for %s +release.system_generated = This attachment is automatically generated. branch.name = Branch name branch.already_exists = A branch named "%s" already exists. diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index c010bb968c..ba5cea0729 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -67,13 +67,21 @@ {{ctx.Locale.Tr "repo.release.downloads"}}