summaryrefslogtreecommitdiffstats
path: root/templates
Commit message (Collapse)AuthorAgeFilesLines
* Remove duplicated button in Install web page (#27941)Nanguan Lin2023-11-071-2/+0
| | | | Fix #27934 Regression #25648
* Fix package webhook (#27839) (#27854)Giteabot2023-10-311-0/+4
| | | | | | | | Backport #27839 by @lunny Fix #23742 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Fix PushEvent NullPointerException jenkinsci/github-plugin (#27203) (#27249)Giteabot2023-09-251-0/+4
| | | | | | | Backport #27203 by @Nabapadma-sarker Fixes #27202 Co-authored-by: Nabapadma-sarker <nabapadmacse1991@gmail.com>
* update footer link to new landing page (#26916) (#26919)techknowlogick2023-09-051-1/+1
| | | Backport #26916
* Fix being unable to use a repo that prohibits accepting PRs as a PR source. ↵Giteabot2023-08-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#26785) (#26790) Backport #26785 by @CaiCandong ## Description Sometimes, we need to use an upstream mirror repository to update the current development repository, but mirror repositories are prohibited from PR. It should not appear in `merge to,` but it can appear in `pull from.` Fix #24585 #26193 #26781 Related #24183 Many thanks to @apnote for assisting me in reproducing this bug! ## ScreenShot --- ### Before <img src="https://github.com/go-gitea/gitea/assets/50507092/3d76c376-1f54-45b9-80c9-6ba8319d6a9a" width="400px"> <img src="https://github.com/go-gitea/gitea/assets/50507092/fbfd9f7f-421f-4a2e-9a3e-f2958bbf3312" width="400px"> ### After <img src="https://github.com/go-gitea/gitea/assets/50507092/e6984524-4f61-4310-b795-4d8598bd8963" width="400px"> <img src="https://github.com/go-gitea/gitea/assets/50507092/04065b44-78d7-4721-bf31-0f1674150727" width="400px"> Co-authored-by: CaiCandong <50507092+CaiCandong@users.noreply.github.com>
* Use docs.gitea.com instead of docs.gitea.io (#26769)Lunny Xiao2023-08-2830-34/+34
| | | backport #26739
* Fix incorrect "tabindex" attributes (#26733) (#26734)wxiaoguang2023-08-2611-52/+52
| | | | | Backport #26733 manually Co-authored-by: Giteabot <teabot@gitea.io>
* Fix link in mirror docs (#26719) (#26732)Giteabot2023-08-251-1/+1
| | | | | | | Backport #26719 by @silverwind Fix hash fragment in this link Co-authored-by: silverwind <me@silverwind.io>
* Make issue template field template access correct template data (#26698) ↵Giteabot2023-08-241-2/+1
| | | | | | | | | | (#26709) Backport #26698 by @wxiaoguang Regression of #23092, the `{{$field := .}}` was missing during that refactoring. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add `branch_filter` to hooks API endpoints (#26599) (#26632)Giteabot2023-08-211-0/+4
| | | | | | | | | | Backport #26599 by @yardenshoham We now include the branch filler in the response. - Closes #26591 Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: Yarden Shoham <git@yardenshoham.com>
* Fix "issueReposQueryPattern does not match query" (#26556) (#26564)Giteabot2023-08-171-1/+1
| | | | | | | | | Backport #26556 by @wolfogre Fix `https://github.com/go-gitea/gitea/pull/26545#discussion_r1295734340` Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix typo of RunerOwnerID (#26508) (#26528)Giteabot2023-08-161-1/+1
| | | | | Backport #26508 by @yp05327 Co-authored-by: yp05327 <576951401@qq.com>
* Add ThreadID parameter for Telegram webhooks (#25996) (#26480)Giteabot2023-08-141-0/+4
| | | | | | | | Backport #25996 Telegram has recently implemented threads (channels) for group chats. Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com> Co-authored-by: neveraskedtoexist <matikot415@gmail.com>
* Fix incorrect color of selected assignees when create issue (#26324) (#26372)Giteabot2023-08-111-0/+2
| | | | | | | | | | | | | Backport #26324 by @yp05327 Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/75d610b2-3823-4366-be85-c77c9106feff) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/15afc6ac-f5ad-4e24-8983-fea8ace5921f) Co-authored-by: yp05327 <576951401@qq.com>
* Fix incorrect sort link with `.profile` repository (#26374) (#26379)Giteabot2023-08-091-10/+10
| | | | | | | | | | | | | | Backport #26374 by @CaiCandong fix #26360 Before: ![before](https://github.com/go-gitea/gitea/assets/50507092/5606afe1-9aa2-455e-8d6f-123ff1ac7011) After: ![After](https://github.com/go-gitea/gitea/assets/50507092/14ff544a-e614-4d41-8615-5244b4ba56eb) Co-authored-by: CaiCandong <50507092+CaiCandong@users.noreply.github.com>
* Display human-readable text instead of cryptic filemodes (#26352) (#26358)delvh2023-08-061-2/+4
| | | | | | | | | | | | | | | | | Backport #26352 Now, you don't need to be a git expert anymore to know what these numbers mean. ## Before ![grafik](https://github.com/go-gitea/gitea/assets/51889757/9a964bf6-10fd-40a6-aeb2-ac8f437f8c32) ## After ![grafik](https://github.com/go-gitea/gitea/assets/51889757/84573cb9-55b6-4dde-9866-95f71b657554) or when the mode actually changed: ![grafik](https://github.com/go-gitea/gitea/assets/51889757/0f327538-ebdc-40e7-8c99-f9e21b67f638)
* Hide `last indexed SHA` when a repo could not be indexed yet (#26340) (#26345)Giteabot2023-08-051-2/+4
| | | | | | | | | | | | | | | | | Backport #26340 by @CaiCandong Now, for a new repo without any commit, the Last indexed SHA field looks like this: Before: ![image](https://github.com/go-gitea/gitea/assets/50507092/cecc6e24-3366-4093-ae07-c361ea34b373) After: ![image](https://github.com/go-gitea/gitea/assets/50507092/9b6ba703-b0d5-4648-ad6b-9a2341dd60f9) fix #26336 Co-authored-by: CaiCandong <50507092+CaiCandong@users.noreply.github.com>
* Fix due date rendering the wrong date in issue (#26268) (#26274)Giteabot2023-08-011-1/+1
| | | | | | | | | | | | | | | | | | Backport #26268 by @yardenshoham Closes #26263 We have to pass the date without the time. # Before ![image](https://github.com/go-gitea/gitea/assets/20454870/6b6cb43d-2b1c-4679-951d-20f48c94bfdd) # After ![image](https://github.com/go-gitea/gitea/assets/20454870/50441baf-2c52-452b-bb0d-6034a407abde) Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: Yarden Shoham <git@yardenshoham.com>
* Use shared template for webhook icons (#26242) (#26246)Giteabot2023-07-316-103/+53
| | | | | | | Backport #26242 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/26241 Co-authored-by: silverwind <me@silverwind.io>
* Don't autosize textarea in diff view (#26233) (#26244)Giteabot2023-07-312-1/+3
| | | | | | | | | | | | | | | | Backport #26233 by @silverwind Resizing the comment editor can be a very expensive operation because it triggers page reflows, which on large PRs can take upwards of seconds to complete. Disable this mechanism on the diff page only where we know that the page can get large. Fixes https://github.com/go-gitea/gitea/issues/26201 for the textarea editor. I don't think this can be fixed for EasyMDE because as far as I can tell, it exposes no option to disable this resizing. Co-authored-by: silverwind <me@silverwind.io>
* Fixed incorrect locale references (#26218) (#26222)Giteabot2023-07-292-2/+2
| | | | | | | | | Backport #26218 by @kerwin612 Fixed two incorrect headers for setting the page navigation bar: * User settings page, should not use the title "`org.settings`" * Repo settings page, should not use the title "`org.settings`" Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
* Fix commit compare style (#26209) (#26226)Giteabot2023-07-291-1/+1
| | | | | | | | | | | | | | | | Backport #26209 by @puni9869 as title Fixes : #25825 Before <img width="1334" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/c54a41b0-39bd-4094-a956-081a8f4128f2"> After change <img width="1340" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/c112d235-6bbe-4bcb-9529-78da3ab0fa14"> Co-authored-by: puni9869 <80308335+puni9869@users.noreply.github.com>
* Display deprecated warning in admin panel pages as well as in the log file ↵Lunny Xiao2023-07-262-4/+6
| | | | | | | | | | | | | | | (#26094) (#26154) backport #26094 Temporily resolve #25915 Related #25994 This PR includes #26007 's changes but have a UI to prompt administrator about the deprecated settings as well as the log or console warning. Then users will have enough time to notice the problem and don't have surprise like before. <img width="1293" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/c33355f0-1ea7-4fb3-ad43-cd23cd15391d">
* Fix LFS object list style (#26133) (#26147)Giteabot2023-07-262-25/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #26133 by @wxiaoguang Close #26104 . Only a quick fix, the UI is not perfect. Before: <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/7b10d42d-8317-4d99-80f9-b6c5fe05c17e) ![image](https://github.com/go-gitea/gitea/assets/2114189/b43f1242-61a0-45e3-98b7-aa74b29f3813) </details> After: <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/a8d27f70-781d-4702-866f-a56df6dd6c0a) ![image](https://github.com/go-gitea/gitea/assets/2114189/379274e7-c67b-4c11-9cee-28a298b4ff5a) </details> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Improve commit graph alignment and truncating (#26112) (#26127)Giteabot2023-07-251-9/+9
| | | | | | | | | | | Backport #26112 by @wxiaoguang Fix #26101 ![image](https://github.com/go-gitea/gitea/assets/2114189/7507d201-822e-4534-8b20-e659d56b1268) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* fix Missing 404 swagger response docs for /admin/users/{username} (#26086) ↵Giteabot2023-07-241-0/+3
| | | | | | | | | (#26089) Backport #26086 by @CaiCandong close #26079 Co-authored-by: caicandong <50507092+CaiCandong@users.noreply.github.com>
* Fix duplicated url prefix on issue context menu (#26066) (#26067)Giteabot2023-07-231-1/+1
| | | | | | | Backport #26066 by @lunny Fix #26060 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Adding remaining enum for migration repo model type. (#26021) (#26034)Giteabot2023-07-211-1/+5
| | | | | | | | | Backport #26021 by @puni9869 Fixes: https://github.com/go-gitea/gitea/issues/26010 Adding remaining enum for migration repo model type. Co-authored-by: puni9869 <80308335+puni9869@users.noreply.github.com>
* RPM Registry: Show zypper commands for SUSE based distros as well (#25981) ↵Giteabot2023-07-201-2/+10
| | | | | | | | | | | (#26020) Backport #25981 by @asdil12 After RPM is supported with https://github.com/go-gitea/gitea/pull/23380 let's show the user how to add the repo and install the RPM via all common package managers. Co-authored-by: Dominik Heidler <dominik@heidler.eu>
* Update path related documents (#25417) (#25982)Giteabot2023-07-191-2/+2
| | | | | | | | | | | | | | Backport #25417 by @wxiaoguang Update WorkPath/WORK_PATH related documents, remove out-dated information. Remove "StaticRootPath" on the admin config display page, because few end user really need it, it only causes misconfiguration. ![image](https://github.com/go-gitea/gitea/assets/2114189/8095afa4-da76-436b-9e89-2a92c229c01d) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Make pending commit status yellow again (#25935) (#25968)Giteabot2023-07-191-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #25935 by @silverwind With the introduction of Actions, the pending commit icon has changed from yellow to grey for Drone integrations which never set the "running" status, so it stays in "pending" until completion. I find it better to have this icon colored like on 1.19. Now both the "pending" and "running" icons look the same, but I guess we could add an animation to the "running" state similar to GitHub has to it later. Before: <img width="339" alt="Screenshot 2023-07-17 at 19 14 19" src="https://github.com/go-gitea/gitea/assets/115237/2f4886e4-74fd-42ea-b59e-9af8f141bf1f"> After: <img width="335" alt="Screenshot 2023-07-17 at 19 14 30" src="https://github.com/go-gitea/gitea/assets/115237/53189642-e72d-47f6-9cbe-f14eda28f730"> Also, it matches GH's icon: <img width="466" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/5804ff90-d223-4a3c-8093-7a9abbaacf87"> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: delvh <dev.lh@web.de>
* Make `add line comment` buttons focusable (#25894) (#25896)Giteabot2023-07-152-10/+10
| | | | | | | | | | | | Backport #25894 by @sebastian-sauer Use a real button and add an aria-label. Additionally, show the button whenever it is focused. See https://codeberg.org/forgejo/forgejo/issues/998 for explanation. Our handling of this button is now equal to that of GitHub. Nothing has changed visually. Co-authored-by: sebastian-sauer <sauer.sebastian@gmail.com>
* Fix incorrect release count (#25879) (#25887)Giteabot2023-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | Backport #25879 by @yp05327 Release count is not correct: https://try.gitea.io/yp05327/testrepo/tags ![image](https://github.com/go-gitea/gitea/assets/18380374/07f97c62-d450-4ccb-b3f2-3e0af9d9fc52) https://try.gitea.io/yp05327/testrepo/releases ![image](https://github.com/go-gitea/gitea/assets/18380374/6f1d55a4-bb68-445d-84b9-90552a40f403) https://try.gitea.io/yp05327/testrepo/releases/tag/testtag ![image](https://github.com/go-gitea/gitea/assets/18380374/09ab5d51-52b6-4621-a571-3100198eb260) We already have correct release count, no need to calculate it again. https://github.com/go-gitea/gitea/blob/c5e187c389b35b9e080a3187b93a775a3c81e585/modules/context/repo.go#L547 Co-authored-by: yp05327 <576951401@qq.com>
* Show correct SSL Mode on "install page" (#25818) (#25838)Giteabot2023-07-121-3/+3
| | | | | | | | | | Backport #25818 by @wxiaoguang Fix #25817 ![image](https://github.com/go-gitea/gitea/assets/2114189/49f7b85d-c229-41b5-86fd-58cd812eaca6) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Make "install page" respect environment config (#25648) (#25799)wxiaoguang2023-07-101-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #25648 Replace #25580 Fix #19453 The problem was: when users set "GITEA__XXX__YYY" , the "install page" doesn't respect it. So, to make the result consistent and avoid surprising end users, now the "install page" also writes the environment variables to the config file. And, to make things clear, there are enough messages on the UI to tell users what will happen. There are some necessary/related changes to `environment-to-ini.go`: * The "--clear" flag is removed and it was incorrectly written there. The "clear" operation should be done if INSTALL_LOCK=true * The "--prefix" flag is removed because it's never used, never documented and it only causes inconsistent behavior. The only conflict during backport is "ui divider" in templates/install.tmpl
* Clarify "text-align" CSS helpers, fix clone button padding (#25763) (#25764)wxiaoguang2023-07-106-8/+8
| | | | | | Backport #25763 Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
* Fix notification list bugs (#25781) (#25787)Giteabot2023-07-092-2/+2
| | | | | | | | | | | | | Backport #25781 by @wxiaoguang Fix #25627 1. `ctx.Data["Link"]` should use relative URL but not AppURL 2. The `data-params` is incorrect because it doesn't contain "page". JS can simply use "window.location.search" to construct the AJAX URL 3. The `data-xxx` and `id` in notification_subscriptions.tmpl were copied&pasted, they don't have affect. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Translate untranslated string in issues list (#25759) (#25761)Giteabot2023-07-071-1/+1
| | | | | Backport #25759 by @Maks1mS Co-authored-by: Maxim Slipenko <no-reply@maxim.slipenko.com>
* Hide `add file` button for pull mirrors (#25748) (#25751)Giteabot2023-07-071-1/+1
| | | | | | | | | | | | | | | | Backport #25748 by @hiifong I think hiding the add file button for mirror repositories that can keep the ui clean. Before: ![image](https://github.com/go-gitea/gitea/assets/89133723/84ecf1a5-1a92-4bb1-b472-b4988a4441a9) After: ![image](https://github.com/go-gitea/gitea/assets/89133723/95382e73-286b-4114-9997-456ed77e07ca) Co-authored-by: hiifong <i@hiif.ong>
* Several fixes for mobile UI (#25634) (#25689)Denys Konovalov2023-07-077-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #25634 Resolves https://github.com/go-gitea/gitea/issues/25622 <details> <summary>Screenshots</summary> ![Bildschirmfoto vom 2023-07-02 20-47-34](https://github.com/go-gitea/gitea/assets/47871822/a8a0bff6-9ae3-48f3-b008-00c196a3f8fd) ![Bildschirmfoto vom 2023-07-02 20-47-45](https://github.com/go-gitea/gitea/assets/47871822/172a0021-af74-4690-aa67-0e66688ce733) ![Bildschirmfoto vom 2023-07-02 20-48-37](https://github.com/go-gitea/gitea/assets/47871822/14572ebd-0106-4c8a-ba27-b6b631375ee6) ![Bildschirmfoto vom 2023-07-02 20-49-08](https://github.com/go-gitea/gitea/assets/47871822/7c0ba3aa-1712-482c-aae9-13394dbdaf8a) ![Bildschirmfoto vom 2023-07-02 20-50-28](https://github.com/go-gitea/gitea/assets/47871822/8bd68e26-099a-4abd-8817-16d52af13167) ![Bildschirmfoto vom 2023-07-02 20-51-46](https://github.com/go-gitea/gitea/assets/47871822/3beab8c6-3747-4829-be50-bafaed11000c) ![Bildschirmfoto vom 2023-07-02 20-54-12](https://github.com/go-gitea/gitea/assets/47871822/51f82ef3-a32c-4c27-9056-e8711ed469cc) </details> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
* Allow/fix review (approve/reject) of empty PRs (#25690) (#25732)Giteabot2023-07-062-170/+164
| | | | | | | | | | | | | | | | | | | | | | | | Backport #25690 by @sebastian-sauer gitea allows to create empty PRs. Currently when you need approvals for a merge, you have to manually add /files to the url to get to the files tab to approve / reject the PR. This PR allows to open the files tab via the normal tab / link and then fixes the layout of the files tab. **Screenshots:** Before: ![image](https://github.com/go-gitea/gitea/assets/1135157/b5082e5e-8c32-4412-993e-b854905e96d3) After: ![image](https://github.com/go-gitea/gitea/assets/1135157/1f5e056e-396f-4dfb-8d14-e17a2f6495d9) Co-authored-by: sebastian-sauer <sauer.sebastian@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Show correct naming for 1 comment (#25704) (#25712)Giteabot2023-07-061-1/+1
| | | | | | | | Backport #25704 by @earl-warren - Resolves https://codeberg.org/forgejo/forgejo/issues/948 Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com> Co-authored-by: Gusted <postmaster@gusted.xyz>
* Fix tags header and pretty format numbers (#25624) (#25694)Giteabot2023-07-053-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #25624 by @lunny This casused by #23465 Before release disabled <img width="1320" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/190a1c81-daa5-41bc-91ac-c9a0bf629b5f"> release enabled <img width="1320" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/a0372c31-727c-4ee0-a6b9-30e502498d90"> After release disabled <img width="1304" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/a747ea80-a3d9-4792-8f6d-e8955da78b9e"> release enabled <img width="1290" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/7c0bc43a-9149-4148-859d-35839aeb60ca"> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Actions list enhancements (#25601) (#25678)silverwind2023-07-045-24/+26
| | | | | | | | | | | | Backport https://github.com/go-gitea/gitea/pull/25601 to 1.20. Various small enhancements to the actions list. Before and after: <img width="1264" alt="Screenshot 2023-06-30 at 00 11 40" src="https://github.com/go-gitea/gitea/assets/115237/bb4162ee-cdcf-4a73-b05e-f9521562edbb"> <img width="1264" alt="Screenshot 2023-06-30 at 00 09 51" src="https://github.com/go-gitea/gitea/assets/115237/52a70ea9-4bb3-406e-904b-0fdaafde9582"> Co-authored-by: Giteabot <teabot@gitea.io>
* Fix UI misalignment on user setting page (#25629) (#25656)Giteabot2023-07-037-79/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #25629 by @wxiaoguang Fix #25628 Diff with ignoring space: https://github.com/go-gitea/gitea/pull/25629/files?diff=unified&w=1 The "modal" shouldn't appear between "ui attached segment", otherwise these segments lose margin-top. After the fix: <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/ac15e73d-4ca8-416a-950d-ffc912c6ab61) ![image](https://github.com/go-gitea/gitea/assets/2114189/eb431336-4d21-4e44-8beb-8919595a83c8) ![image](https://github.com/go-gitea/gitea/assets/2114189/dffaed88-5ba2-419d-a241-24cb200f757c) ![image](https://github.com/go-gitea/gitea/assets/2114189/e8c5a03e-e16a-4c94-a1a5-7845d4e1a824) </details> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix bug of branches API with tests(#25578) (#25579)Lunny Xiao2023-07-031-0/+3
| | | | | | Backport #25578 This PR added a repository's check when creating/deleting branches via API. Mirror repository and archive repository cannot do that.
* Make "cancel" buttons have proper type in modal forms (#25618) (#25641)wxiaoguang2023-07-031-0/+13
| | | | | | | | | | | Replace #25446, fix #25438 All "cancel" buttons which do not have "type" should not submit the form, should not be triggered by "Enter". This is a complete fix for all modal dialogs. The major change is "modules/aria/modal.js", "devtest" related code is for demo/test purpose.
* use css on labels (#25626) (#25636)Giteabot2023-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | Backport #25626 by @derelm Changes html to use CSS label class similar to `templates/shared/actions/runner_list.tmpl` Before: ![grafik](https://github.com/go-gitea/gitea/assets/465155/6729d580-3ea6-4a90-972e-6e5117459da7) After: ![grafik](https://github.com/go-gitea/gitea/assets/465155/d4fc280c-c40b-4db4-b1ba-877270f875c8) List view (for reference - unchanged): ![grafik](https://github.com/go-gitea/gitea/assets/465155/5ad2d8d1-2fb5-414d-823b-48a368a74724) Co-authored-by: derelm <465155+derelm@users.noreply.github.com>
* Use AfterCommitId to get commit for Viewed functionality (#25529) (#25612)Giteabot2023-07-011-1/+1
| | | | | | | | | | | | Backport #25529 by @sebastian-sauer the PullHeadCommitID is not always available when the PR is merged. Not sure if this is the best solution but in my simple tests it looks like this fixes the problem - happy to get any feedback. hopefully fixes https://github.com/go-gitea/gitea/issues/24813 Co-authored-by: sebastian-sauer <sauer.sebastian@gmail.com>
* read-only checkboxes don't appear and don't entirely act the way one might ↵Giteabot2023-06-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | expect (#25573) (#25602) Backport #25573 by @saegl5 This pull request fades read-only checkboxes and checkmark, and it makes the checkboxes act more read-only/disabled by not changing the border-color when clicked. Examples using light mode: | Before | After | | - | - | | ![Kapture 2023-06-28 at 00 20 45](https://github.com/go-gitea/gitea/assets/63764270/0899fd5c-18a9-4290-9ba9-d3cf71033cf8) | ![Kapture 2023-06-28 at 00 23 12](https://github.com/go-gitea/gitea/assets/63764270/0db9be14-e16c-42ed-8fb1-999928fd1d25) | | ![Kapture 2023-06-28 at 00 25 22](https://github.com/go-gitea/gitea/assets/63764270/65c6c380-b928-4e6c-b403-3655d3565896) | ![Kapture 2023-06-28 at 00 27 28](https://github.com/go-gitea/gitea/assets/63764270/d8c2a019-e07c-43a1-a7fa-93c0d4e01900) | | | read-only checkboxes and checkmark are faded<br>and the checkboxes act more read-only/disabled | Fixes/Closes/Resolves #25076 Co-authored-by: Ed Silkworth <ed.silkworth@icloud.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>