You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo
Kemal Zebari ecd463c2f1
Validate that the tag doesn't exist when creating a tag via the web (#33241)
Found while investigating #33210.

This line no longer makes sense because the form field "TagName" is
required, so this would mean that this code path would never be covered.
Because it isn't covered, we end up going down the "update release"
logic where we eventually set `Release.IsTag` to false (meaning it will
now be treated as a release instead of a tag).

This snapshot rewrites the condition to ensure that we aren't trying to
create a tag that already exists.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 month ago
..
actions workflow_dispatch use workflow from trigger branch (#33098) 2 months ago
branch Refactor context RefName and RepoAssignment (#33226) 1 month ago
cite Fix Citation modal responsiveness and clipboard copy (#29799) 12 months ago
code Fix sync fork for consistency (#33147) 2 months ago
diff add submodule diff links (#33097) 2 months ago
editor Refactor context repository (#33202) 1 month ago
find Fix word overflow in file search page (#32695) 3 months ago
graph De-emphasize signed commits (#31160) 2 months ago
issue Fix unpin hint on the pinned pull requests (#33207) 1 month ago
migrate Fix form width (#33151) 2 months ago
projects Fix incorrect project page CSS class (#32510) 3 months ago
pulls Fix form width (#33151) 2 months ago
release Validate that the tag doesn't exist when creating a tag via the web (#33241) 1 month ago
settings Remove unused CSS styles and move some styles to proper files (#33217) 1 month ago
tag Refactor DateUtils and merge TimeSince (#32409) 4 months ago
wiki Refactor context repository (#33202) 1 month ago
activity.tmpl Implement recent commits graph (#29210) 1 year ago
blame.tmpl Refactor context repository (#33202) 1 month ago
branch_dropdown.tmpl Fix branch dropdown not display ref name (#33159) 2 months ago
clone_buttons.tmpl Rearrange Clone Panel (#31142) 3 months ago
clone_panel.tmpl Refactor context RefName and RepoAssignment (#33226) 1 month ago
code_frequency.tmpl Refactor web routes (#30519) 10 months ago
commit_load_branches_and_tags.tmpl Migrate `gt-hidden` to `tw-hidden` (#30046) 11 months ago
commit_page.tmpl Fix dropdown menu header and mobile view (#33108) 2 months ago
commit_sign_badge.tmpl De-emphasize signed commits (#31160) 2 months ago
commit_status.tmpl Restore warning commit status (#27504) 1 year ago
commit_statuses.tmpl fix toggle commit body button ui when latest commit message is long (#32997) 2 months ago
commits.tmpl Fix branch dropdown not display ref name (#33159) 2 months ago
commits_list.tmpl De-emphasize signed commits (#31160) 2 months ago
commits_list_small.tmpl De-emphasize signed commits (#31160) 2 months ago
commits_search_dropdown.tmpl Unify search boxes (#29530) 12 months ago
commits_table.tmpl Refactor context repository (#33202) 1 month ago
contributors.tmpl Add "n commits" link to contributors in contributors graph page (#32799) 3 months ago
create.tmpl Fix form width (#33151) 2 months ago
create_helper.tmpl Remove incorrect and unnecessary Escape from templates (#29394) 1 year ago
empty.tmpl Fix repo empty guide (#33114) 2 months ago
file_info.tmpl Improve detecting empty files (#31332) 9 months ago
forks.tmpl Refactor find forks and fix possible bugs that weak permissions check (#32528) 3 months ago
graph.tmpl Migrate `gt-hidden` to `tw-hidden` (#30046) 11 months ago
header.tmpl Refactor context repository (#33202) 1 month ago
home.tmpl Refactor context repository (#33202) 1 month ago
home_sidebar_bottom.tmpl Tweak repo sidebar (#32847) 2 months ago
home_sidebar_top.tmpl Move repo size to sidebar (#33155) 2 months ago
icon.tmpl Replace 10 more gt- classes with tw- (#29945) 11 months ago
latest_commit.tmpl fix toggle commit body button ui when latest commit message is long (#32997) 2 months ago
navbar.tmpl Implement recent commits graph (#29210) 1 year ago
packages.tmpl Fix inconsistent user profile layout across tabs (#25625) 2 years ago
pulse.tmpl Remove unused CSS styles and move some styles to proper files (#33217) 1 month ago
recent_commits.tmpl Refactor web routes (#30519) 10 months ago
release_tag_header.tmpl Refactor web routes (#30519) 10 months ago
search.tmpl Unify search boxes (#29530) 12 months ago
search_name.tmpl Clean template/helper.go (#23922) 2 years ago
star_unstar.tmpl code optimization (#31315) 9 months ago
sub_menu.tmpl Refactor context repository (#33202) 1 month ago
unicode_escape_prompt.tmpl Replace some `gt-` classes with `tw-` (#29570) 12 months ago
upload.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
user_cards.tmpl Update the list of watchers and stargazers when clicking watch/unwatch or star/unstar (#32570) 3 months ago
view_file.tmpl Refactor context RefName and RepoAssignment (#33226) 1 month ago
view_list.tmpl add submodule diff links (#33097) 2 months ago
watch_unwatch.tmpl Tweak repo buttons on mobile and labeled button border-radius (#30503) 11 months ago
watchers.tmpl Fix user-cards format (#24428) 2 years ago