mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-14 00:01:44 -04:00
Compare commits
8 Commits
371520d7ab
...
34a2cf5079
Author | SHA1 | Date | |
---|---|---|---|
|
34a2cf5079 | ||
|
45aa4ea705 | ||
|
6250fe1dc1 | ||
|
f83246edb2 | ||
|
a8c30a45fa | ||
|
8f3aaef374 | ||
|
529bac1950 | ||
|
ccd3a55bf4 |
350
CHANGELOG.md
350
CHANGELOG.md
@ -4,6 +4,356 @@ This changelog goes through all the changes that have been made in each release
|
|||||||
without substantial changes to our git log; to see the highlights of what has
|
without substantial changes to our git log; to see the highlights of what has
|
||||||
been added to each release, please refer to the [blog](https://blog.gitea.io).
|
been added to each release, please refer to the [blog](https://blog.gitea.io).
|
||||||
|
|
||||||
|
## [1.19.0](https://github.com/go-gitea/gitea/releases/tag/1.19.0) - 2023-03-19
|
||||||
|
|
||||||
|
* BREAKING
|
||||||
|
* Add loading yaml label template files (#22976) (#23232)
|
||||||
|
* Make issue and code search support camel case for Bleve (#22829)
|
||||||
|
* Repositories: by default disable all units except code and pulls on forks (#22541)
|
||||||
|
* Support template for merge message description (#22248)
|
||||||
|
* Remove ONLY_SHOW_RELEVANT_REPOS setting (#21962)
|
||||||
|
* Implement actions (#21937)
|
||||||
|
* Remove deprecated DSA host key from Docker Container (#21522)
|
||||||
|
* Improve valid user name check (#20136)
|
||||||
|
* SECURITY
|
||||||
|
* Return 404 instead of 403 if user can not access the repo (#23155) (#23158)
|
||||||
|
* Support scoped access tokens (#20908)
|
||||||
|
* FEATURES
|
||||||
|
* Add support for commit cross references (#22645)
|
||||||
|
* Scoped labels (#22585)
|
||||||
|
* Add Chef package registry (#22554)
|
||||||
|
* Support asciicast files as new markup (#22448)
|
||||||
|
* cgo cross-compile for freebsd (#22397)
|
||||||
|
* Add cron method to gc LFS MetaObjects (#22385)
|
||||||
|
* Add new captcha: cloudflare turnstile (#22369)
|
||||||
|
* Enable `@<user>`- completion popup on the release description textarea (#22359)
|
||||||
|
* make /{username}.png redirect to user/org avatar (#22356)
|
||||||
|
* Add Conda package registry (#22262)
|
||||||
|
* Support org/user level projects (#22235)
|
||||||
|
* Add Mermaid copy button (#22225)
|
||||||
|
* Add user secrets (#22191)
|
||||||
|
* Secrets storage with SecretKey encrypted (#22142)
|
||||||
|
* Preview images for Issue cards in Project Board view (#22112)
|
||||||
|
* Add support for incoming emails (#22056)
|
||||||
|
* Add Cargo package registry (#21888)
|
||||||
|
* Add option to prohibit fork if user reached maximum limit of repositories (#21848)
|
||||||
|
* Add attention blocks within quote blocks for `Note` and `Warning` (#21711)
|
||||||
|
* Add Feed for Releases and Tags (#21696)
|
||||||
|
* Add package registry cleanup rules (#21658)
|
||||||
|
* Add "Copy" button to file view of raw text (#21629)
|
||||||
|
* Allow disable sitemap (#21617)
|
||||||
|
* Add package registry quota limits (#21584)
|
||||||
|
* Map OIDC groups to Orgs/Teams (#21441)
|
||||||
|
* Keep languages defined in .gitattributes (#21403)
|
||||||
|
* Add Webhook authorization header (#20926)
|
||||||
|
* Supports wildcard protected branch (#20825)
|
||||||
|
* Copy citation file content, in APA and BibTex format, on repo home page (#19999)
|
||||||
|
* API
|
||||||
|
* Match api migration behavior to web behavior (#23552) (#23573)
|
||||||
|
* Purge API comment (#23451) (#23452)
|
||||||
|
* User creation API: allow custom "created" timestamps (#22549)
|
||||||
|
* Add `updated_at` field to PullReview API object (#21812)
|
||||||
|
* Add API management for issue/pull and comment attachments (#21783)
|
||||||
|
* Add API endpoint to get latest release (#21267)
|
||||||
|
* Support system hook API (#14537)
|
||||||
|
* ENHANCEMENTS
|
||||||
|
* Add `.patch` to `attachment.ALLOWED_TYPES` (#23580) (#23582)
|
||||||
|
* Fix sticky header in diff view (#23554) (#23568)
|
||||||
|
* Refactor merge/update git command calls (#23366) (#23544)
|
||||||
|
* Fix review comment context menu clipped bug (#23523) (#23543)
|
||||||
|
* Imrove scroll behavior to hash issuecomment(scroll position, auto expand if file is folded, and on refreshing) (#23513) (#23540)
|
||||||
|
* Increase horizontal page padding (#23507) (#23537)
|
||||||
|
* Use octicon-verified for gpg signatures (#23529) (#23536)
|
||||||
|
* Make time tooltips interactive (#23526) (#23527)
|
||||||
|
* Replace Less with CSS (#23508)
|
||||||
|
* Fix 'View File' button in code search (#23478) (#23483)
|
||||||
|
* Convert GitHub event on actions and fix some pull_request events. (#23037) (#23471)
|
||||||
|
* Support reflogs (#22451) (#23438)
|
||||||
|
* Fix actions frontend bugs (pagination, long name alignment) and small simplify (#23370) (#23436)
|
||||||
|
* Scoped label display and documentation tweaks (#23430) (#23433)
|
||||||
|
* Add missing tabs to org projects page (#22705) (#23412)
|
||||||
|
* Fix and move "Use this template" button (#23398) (#23408)
|
||||||
|
* Handle OpenID discovery URL errors a little nicer when creating/editing sources (#23397) (#23403)
|
||||||
|
* Rename `canWriteUnit` to `canWriteProjects` (#23386) (#23399)
|
||||||
|
* Refactor and tidy-up the merge/update branch code (#22568) (#23365)
|
||||||
|
* Refactor `setting.Database.UseXXX` to methods (#23354) (#23356)
|
||||||
|
* Fix incorrect project links and use symlink icon for org-wide projects (#23325) (#23336)
|
||||||
|
* Fix PR view misalignment caused by long name file (#23321) (#23335)
|
||||||
|
* Scoped labels: don't require holding alt key to remove (#23303) (#23331)
|
||||||
|
* Add context when rendering labels or emojis (#23281) (#23319)
|
||||||
|
* Change interactiveBorder to fix popup preview (#23169) (#23314)
|
||||||
|
* Scoped labels: set aria-disabled on muted Exclusive option for a11y (#23306) (#23311)
|
||||||
|
* update to mermaid v10 (#23178) (#23299)
|
||||||
|
* Fix code wrap for unbroken lines (#23268) (#23293)
|
||||||
|
* Use async await to fix empty quote reply at first time (#23168) (#23256)
|
||||||
|
* Fix switched citation format (#23250) (#23253)
|
||||||
|
* Allow `<video>` in MarkDown (#22892) (#23236)
|
||||||
|
* Order pull request conflict checking by recently updated, for each push (#23220) (#23225)
|
||||||
|
* Fix Fomantic UI's `touchstart` fastclick, always use `click` for click events (#23065) (#23195)
|
||||||
|
* Add word-break to sidebar-item-link (#23146) (#23180)
|
||||||
|
* Add InsecureSkipVerify to Minio Client for Storage (#23166) (#23177)
|
||||||
|
* Fix height for sticky head on large screen on PR page (#23111) (#23123)
|
||||||
|
* Change style to improve whitespaces trimming inside inline markdown code (#23093) (#23120)
|
||||||
|
* Avoid warning for system setting when start up (#23054) (#23116)
|
||||||
|
* Add accessibility to the menu on the navbar (#23059) (#23095)
|
||||||
|
* Improve accessibility for issue comments (#22612) (#23083)
|
||||||
|
* Remove delete button for review comment (#23036)
|
||||||
|
* Remove dashes between organization member avatars on hover (#23034)
|
||||||
|
* Use `gt-relative` class instead of the ambiguous `gt-pr` class (#23008)
|
||||||
|
* handle deprecated settings (#22992)
|
||||||
|
* Add scopes to API to create token and display them (#22989)
|
||||||
|
* Improve PR Review Box UI (#22986)
|
||||||
|
* Improve issues.LoadProject (#22982)
|
||||||
|
* Add all units to the units permission list in org team members sidebar (#22971)
|
||||||
|
* Rename `GetUnits` to `LoadUnits` (#22970)
|
||||||
|
* Rename `repo.GetOwner` to `repo.LoadOwner` (#22967)
|
||||||
|
* Rename "People" to "Members" in organization page and use a better icon (#22960)
|
||||||
|
* Fix avatar misalignment (#22955)
|
||||||
|
* Sort issues and pulls by recently updated in user and organization home (#22925)
|
||||||
|
* Add `title` to PR file tree items (#22918)
|
||||||
|
* First step to refactor the `.hide` to `.gt-hidden` (#22916)
|
||||||
|
* Add tooltip to issue reference (#22913)
|
||||||
|
* Always show the `command line instructions` button even if there are conflicts (#22909)
|
||||||
|
* Fix dark-colored description text in arc-green theme (#22908)
|
||||||
|
* Remove Fomantic-UI's `.hidden` CSS class for menu elements (#22895)
|
||||||
|
* Move helpers to be prefixed with `gt-` (#22879)
|
||||||
|
* Move `IsReadmeFile*` from `modules/markup/` to `modules/util` (#22877)
|
||||||
|
* Highlight focused diff file (#22870)
|
||||||
|
* Add some headings to repo views (#22869)
|
||||||
|
* Fix milestone title font problem (#22863)
|
||||||
|
* Pull Requests: setting to allow edits by maintainers by default, tweak UI (#22862)
|
||||||
|
* Introduce customized HTML elements, fix incorrect AppUrl usages in templates (#22861)
|
||||||
|
* Add `/$count` endpoints for NuGet v2 (#22855)
|
||||||
|
* Remove Fomantic-UI's `.hidden` CSS class for checkbox elements (#22851)
|
||||||
|
* Fix notification and stopwatch empty states (#22845)
|
||||||
|
* Always go full width in PR view (#22844)
|
||||||
|
* Improve AppUrl/ROOT_URL checking (#22836)
|
||||||
|
* Fix style of actions rerun button (#22835)
|
||||||
|
* Fix more HTMLURL in templates (#22831)
|
||||||
|
* Fix inconsistent Filter Project name in issue list (#22827)
|
||||||
|
* include build info in Prometheus metrics (#22819)
|
||||||
|
* Make clone URL use current page's host (#22808)
|
||||||
|
* Refactor legacy strange git operations (#22756)
|
||||||
|
* Improve error report when user passes a private key (#22726)
|
||||||
|
* set user dashboard org visibility to basic (#22706)
|
||||||
|
* Fix diff UI for unexpandable items (#22700)
|
||||||
|
* Remove 'primary' class from tab counter labels (#22687)
|
||||||
|
* Add more events details supports for actions (#22680)
|
||||||
|
* Refactor git command package to improve security and maintainability (#22678)
|
||||||
|
* Use relative url in actions view (#22675)
|
||||||
|
* set user visibility class to basic (#22674)
|
||||||
|
* Add repository setting to enable/disable releases unit (#22671)
|
||||||
|
* Remove label color from global issue filters (#22660)
|
||||||
|
* Fix poor alignment of organization description on organization home page (#22656)
|
||||||
|
* Small refactor for loading PRs (#22652)
|
||||||
|
* Allow setting access token scope by CLI (#22648)
|
||||||
|
* Improve accessibility of navigation bar and footer (#22635)
|
||||||
|
* Fixes accessibility behavior of Watching, Staring and Fork buttons (#22634)
|
||||||
|
* Fixes accessibility of empty repository commit status (#22632)
|
||||||
|
* Pull request yaml template support for including commit body in a field (#22629)
|
||||||
|
* Show migration validation error (#22619)
|
||||||
|
* set org visibility class to basic in header (#22605)
|
||||||
|
* Fix cache-control header clearing comment text when editing issue (#22604)
|
||||||
|
* Add ARIA support for Fomantic UI checkboxes (#22599)
|
||||||
|
* Add templates to customize text when creating and migrating repositories (#22597)
|
||||||
|
* Allow setting `redirect_to` cookie on OAuth login (#22594)
|
||||||
|
* Improve checkbox accessibility a bit by adding the title attribute (#22593)
|
||||||
|
* Allow issue templates to not render title (#22589)
|
||||||
|
* Webhooks: for issue close/reopen action, add commit ID that caused it (#22583)
|
||||||
|
* Fix missing title and filter in issue sidebar project menu (#22557)
|
||||||
|
* Issues: support setting issue template field values with query (#22545)
|
||||||
|
* Issues: add Project filter to issues list and search (#22544)
|
||||||
|
* Pull Requests: add color to approved/reject icon in pull requests list (#22543)
|
||||||
|
* Mute all links in issue timeline (#22533)
|
||||||
|
* Dropzone: Add "Copy link" button for new uploads (#22517)
|
||||||
|
* Support importing comment types (#22510)
|
||||||
|
* Load asciicast css async (#22502)
|
||||||
|
* Move delete user to service (#22478)
|
||||||
|
* Change use of Walk to WalkDir to improve disk performance (#22462)
|
||||||
|
* Add reply hint to mail text (#22459)
|
||||||
|
* fix wrong theme class when logged out if default theme is changed (#22408)
|
||||||
|
* Refactor the setting to make unit test easier (#22405)
|
||||||
|
* Improve utils of slices (#22379)
|
||||||
|
* Use context parameter in models/git (#22367)
|
||||||
|
* Always reuse transaction (#22362)
|
||||||
|
* Fix unstable emoji sort (#22346)
|
||||||
|
* Add context cache as a request level cache (#22294)
|
||||||
|
* Reminder for no more logs to console (#22282)
|
||||||
|
* Support estimated count with multiple schemas (#22276)
|
||||||
|
* Move `convert` package to services (#22264)
|
||||||
|
* Use dynamic package type list (#22263)
|
||||||
|
* Hide file borders on sticky diff box (#22217)
|
||||||
|
* Improve notification and stopwatch styles (#22169)
|
||||||
|
* Fixed Project view .board-column height for tall screens. (#22108)
|
||||||
|
* Use multi reader instead to concat strings (#22099)
|
||||||
|
* Use git command instead of exec.Cmd in blame (#22098)
|
||||||
|
* Fix autofilled text visibility in dark mode (#22088)
|
||||||
|
* Rename almost all Ctx functions (#22071)
|
||||||
|
* Rename actions to operations on UI (#22067)
|
||||||
|
* refactor bind functions based on generics (#22055)
|
||||||
|
* Support disabling database auto migration (#22053)
|
||||||
|
* remove duplicated read file code (#22042)
|
||||||
|
* Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986)
|
||||||
|
* Skip initing disabled storages (#21985)
|
||||||
|
* Add doctor command for full GC of LFS (#21978)
|
||||||
|
* Util type to parse ref name (#21969)
|
||||||
|
* Replace fmt.Sprintf with hex.EncodeToString (#21960)
|
||||||
|
* Use random bytes to generate access token (#21959)
|
||||||
|
* Add index for access_token (#21908)
|
||||||
|
* Move all remaining colors into CSS variables (#21903)
|
||||||
|
* Webhook list enhancements (#21893)
|
||||||
|
* Embed Matrix icon as SVG (#21890)
|
||||||
|
* Remove useless "Cancel" buttons (#21872)
|
||||||
|
* fix(web): keep the pages of the navigation in the center (#21867)
|
||||||
|
* fix(web): reduce page jitter on browsers that support overlay scrollbar (#21850)
|
||||||
|
* Improvements for Content Copy (#21842)
|
||||||
|
* Tweak katex options (#21828)
|
||||||
|
* Show syntax lexer name in file view/blame (#21814)
|
||||||
|
* Remove `href="javascript:;"` in "save topics (Done)" button (#21813)
|
||||||
|
* Render number of commits in repo page in a user friendly way (#21786)
|
||||||
|
* Adjust clone timeout error to suggest increasing timeout (#21769)
|
||||||
|
* Update message of reach_limit_of_creation (#21757)
|
||||||
|
* Allow detect whether it's in a database transaction for a context.Context (#21756)
|
||||||
|
* Add configuration for CORS allowed headers (#21747)
|
||||||
|
* Move svg html render to modules/svg (#21716)
|
||||||
|
* Release and Tag List tweaks (#21712)
|
||||||
|
* Remove template previewer (#21701)
|
||||||
|
* Clean up formatting on install page (#21668)
|
||||||
|
* Configure update checker on installation page (#21655)
|
||||||
|
* Merge db.Iterate and IterateObjects (#21641)
|
||||||
|
* Add option to enable CAPTCHA validation for login (#21638)
|
||||||
|
* Allow disable RSS/Atom feed (#21622)
|
||||||
|
* Use CSS color-scheme instead of invert (#21616)
|
||||||
|
* Localize time units on activity heatmap (#21570)
|
||||||
|
* Fix UI column width, button overflow Fomantic's grid (#21559)
|
||||||
|
* feat: notify doers of a merge when automerging (#21553)
|
||||||
|
* Split migrations folder (#21549)
|
||||||
|
* feat: add button to quickly clear merge message (#21548)
|
||||||
|
* Add `context.Context` to more methods (#21546)
|
||||||
|
* Add index for hook_task table (#21545)
|
||||||
|
* Allow disable code tab (#20805)
|
||||||
|
* BUGFIXES
|
||||||
|
* Fix template error when reference Project (#23584)
|
||||||
|
* Fix dropdown icon misalignment when using fomantic icon (#23558) (#23577)
|
||||||
|
* Fix diff detail buttons wrapping, use tippy for review box (#23271) (#23546)
|
||||||
|
* Handle missing `README` in create repos API (#23387) (#23510)
|
||||||
|
* Disable sending email after push a commit to a closed PR (#23462) (#23492)
|
||||||
|
* Fix aria.js bugs: incorrect role element problem, mobile focus problem, tippy problem (#23450) (#23486)
|
||||||
|
* Fix due date being wrong on issue list (#23475) (#23477)
|
||||||
|
* Remove wrongly added column on migration test fixtures (#23456) (#23470)
|
||||||
|
* Make branches list page operations remember current page (#23420) (#23460)
|
||||||
|
* Fix missing commit status in PR which from forked repo (#23351) (#23453)
|
||||||
|
* Show edit/close/delete button on organization wide repositories (#23388) (#23429)
|
||||||
|
* Preserve file size when creating attachments (#23406) (#23426)
|
||||||
|
* Fix broken Chroma CSS styles (#23174) (#23402)
|
||||||
|
* Fix incorrect NotFound conditions in org/projects.go (#23384) (#23395)
|
||||||
|
* Set `X-Gitea-Debug` header once (#23361) (#23381)
|
||||||
|
* Pass context to avatar for projects view (#23359) (#23378)
|
||||||
|
* Fix panic when getting notes by ref (#23372) (#23377)
|
||||||
|
* Do not recognize text files as audio (#23355) (#23368)
|
||||||
|
* Fix adding of empty class name (#23352) (#23360)
|
||||||
|
* Fix various ImageDiff/SVG bugs (#23312) (#23358)
|
||||||
|
* Fix incorrect display for comment context menu (#23343) (#23344)
|
||||||
|
* Remove unnecessary space on link (#23334) (#23340)
|
||||||
|
* Fix incorrect redirect link of delete org project (#23327) (#23339)
|
||||||
|
* Fix cannot reopen after pushing commits to a closed PR (#23189) (#23324)
|
||||||
|
* Fix broken code editor diff preview (#23307) (#23320)
|
||||||
|
* Support sanitising the URL by removing extra slashes in the URL (#21333) (#23300)
|
||||||
|
* Avoid panic caused by broken payload when creating commit status (#23216) (#23294)
|
||||||
|
* Fill head commit to in payload when notifying push commits for mirroring (#23215) (#23292)
|
||||||
|
* Fix various bugs for "install" page (#23194) (#23286)
|
||||||
|
* Fix GetFilesChangedBetween if the file name may be escaped (#23272) (#23279)
|
||||||
|
* Revert relative links to absolute links in mail templates (#23267) (#23269)
|
||||||
|
* Fix commit retrieval by tag (#21804) (#23266)
|
||||||
|
* Use correct README link to render the README (#23152) (#23264)
|
||||||
|
* Close the temp file when dumping database to make the temp file can be deleted on Windows (#23249) (#23251)
|
||||||
|
* Use the correct selector to hide the checkmark of selected labels on clear (#23224) (#23228)
|
||||||
|
* Fix incorrect checkbox behaviors in the dashboard repolist's filter (#23147) (#23205)
|
||||||
|
* Properly flush unique queues on startup (#23154) (#23201)
|
||||||
|
* Pass `--global` when calling `git config --get`, for consistency with `git config --set` (#23157) (#23199)
|
||||||
|
* Make `gitea serv` respect git binary home (#23138) (#23197)
|
||||||
|
* Change button text for commenting and closing an issue at the same time (#23135) (#23182)
|
||||||
|
* Fix DBConsistency checks on MSSQL (#23132) (#23134)
|
||||||
|
* Show empty repos in Admin Repository Management page (#23114) (#23130)
|
||||||
|
* Redirect to the commit page after applying patch (#23056) (#23127)
|
||||||
|
* Fix nil context in RenderMarkdownToHtml (#23092) (#23108)
|
||||||
|
* Make issue meta dropdown support Enter, confirm before reloading (#23014) (#23102)
|
||||||
|
* Fix SyncOnCommit always return false in API of push_mirrors (#23088) (#23100)
|
||||||
|
* Fix commit name in Apply Patch page (#23086) (#23099)
|
||||||
|
* Fix some more hidden problems (#23074) (#23075)
|
||||||
|
* Bump golang.org/x/net from 0.4.0 to 0.7.0 (#22980)
|
||||||
|
* Get rules by id when editing branch protection rule (#22932)
|
||||||
|
* Fix panic when call api (/repos/{owner}/{repo}/pulls/{index}/files) (#22921)
|
||||||
|
* Increase Content field size of gpg_import_key to MEDIUMTEXT (#22897)
|
||||||
|
* Fix hidden commit status on multiple checks (#22889)
|
||||||
|
* Fix update by rebase being wrongly disabled by protected base branch (#22825)
|
||||||
|
* Make issue title edit buttons focusable and fix incorrect ajax requests (#22807)
|
||||||
|
* Fix rerun button of Actions (#22798)
|
||||||
|
* remove update language in ProfilePost (#22748)
|
||||||
|
* Do not overwrite empty DefaultBranch (#22708)
|
||||||
|
* Fix ref to trigger Actions (#22679)
|
||||||
|
* Fix time to NotifyPullRequestSynchronized (#22650)
|
||||||
|
* Show all projects, not just repo projects and open/closed projects (#22640)
|
||||||
|
* Project links should use parent link methods (#22587)
|
||||||
|
* Fix group filter for ldap source sync (#22506)
|
||||||
|
* Check quota limits for container uploads (#22450)
|
||||||
|
* Fix halfCommitter and WithTx (#22366)
|
||||||
|
* Attempt to fix TestExportUserGPGKeys (#22159)
|
||||||
|
* Fix heatmap first color being unused (#22157)
|
||||||
|
* Fix scroll over mermaid frame (#21925)
|
||||||
|
* Move migration test fixtures to the correct directories (#21901)
|
||||||
|
* fix(web): add `alt` for logo in home page (#21887)
|
||||||
|
* Fix webhook attachment text is not set in review comment (#21763)
|
||||||
|
* Alter package_version.metadata_json to LONGTEXT (#21667)
|
||||||
|
* Ensure that Webhook tasks are not double delivered (#21558)
|
||||||
|
* TESTING
|
||||||
|
* Make CI use a dummy password hasher for all tests (#22983)
|
||||||
|
* Disable test for incoming email (#22686)
|
||||||
|
* Move fuzz tests into tests/fuzz (#22376)
|
||||||
|
* Test views of LFS files (#22196)
|
||||||
|
* Specify ID in `TestAPITeam` (#22192)
|
||||||
|
* verify nodeinfo response by schema (#22137)
|
||||||
|
* Skip GitHub migration tests if the API token is undefined (#21824)
|
||||||
|
* Add a simple test for external renderer (#20033)
|
||||||
|
* TRANSLATION
|
||||||
|
* Use "Title Case" for text "Reference in new issue" (#22936)
|
||||||
|
* BUILD
|
||||||
|
* Wrap unless-check in docker manifests (#23079) (#23081)
|
||||||
|
* Adjust manifest to prevent tagging latest on rcs (#22811)
|
||||||
|
* update to build with go1.20 (#22732)
|
||||||
|
* Add Bash and Zsh completion scripts (#22646)
|
||||||
|
* Add Contributed backport command (#22643)
|
||||||
|
* Remove deprecated packages & staticcheck fixes (#22012)
|
||||||
|
* Update to Alpine 3.17 (#21904)
|
||||||
|
* Fix webpack license warning (#21815)
|
||||||
|
* DOCS
|
||||||
|
* Update documentation for the new YAML label file format (#23020) (#23341)
|
||||||
|
* Update hacking-on-gitea-zh_cn documentation (#23315) (#23323)
|
||||||
|
* Add basic documentation for labels, including scoped labels (#23304) (#23309)
|
||||||
|
* Re-add accidentally removed `hacking-on-gitea.zh-cn.md` (#23297) (#23305)
|
||||||
|
* Fix secrets overview page missing from docs sidebar (#23143) (#23145)
|
||||||
|
* Add some guidelines for refactoring (#22880)
|
||||||
|
* Explain that the no-access team unit does not affect public repositories (#22661)
|
||||||
|
* Fix incorrect Redis URL snippets in the example app.ini (#22573)
|
||||||
|
* docs: add swagger.json file location to FAQ (#22489)
|
||||||
|
* Update index.de-de.md (#22363)
|
||||||
|
* Update Gmail mailer configuration (#22291)
|
||||||
|
* Add missed reverse proxy authentication documentation (#22250)
|
||||||
|
* Add plural definitions for German translations (#21802)
|
||||||
|
* Attempt clarify AppWorkPath etc. (#21656)
|
||||||
|
* Add some documentation to packages (#21648)
|
||||||
|
* MISC
|
||||||
|
* Use `<nav>` instead of `<div>` in the global navbar (#23125) (#23533)
|
||||||
|
* Do not create commit graph for temporary repos (#23219) (#23229)
|
||||||
|
* Update button is shown when a Pull Request is marked WIP - Issue #21740 (#22683)
|
||||||
|
* Add main landmark to templates and adjust titles (#22670)
|
||||||
|
* Fix error on account activation with wrong passwd (#22609)
|
||||||
|
* Update JS dependencies (#22538)
|
||||||
|
* Display unreferenced packages total size in package admin panel (#22498)
|
||||||
|
* Mobile fix for Project view: Add delay to Sortable.js on mobile, to ensure scrolling is possible. (#22152)
|
||||||
|
* Update chroma to v2.4.0 (#22000)
|
||||||
|
* Hide collapse icon in diff with no lines (#21094)
|
||||||
|
|
||||||
## [1.18.5](https://github.com/go-gitea/gitea/releases/tag/v1.18.5) - 2023-02-21
|
## [1.18.5](https://github.com/go-gitea/gitea/releases/tag/v1.18.5) - 2023-02-21
|
||||||
|
|
||||||
* ENHANCEMENTS
|
* ENHANCEMENTS
|
||||||
|
@ -16,8 +16,10 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"path"
|
"path"
|
||||||
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
texttemplate "text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.gitea.io/gitea/models/db"
|
"code.gitea.io/gitea/models/db"
|
||||||
@ -213,6 +215,8 @@ func (ctx *Context) RedirectToFirst(location ...string) {
|
|||||||
ctx.Redirect(setting.AppSubURL + "/")
|
ctx.Redirect(setting.AppSubURL + "/")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var templateExecutingErr = regexp.MustCompile(`^template: (.*):([1-9][0-9]*):([1-9][0-9]*): executing (?:"(.*)" at <(.*)>: )?`)
|
||||||
|
|
||||||
// HTML calls Context.HTML and renders the template to HTTP response
|
// HTML calls Context.HTML and renders the template to HTTP response
|
||||||
func (ctx *Context) HTML(status int, name base.TplName) {
|
func (ctx *Context) HTML(status int, name base.TplName) {
|
||||||
log.Debug("Template: %s", name)
|
log.Debug("Template: %s", name)
|
||||||
@ -228,6 +232,34 @@ func (ctx *Context) HTML(status int, name base.TplName) {
|
|||||||
ctx.PlainText(http.StatusInternalServerError, "Unable to find status/500 template")
|
ctx.PlainText(http.StatusInternalServerError, "Unable to find status/500 template")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if execErr, ok := err.(texttemplate.ExecError); ok {
|
||||||
|
if groups := templateExecutingErr.FindStringSubmatch(err.Error()); len(groups) > 0 {
|
||||||
|
errorTemplateName, lineStr, posStr := groups[1], groups[2], groups[3]
|
||||||
|
target := ""
|
||||||
|
if len(groups) == 6 {
|
||||||
|
target = groups[5]
|
||||||
|
}
|
||||||
|
line, _ := strconv.Atoi(lineStr) // Cannot error out as groups[2] is [1-9][0-9]*
|
||||||
|
pos, _ := strconv.Atoi(posStr) // Cannot error out as groups[3] is [1-9][0-9]*
|
||||||
|
filename, filenameErr := templates.GetAssetFilename("templates/" + errorTemplateName + ".tmpl")
|
||||||
|
if filenameErr != nil {
|
||||||
|
filename = "(template) " + errorTemplateName
|
||||||
|
}
|
||||||
|
if errorTemplateName != string(name) {
|
||||||
|
filename += " (subtemplate of " + string(name) + ")"
|
||||||
|
}
|
||||||
|
err = fmt.Errorf("%w\nin template file %s:\n%s", err, filename, templates.GetLineFromTemplate(errorTemplateName, line, target, pos))
|
||||||
|
} else {
|
||||||
|
filename, filenameErr := templates.GetAssetFilename("templates/" + execErr.Name + ".tmpl")
|
||||||
|
if filenameErr != nil {
|
||||||
|
filename = "(template) " + execErr.Name
|
||||||
|
}
|
||||||
|
if execErr.Name != string(name) {
|
||||||
|
filename += " (subtemplate of " + string(name) + ")"
|
||||||
|
}
|
||||||
|
err = fmt.Errorf("%w\nin template file %s", err, filename)
|
||||||
|
}
|
||||||
|
}
|
||||||
ctx.ServerError("Render failed", err)
|
ctx.ServerError("Render failed", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -118,7 +118,7 @@ func handleGenericTemplateError(err error) (string, []interface{}) {
|
|||||||
|
|
||||||
lineNumber, _ := strconv.Atoi(lineNumberStr)
|
lineNumber, _ := strconv.Atoi(lineNumberStr)
|
||||||
|
|
||||||
line := getLineFromAsset(templateName, lineNumber, "")
|
line := GetLineFromTemplate(templateName, lineNumber, "", -1)
|
||||||
|
|
||||||
return "PANIC: Unable to compile templates!\n%s in template file %s at line %d:\n\n%s\nStacktrace:\n\n%s", []interface{}{message, filename, lineNumber, log.NewColoredValue(line, log.Reset), log.Stack(2)}
|
return "PANIC: Unable to compile templates!\n%s in template file %s at line %d:\n\n%s\nStacktrace:\n\n%s", []interface{}{message, filename, lineNumber, log.NewColoredValue(line, log.Reset), log.Stack(2)}
|
||||||
}
|
}
|
||||||
@ -140,7 +140,7 @@ func handleNotDefinedPanicError(err error) (string, []interface{}) {
|
|||||||
|
|
||||||
lineNumber, _ := strconv.Atoi(lineNumberStr)
|
lineNumber, _ := strconv.Atoi(lineNumberStr)
|
||||||
|
|
||||||
line := getLineFromAsset(templateName, lineNumber, functionName)
|
line := GetLineFromTemplate(templateName, lineNumber, functionName, -1)
|
||||||
|
|
||||||
return "PANIC: Unable to compile templates!\nUndefined function %q in template file %s at line %d:\n\n%s", []interface{}{functionName, filename, lineNumber, log.NewColoredValue(line, log.Reset)}
|
return "PANIC: Unable to compile templates!\nUndefined function %q in template file %s at line %d:\n\n%s", []interface{}{functionName, filename, lineNumber, log.NewColoredValue(line, log.Reset)}
|
||||||
}
|
}
|
||||||
@ -161,7 +161,7 @@ func handleUnexpected(err error) (string, []interface{}) {
|
|||||||
|
|
||||||
lineNumber, _ := strconv.Atoi(lineNumberStr)
|
lineNumber, _ := strconv.Atoi(lineNumberStr)
|
||||||
|
|
||||||
line := getLineFromAsset(templateName, lineNumber, unexpected)
|
line := GetLineFromTemplate(templateName, lineNumber, unexpected, -1)
|
||||||
|
|
||||||
return "PANIC: Unable to compile templates!\nUnexpected %q in template file %s at line %d:\n\n%s", []interface{}{unexpected, filename, lineNumber, log.NewColoredValue(line, log.Reset)}
|
return "PANIC: Unable to compile templates!\nUnexpected %q in template file %s at line %d:\n\n%s", []interface{}{unexpected, filename, lineNumber, log.NewColoredValue(line, log.Reset)}
|
||||||
}
|
}
|
||||||
@ -181,14 +181,15 @@ func handleExpectedEnd(err error) (string, []interface{}) {
|
|||||||
|
|
||||||
lineNumber, _ := strconv.Atoi(lineNumberStr)
|
lineNumber, _ := strconv.Atoi(lineNumberStr)
|
||||||
|
|
||||||
line := getLineFromAsset(templateName, lineNumber, unexpected)
|
line := GetLineFromTemplate(templateName, lineNumber, unexpected, -1)
|
||||||
|
|
||||||
return "PANIC: Unable to compile templates!\nMissing end with unexpected %q in template file %s at line %d:\n\n%s", []interface{}{unexpected, filename, lineNumber, log.NewColoredValue(line, log.Reset)}
|
return "PANIC: Unable to compile templates!\nMissing end with unexpected %q in template file %s at line %d:\n\n%s", []interface{}{unexpected, filename, lineNumber, log.NewColoredValue(line, log.Reset)}
|
||||||
}
|
}
|
||||||
|
|
||||||
const dashSeparator = "----------------------------------------------------------------------\n"
|
const dashSeparator = "----------------------------------------------------------------------\n"
|
||||||
|
|
||||||
func getLineFromAsset(templateName string, targetLineNum int, target string) string {
|
// GetLineFromTemplate returns a line from a template with some context
|
||||||
|
func GetLineFromTemplate(templateName string, targetLineNum int, target string, position int) string {
|
||||||
bs, err := GetAsset("templates/" + templateName + ".tmpl")
|
bs, err := GetAsset("templates/" + templateName + ".tmpl")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Sprintf("(unable to read template file: %v)", err)
|
return fmt.Sprintf("(unable to read template file: %v)", err)
|
||||||
@ -229,24 +230,30 @@ func getLineFromAsset(templateName string, targetLineNum int, target string) str
|
|||||||
// If there is a provided target to look for in the line add a pointer to it
|
// If there is a provided target to look for in the line add a pointer to it
|
||||||
// e.g. ^^^^^^^
|
// e.g. ^^^^^^^
|
||||||
if target != "" {
|
if target != "" {
|
||||||
idx := bytes.Index(lineBs, []byte(target))
|
targetPos := bytes.Index(lineBs, []byte(target))
|
||||||
|
if targetPos >= 0 {
|
||||||
if idx >= 0 {
|
position = targetPos
|
||||||
// take the current line and replace preceding text with whitespace (except for tab)
|
|
||||||
for i := range lineBs[:idx] {
|
|
||||||
if lineBs[i] != '\t' {
|
|
||||||
lineBs[i] = ' '
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// write the preceding "space"
|
|
||||||
_, _ = sb.Write(lineBs[:idx])
|
|
||||||
|
|
||||||
// Now write the ^^ pointer
|
|
||||||
_, _ = sb.WriteString(strings.Repeat("^", len(target)))
|
|
||||||
_ = sb.WriteByte('\n')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if position >= 0 {
|
||||||
|
// take the current line and replace preceding text with whitespace (except for tab)
|
||||||
|
for i := range lineBs[:position] {
|
||||||
|
if lineBs[i] != '\t' {
|
||||||
|
lineBs[i] = ' '
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// write the preceding "space"
|
||||||
|
_, _ = sb.Write(lineBs[:position])
|
||||||
|
|
||||||
|
// Now write the ^^ pointer
|
||||||
|
targetLen := len(target)
|
||||||
|
if targetLen == 0 {
|
||||||
|
targetLen = 1
|
||||||
|
}
|
||||||
|
_, _ = sb.WriteString(strings.Repeat("^", targetLen))
|
||||||
|
_ = sb.WriteByte('\n')
|
||||||
|
}
|
||||||
|
|
||||||
// Finally write the footer
|
// Finally write the footer
|
||||||
sb.WriteString(dashSeparator)
|
sb.WriteString(dashSeparator)
|
||||||
|
@ -2265,7 +2265,9 @@ diff.review.header = Submit review
|
|||||||
diff.review.placeholder = Review comment
|
diff.review.placeholder = Review comment
|
||||||
diff.review.comment = Comment
|
diff.review.comment = Comment
|
||||||
diff.review.approve = Approve
|
diff.review.approve = Approve
|
||||||
|
diff.review.self_reject = Pull request authors can't request changes on their own pull request
|
||||||
diff.review.reject = Request changes
|
diff.review.reject = Request changes
|
||||||
|
diff.review.self_approve = Pull request authors can't approve their own pull request
|
||||||
diff.committed_by = committed by
|
diff.committed_by = committed by
|
||||||
diff.protected = Protected
|
diff.protected = Protected
|
||||||
diff.image.side_by_side = Side by Side
|
diff.image.side_by_side = Side by Side
|
||||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -15,6 +15,7 @@
|
|||||||
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
|
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
|
||||||
"@primer/octicons": "18.2.0",
|
"@primer/octicons": "18.2.0",
|
||||||
"@vue/compiler-sfc": "3.2.47",
|
"@vue/compiler-sfc": "3.2.47",
|
||||||
|
"@webcomponents/custom-elements": "1.5.1",
|
||||||
"add-asset-webpack-plugin": "2.0.1",
|
"add-asset-webpack-plugin": "2.0.1",
|
||||||
"ansi-to-html": "0.7.2",
|
"ansi-to-html": "0.7.2",
|
||||||
"asciinema-player": "3.2.0",
|
"asciinema-player": "3.2.0",
|
||||||
@ -1915,6 +1916,11 @@
|
|||||||
"@xtuc/long": "4.2.2"
|
"@xtuc/long": "4.2.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@webcomponents/custom-elements": {
|
||||||
|
"version": "1.5.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@webcomponents/custom-elements/-/custom-elements-1.5.1.tgz",
|
||||||
|
"integrity": "sha512-6T/XT3S1UHDlRWFSxRXdeSoYWczEl78sygNPS7jDyHVrfZcF/pUtWGYgxF4uviH59iPVw1eOWbhubm8CqO0MpA=="
|
||||||
|
},
|
||||||
"node_modules/@webpack-cli/configtest": {
|
"node_modules/@webpack-cli/configtest": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.0.1.tgz",
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
|
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
|
||||||
"@primer/octicons": "18.2.0",
|
"@primer/octicons": "18.2.0",
|
||||||
"@vue/compiler-sfc": "3.2.47",
|
"@vue/compiler-sfc": "3.2.47",
|
||||||
|
"@webcomponents/custom-elements": "1.5.1",
|
||||||
"add-asset-webpack-plugin": "2.0.1",
|
"add-asset-webpack-plugin": "2.0.1",
|
||||||
"ansi-to-html": "0.7.2",
|
"ansi-to-html": "0.7.2",
|
||||||
"asciinema-player": "3.2.0",
|
"asciinema-player": "3.2.0",
|
||||||
|
@ -344,6 +344,9 @@ func NotificationWatching(ctx *context.Context) {
|
|||||||
page = 1
|
page = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
keyword := ctx.FormTrim("q")
|
||||||
|
ctx.Data["Keyword"] = keyword
|
||||||
|
|
||||||
var orderBy db.SearchOrderBy
|
var orderBy db.SearchOrderBy
|
||||||
ctx.Data["SortType"] = ctx.FormString("sort")
|
ctx.Data["SortType"] = ctx.FormString("sort")
|
||||||
switch ctx.FormString("sort") {
|
switch ctx.FormString("sort") {
|
||||||
@ -378,7 +381,7 @@ func NotificationWatching(ctx *context.Context) {
|
|||||||
Page: page,
|
Page: page,
|
||||||
},
|
},
|
||||||
Actor: ctx.Doer,
|
Actor: ctx.Doer,
|
||||||
Keyword: ctx.FormTrim("q"),
|
Keyword: keyword,
|
||||||
OrderBy: orderBy,
|
OrderBy: orderBy,
|
||||||
Private: ctx.IsSigned,
|
Private: ctx.IsSigned,
|
||||||
WatchedByID: ctx.Doer.ID,
|
WatchedByID: ctx.Doer.ID,
|
||||||
|
@ -214,7 +214,9 @@ func GetContents(ctx context.Context, repo *repo_model.Repository, treePath, ref
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
contentsResponse.SubmoduleGitURL = &submodule.URL
|
if submodule != nil && submodule.URL != "" {
|
||||||
|
contentsResponse.SubmoduleGitURL = &submodule.URL
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Handle links
|
// Handle links
|
||||||
if entry.IsRegular() || entry.IsLink() {
|
if entry.IsRegular() || entry.IsLink() {
|
||||||
|
@ -43,7 +43,16 @@
|
|||||||
<input type="hidden" name="action" value="adopt">
|
<input type="hidden" name="action" value="adopt">
|
||||||
<input type="hidden" name="q" value="{{$.Keyword}}">
|
<input type="hidden" name="q" value="{{$.Keyword}}">
|
||||||
<input type="hidden" name="page" value="{{$.CurrentPage}}">
|
<input type="hidden" name="page" value="{{$.CurrentPage}}">
|
||||||
{{template "base/delete_modal_actions" .}}
|
<div class="actions">
|
||||||
|
<button class="ui red basic inverted cancel button">
|
||||||
|
{{svg "octicon-trash" 16 "gt-mr-2"}}
|
||||||
|
{{$.locale.Tr "modal.no"}}
|
||||||
|
</button>
|
||||||
|
<button class="ui green basic inverted ok button">
|
||||||
|
{{svg "octicon-check" 16 "gt-mr-2"}}
|
||||||
|
{{$.locale.Tr "modal.yes"}}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<button class="ui button submit tiny red delete show-modal" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{$.locale.Tr "repo.delete_preexisting_label"}}</span></button>
|
<button class="ui button submit tiny red delete show-modal" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{$.locale.Tr "repo.delete_preexisting_label"}}</span></button>
|
||||||
@ -61,7 +70,16 @@
|
|||||||
<input type="hidden" name="action" value="delete">
|
<input type="hidden" name="action" value="delete">
|
||||||
<input type="hidden" name="q" value="{{$.Keyword}}">
|
<input type="hidden" name="q" value="{{$.Keyword}}">
|
||||||
<input type="hidden" name="page" value="{{$.CurrentPage}}">
|
<input type="hidden" name="page" value="{{$.CurrentPage}}">
|
||||||
{{template "base/delete_modal_actions" .}}
|
<div class="actions">
|
||||||
|
<button class="ui red basic inverted cancel button">
|
||||||
|
{{svg "octicon-trash" 16 "gt-mr-2"}}
|
||||||
|
{{$.locale.Tr "modal.no"}}
|
||||||
|
</button>
|
||||||
|
<button class="ui green basic inverted ok button">
|
||||||
|
{{svg "octicon-check" 16 "gt-mr-2"}}
|
||||||
|
{{$.locale.Tr "modal.yes"}}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
<div class="ui small basic addall modal">
|
<div class="ui small basic addall modal">
|
||||||
<div class="ui icon header">
|
<div class="ui icon header">
|
||||||
<i class="globe icon"></i>
|
{{svg "octicon-globe"}}
|
||||||
{{.locale.Tr "org.teams.add_all_repos_title"}}
|
{{.locale.Tr "org.teams.add_all_repos_title"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -22,9 +22,22 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
<button type="submit" name="type" value="approve" {{if and $.IsSigned ($.Issue.IsPoster $.SignedUser.ID)}} disabled {{end}} class="ui submit green tiny button btn-submit">{{$.locale.Tr "repo.diff.review.approve"}}</button>
|
{{$showSelfTooltip := (and $.IsSigned ($.Issue.IsPoster $.SignedUser.ID))}}
|
||||||
|
{{if $showSelfTooltip}}
|
||||||
|
<span class="gt-dib tooltip" data-content="{{$.locale.Tr "repo.diff.review.self_approve"}}">
|
||||||
|
<button type="submit" name="type" value="approve" disabled class="ui submit green tiny button btn-submit">{{$.locale.Tr "repo.diff.review.approve"}}</button>
|
||||||
|
</span>
|
||||||
|
{{else}}
|
||||||
|
<button type="submit" name="type" value="approve" class="ui submit green tiny button btn-submit">{{$.locale.Tr "repo.diff.review.approve"}}</button>
|
||||||
|
{{end}}
|
||||||
<button type="submit" name="type" value="comment" class="ui submit tiny basic button btn-submit">{{$.locale.Tr "repo.diff.review.comment"}}</button>
|
<button type="submit" name="type" value="comment" class="ui submit tiny basic button btn-submit">{{$.locale.Tr "repo.diff.review.comment"}}</button>
|
||||||
<button type="submit" name="type" value="reject" {{if and $.IsSigned ($.Issue.IsPoster $.SignedUser.ID)}} disabled {{end}} class="ui submit red tiny button btn-submit">{{$.locale.Tr "repo.diff.review.reject"}}</button>
|
{{if $showSelfTooltip}}
|
||||||
|
<span class="gt-dib tooltip" data-content="{{$.locale.Tr "repo.diff.review.self_reject"}}">
|
||||||
|
<button type="submit" name="type" value="reject" disabled class="ui submit red tiny button btn-submit">{{$.locale.Tr "repo.diff.review.reject"}}</button>
|
||||||
|
</span>
|
||||||
|
{{else}}
|
||||||
|
<button type="submit" name="type" value="reject" class="ui submit red tiny button btn-submit">{{$.locale.Tr "repo.diff.review.reject"}}</button>
|
||||||
|
{{end}}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
<div class="ui small basic modal" id="edit-empty-content-modal">
|
<div class="ui small basic modal" id="edit-empty-content-modal">
|
||||||
<div class="ui icon header">
|
<div class="ui icon header">
|
||||||
<i class="file icon"></i>
|
{{svg "octicon-file"}}
|
||||||
{{.locale.Tr "repo.editor.commit_empty_file_header"}}
|
{{.locale.Tr "repo.editor.commit_empty_file_header"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="center content">
|
<div class="center content">
|
||||||
@ -66,11 +66,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<button class="ui red basic cancel inverted button">
|
<button class="ui red basic cancel inverted button">
|
||||||
<i class="remove icon"></i>
|
{{svg "octicon-x"}}
|
||||||
{{.locale.Tr "repo.editor.cancel"}}
|
{{.locale.Tr "repo.editor.cancel"}}
|
||||||
</button>
|
</button>
|
||||||
<button class="ui green basic ok inverted button">
|
<button class="ui green basic ok inverted button">
|
||||||
<i class="save icon"></i>
|
{{svg "fontawesome-save"}}
|
||||||
{{.locale.Tr "repo.editor.commit_changes"}}
|
{{.locale.Tr "repo.editor.commit_changes"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
<div class="ui small basic modal" id="edit-empty-content-modal">
|
<div class="ui small basic modal" id="edit-empty-content-modal">
|
||||||
<div class="ui icon header">
|
<div class="ui icon header">
|
||||||
<i class="file icon"></i>
|
{{svg "octicon-file"}}
|
||||||
{{.locale.Tr "repo.editor.commit_empty_file_header"}}
|
{{.locale.Tr "repo.editor.commit_empty_file_header"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="center content">
|
<div class="center content">
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{{.locale.Tr "twofa"}}
|
{{.locale.Tr "twofa"}}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
<i class="huge key icon"></i>
|
{{svg "octicon-key" 56}}
|
||||||
<h3>{{.locale.Tr "webauthn_insert_key"}}</h3>
|
<h3>{{.locale.Tr "webauthn_insert_key"}}</h3>
|
||||||
{{template "base/alert" .}}
|
{{template "base/alert" .}}
|
||||||
<p>{{.locale.Tr "webauthn_sign_in"}}</p>
|
<p>{{.locale.Tr "webauthn_sign_in"}}</p>
|
||||||
|
@ -50,7 +50,16 @@
|
|||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="id" value="{{$dir}}">
|
<input type="hidden" name="id" value="{{$dir}}">
|
||||||
<input type="hidden" name="action" value="adopt">
|
<input type="hidden" name="action" value="adopt">
|
||||||
{{template "base/delete_modal_actions" .}}
|
<div class="actions">
|
||||||
|
<button class="ui red basic inverted cancel button">
|
||||||
|
{{svg "octicon-x"}}
|
||||||
|
{{$.locale.Tr "modal.no"}}
|
||||||
|
</button>
|
||||||
|
<button class="ui green basic inverted ok button">
|
||||||
|
{{svg "octicon-check"}}
|
||||||
|
{{$.locale.Tr "modal.yes"}}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
@ -68,7 +77,7 @@
|
|||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="id" value="{{$dir}}">
|
<input type="hidden" name="id" value="{{$dir}}">
|
||||||
<input type="hidden" name="action" value="delete">
|
<input type="hidden" name="action" value="delete">
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/delete_modal_actions" $}}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import '@webcomponents/custom-elements'; // automatically adds custom elements for older browsers that don't support it
|
||||||
|
|
||||||
// this is a Gitea's private HTML component, it converts an absolute or relative URL to an absolute URL with the current origin
|
// this is a Gitea's private HTML component, it converts an absolute or relative URL to an absolute URL with the current origin
|
||||||
window.customElements.define('gitea-origin-url', class extends HTMLElement {
|
window.customElements.define('gitea-origin-url', class extends HTMLElement {
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user