aboutsummaryrefslogtreecommitdiffstats
path: root/templates
Commit message (Collapse)AuthorAgeFilesLines
* Fix key signature error page (#22229) (#22231)Gusted2022-12-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Backport of #22229 - When the GPG key contains an error, such as an invalid signature or an email address that does not match the user.A page will be shown that says you must provide a signature for the token. - This page had two errors: one had the wrong translation key and the other tried to use an undefined variable [`.PaddedKeyID`](https://github.com/go-gitea/gitea/blob/e81ccc406bf723a5a58d685e7782f281736affd4/models/asymkey/gpg_key.go#L65-L72), which is a function implemented on the `GPGKey` struct, given that we don't have that, we use [`KeyID`](https://github.com/go-gitea/gitea/blob/e81ccc406bf723a5a58d685e7782f281736affd4/routers/web/user/setting/keys.go#L102) which is [the fingerprint of the publickey](https://pkg.go.dev/golang.org/x/crypto/openpgp/packet#PublicKey.KeyIdString) and is a valid way for opengpg to refer to a key. <!-- Please check the following: 1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for bug fixes. 2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md 3. Describe what your pull request does and which issue you're targeting (if any) -->
* Fix container layer display overflow (#22208) (#22212)Lauris BH2022-12-221-1/+1
| | | Backport #22208
* Fix sorting admin user list by last login (#22081) (#22106)aceArt-GmbH2022-12-131-2/+2
| | | | | Backport of #22081 Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Fix button in branch list, avoid unexpected page jump before restore branch ↵Xinyu Zhou2022-11-251-11/+15
| | | | | | | | | actually done (#21562) (#21927) Backport #21562 Signed-off-by: Xinyu Zhou <i@sourcehut.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Added check for disabled Packages (#21540) (#21614)Xinyu Zhou2022-10-271-3/+5
| | | | | | | | Backport #21540 At the moment, If admin disable Packages, still show the Packages on the admin dashboard. This patch added a check to hide the Packages entry.
* Fix generating compare link (#21519) (#21530)Lunny Xiao2022-10-211-1/+1
| | | | | | | Fix #6318, backport #21519 Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
* Tag list should include draft releases with existing tags (#21263) (#21365)Jason Song2022-10-071-4/+2
| | | | | | | Backport #21263. Before, a tag for a draft release disappeared in the tag list, fix #21262. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix linked account translation (#21331) (#21334)John Olheiser2022-10-051-1/+1
|
* Fix empty container layer history and UI (#21251) (#21278)KN4CK3R2022-09-271-2/+2
| | | Backport of #21251
* Make Clone in VSCode link get updated correctly (#21225) (#21226)wxiaoguang2022-09-232-14/+18
| | | | | | | | | Backport #21225, fix for #21128 (also in 1.17.3), close #21224 The indent was incorrect before, so this PR did some formatting work. Bypass Golang's template bug for JS string interpolation. And since there are JS lint rules for templates, so the string interpolation is also a must.
* Prevent invalid behavior for file reviewing when loading more files (#21230) ↵delvh2022-09-221-9/+9
| | | | | | | | | | | | | | | | | | (#21234) Backport of #21230 The problem was that many PR review components loaded by `Show more` received the same ID as previous batches, which confuses browsers (when clicked). All such occurrences should now be fixed. Additionally improved the background of the `viewed` checkbox. Fixes #21228. Fixes #20681. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239)wxiaoguang2022-09-221-2/+12
| | | | | | | The images used by Gitea's drone pipeline were upgraded to Go 1.19.x It causes the lint fails because Go 1.19 uses new code format. This PR partially backport #20758 (including the emoji-data sync), partially fix the format manually.
* Make the vscode clone link respect transport protocol (#20557) (#21128)Abdul Monim2022-09-202-1/+6
| | | | | | Backports #20557 Co-authored-by: Norwin <noerw@users.noreply.github.com> Co-authored-by: Munim Munna <6266677+monim67@users.noreply.github.com>
* Fix template bug of admin monitor (#21209)Lunny Xiao2022-09-201-1/+1
| | | backport #21208
* Fix CSV diff for added/deleted files (#21189) (#21193)wxiaoguang2022-09-172-2/+2
| | | | | | | Backport #21189 Fixes #21184 Regression of #19552 Instead of using `GetBlobByPath`, use the already existing instances.
* Fix sub folder in repository missing add file dropdown (#21069) (#21083)Tyrone Yeh2022-09-061-26/+27
| | | | | Backport #21069 In repository sub folder missing add file dropdown menu, Probably broken since #20602
* Fill the specified ref in webhook test payload (#20961) (#21055)Jason Song2022-09-041-1/+1
| | | | | | | Backport #20961 The webhook payload should use the right ref when it‘s specified in the testing request. The compare URL should not be empty, a URL like `compare/A...A` seems useless in most cases but is helpful when testing.
* Do not add links to Posters or Assignees with ID < 0 (#20577) (#21037)zeripath2022-09-037-128/+76
| | | | | | | | | | | Backport #20577 There are several places in templates/repo/issue/view_content/comments.tmpl where links are made to Posters or Assignees who are Ghosts or have IDs <0. Fix #20559 Signed-off-by: Andrew Thornton <art27@cantab.net> Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix modified due date message (#20388) (#21032)Lucas Azevedo2022-09-021-1/+2
| | | Backport #20388
* Fix input.value attr for RequiredClaimName/Value (#20946) (#21001)John Olheiser2022-08-311-2/+2
| | | | | | | Values set for RequiredClaimName and RequiredClaimValue do not show up on UI. Fix typo `values` to `value`. Co-authored-by: soumyadey <soumya.dey@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* fix: remove redundant if (#20997)Jason Song2022-08-301-13/+11
|
* Fix download archiver of a commit (#20962) (#20971)Lunny Xiao2022-08-281-3/+3
|
* Change review buttons to icons to make space for text (#20934) (#20978)silverwind2022-08-274-9/+8
| | | | | The layout on the review code view was broken depending on length of the text. Change all three buttons to icons with tooltip to make more space for these long texts. Fixes: #20922
* Enable contenthash in filename for dynamic assets (#20813) (#20932)silverwind2022-08-254-6/+7
| | | | | | | This should solve the main problem of dynamic assets getting stale after a version upgrade. Everything not affected will use query-string based cache busting, which includes files loaded via HTML or worker scripts.
* Don't open new page for ext wiki on same repository (#20725) (#20910)Gusted2022-08-221-1/+1
| | | | | | | | | | | | | * Don't open new page for ext wiki on same repository (#20725) - Backport of #20725 - When the external wiki has been set to a file on the repository, don't open the page on a tab. - Resolves #20657 * Gofmt * Fix line Co-authored-by: zeripath <art27@cantab.net>
* Pad GPG Key ID with preceding zeroes (#20878) (#20885)zeripath2022-08-222-8/+8
| | | | | | | | | | | | | | Backport #20878 The go crypto library does not pad keyIDs to 16 characters with preceding zeroes. This is a somewhat confusing thing for most users who expect these to have preceding zeroes. This PR prefixes any sub 16 length KeyID with preceding zeroes and removes preceding zeroes from KeyIDs inputted on the API. Fix #20876 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix push mirror address backend get error Address cause setting page display ↵zeripath2022-08-222-4/+4
| | | | error (#20593) (#20901)
* Rework repo buttons (#20602, #20718) (#20719)silverwind2022-08-207-67/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Rework repo buttons (#20602) * Rework repo buttons - Replace "New PR" and "Go to File" button with Icon Button - Move all "Add File" actions into a dropdown button - Remove most custom styling of clone buttons - Margin and wiki tweaks Buttons are now all equal height, mobile layout wraps gracefully. Fixes: https://github.com/go-gitea/gitea/issues/13671 Replaces: https://github.com/go-gitea/gitea/pull/20375 * Restore history button and hide add button when unable to add (#20718) Fix two regressions from #20602: - Restore the 'History' button that was previously unable to render because it's show condition was never hit - Hide the 'Add File' button when there would be no items in the dropdown. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Make branch icon stand out more (#20726) (#20774)Gusted2022-08-121-6/+4
| | | | | | - Backport #20726 - Currently the branch icon is "squashed" between the two branch names and feels a bit "amateur-ish" to my feeling(relative to other UI elements). - This patch tries to improve that by making the icon bigger and by adding some margin to not have a "squashed" icon. - This patch also includes a "fix", for some reason this symbol is not centering correctly. So apply allign-items: center to the top div
* Add disable download source configuration (#20548) (#20579)Lunny Xiao2022-08-124-11/+21
| | | | | | | | | | | | | | * Add disable download source configuration (#20548) Add configuration to enable/disable download source from UI. Co-authored-by: zeripath <art27@cantab.net> * Fix BaseVars not used in renderering * Fix disabled open in vscode menu when disabling download source from UI Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Use correct field name. (#20675) (#20760)KN4CK3R2022-08-111-1/+1
| | | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add default commit messages to PR for squash merge (#20618) (#20645)wxiaoguang2022-08-041-1/+1
| | | | | | | | | Keep the same behavior as 1.16 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Tyrone Yeh <tyrone_yeh@draytek.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Display project in issue list (#20583)aceArt-GmbH2022-08-021-0/+5
| | | | Co-authored-by: lukas <lukas.walter@aceart.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Clean up and fix clone button script (#20415 & #20600) (#20599)silverwind2022-08-026-26/+30
| | | | | | | | | | | | | | | | * Clean up and fix clone button script (#20415) The button 'primary' class needs to be set in a synchronous script to prevent flicker of the button which was regressed recently, fixed that. Additionally, reduced the two script tags to just one, the previous scripts were actually initializing the buttons thrice on the empty repo page, now it only initializes once. Finally, removed duplicate code and re-used the inline function in the update code as well. I had to split out the script into a separate template as on the empty repo page, the script needs access to the clone URL span in the example text, which is rendered below the clone buttons, so buttons and script could not be combined. * Add default value for clone URLs Default clone URLs to HTTP(S) in DOM rendering. JS will immediately replace this if the user preference is SSH. Fixes: https://github.com/go-gitea/gitea/issues/20558
* Fix default merge style for pull requests (#20564) (#20565)wxiaoguang2022-07-311-0/+1
|
* Add missing Tabs on organisation/package view (#20539)65432022-07-291-7/+41
| | | hotfix #20106
* Add labels to two buttons that were missing them (#20419) (#20524)65432022-07-282-2/+2
| | | | | Backport #20419 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Show hint to link package to repo when viewing empty repo package list ↵Norwin2022-07-271-0/+4
| | | | (#20504) (#20507)
* Dismiss prior pull reviews if done via web in review dismiss (#20197) (#20407)65432022-07-191-0/+4
|
* Fix checks in PR for empty commits (#20290) (#20352)Ing. Jaroslav Šafka2022-07-131-4/+12
| | | | | | | | | | | | Backport #20290 * Fix #19603 * fill HeadCommitID in PullRequest * compare real commits ID as check for merging Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Andrew Thornton <art27@cantab.net>
* Hide notify mail setting ui if not enabled (#20138) (#20336)Lunny Xiao2022-07-131-0/+2
| | | Co-authored-by: 6543 <6543@obermui.de>
* Make notification bell more prominent on mobile (#20108, #20236, #20251) ↵zeripath2022-07-071-4/+15
| | | | | | | | | | | | | (#20269) Backport #20108 Backport #20236 Backport #20251 Make notification bell more prominent on mobile Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Tyrone Yeh <siryeh@gmail.com> Signed-off-by: Andrew Thornton <art27@cantab.net>
* Use correct variable for issue count (#20086)Lunny Xiao2022-06-221-2/+2
|
* Delete duplicated update btn on pull request view page (#19993)Lunny Xiao2022-06-171-39/+1
| | | Fix #19987
* fix permission check for delete tag (#19985)a10121127962022-06-161-0/+12
| | | | | | | fix #19970 by the way, fix some error response about protected tags. Signed-off-by: a1012112796 <1012112796@qq.com>
* fix `go to file` link for mirror repository (#19983)a10121127962022-06-161-1/+1
| | | | | | the `BaseRepo` not always exit, should use `Repository`. Signed-off-by: a1012112796 <1012112796@qq.com>
* Remove tab/TabName usage where it's not needed (#19973)Lauris BH2022-06-155-24/+21
| | | `tab` query argument and `TabName` in context is used only in profile so remove it from all other places where it's not used anymore.
* Replace unstyled meter with progress (#19968)silverwind2022-06-151-2/+2
| | | | | | Replace the only `<meter>` element in use with a `<progress>` which is styled properly. Also slightly adjust colors on it for better contrast. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix aria for logo (#19955)wxiaoguang2022-06-131-2/+2
| | | Co-authored-by: 6543 <6543@obermui.de>
* Fix mirror template bug (#19959)Lunny Xiao2022-06-131-3/+4
| | | | | | * Fix mirror template bug Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: delvh <dev.lh@web.de>