aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
Commit message (Collapse)AuthorAgeFilesLines
...
* Trivial fixes (#33304)wxiaoguang2025-01-172-2/+2
| | | | | | | 1. the error check was added for go-git, it was caused by the empty `.keep` file in the test fixtures. 2. use `PostFormValue` instead of `PostForm.Get` (`Get` needs to parse the form ahead) 3. fix incorrect container text (it should show "Images" in the header but not "OS/Arch") 4. align maven xml 5. fix closed PR color&icon
* Fix incorrect ref usages (#33301)wxiaoguang2025-01-161-1/+1
| | | | | Fix #33297 By the way, improve some locales
* Fix closed dependency title (#33285)wxiaoguang2025-01-151-3/+3
| | | Fix #33283
* Fix incorrect TagName/BranchName usages (#33279)wxiaoguang2025-01-151-1/+1
| | | Add add a new test
* Simplify context ref name (#33267)wxiaoguang2025-01-156-36/+12
|
* Add a confirm dialog for "sync fork" (#33270)wxiaoguang2025-01-141-1/+4
| | | Try to quickly fix #33264
* Fix sidebar milestone link (#33269)wxiaoguang2025-01-143-9/+9
| | | Fix #33266
* Fix 500 error when error occurred in migration page (#33256)yp053272025-01-149-9/+27
| | | | | | | | | | The template should be `repo/migrate/{service type}` But input element `service` is not in the form. Related: #33081 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Support public code/issue access for private repositories (#33127)wxiaoguang2025-01-141-1/+19
| | | Close #8649, close #639 (will add "anonymous access" in following PRs)
* Validate that the tag doesn't exist when creating a tag via the web (#33241)Kemal Zebari2025-01-141-11/+5
| | | | | | | | | | | | | | | | 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>
* Refactor context RefName and RepoAssignment (#33226)wxiaoguang2025-01-133-7/+9
| | | | | | | The `ctx.Repo.RefName` was used to be a "short name", it causes a lot of ambiguity. This PR does some refactoring and use `RefFullName` to replace the legacy `RefName`, and simplify RepoAssignment
* Remove unused CSS styles and move some styles to proper files (#33217)wxiaoguang2025-01-122-2/+2
|
* Refactor context repository (#33202)wxiaoguang2025-01-129-59/+59
|
* Fix unpin hint on the pinned pull requests (#33207)Lunny Xiao2025-01-121-1/+1
|
* Fix sync fork for consistency (#33147)Chai-Shi2025-01-101-3/+3
| | | | | | | | | Fixes #33145 An integration test could be added. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix branch dropdown not display ref name (#33159)yp053272025-01-093-20/+30
| | | | | | | | | | | | Before: ![image](https://github.com/user-attachments/assets/899d25a9-80e9-48d5-a820-79c911c858e9) After: ![image](https://github.com/user-attachments/assets/cf2a7407-909a-41db-9957-19d9214af57e) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix assignee list overlapping in Issue sidebar (#33176)wxiaoguang2025-01-101-4/+4
| | | | | | | Fix #33170 ![image](https://github.com/user-attachments/assets/714cebdc-ee76-43e3-9ece-a189f8ecb17a) ![image](https://github.com/user-attachments/assets/cbb58425-42b4-41ee-ba3c-7efbd24607dc)
* Move repo size to sidebar (#33155)yp053272025-01-092-5/+5
| | | ![image](https://github.com/user-attachments/assets/8b14dbb7-ec36-4596-a6aa-72c14d93309d)
* Fix form width (#33151)wxiaoguang2025-01-0811-1142/+1120
| | | Fix #33150
* add submodule diff links (#33097)Rowan Bohde2025-01-082-21/+34
| | | | | | | | | | | | This adds links to submodules in diffs, similar to the existing link when viewing a repo at a specific commit. It does this by expanding diff parsing to recognize changes to submodules, and find the specific refs that are added, deleted or changed. Related #25888 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix repo empty guide (#33114)wxiaoguang2025-01-061-1/+1
|
* Fix dropdown menu header and mobile view (#33108)wxiaoguang2025-01-051-1/+1
| | | | | | | | | | | ![image](https://github.com/user-attachments/assets/3f831c8c-ef87-4282-880a-c2738f3e1d17) ---- ![image](https://github.com/user-attachments/assets/c4c0519b-cfa6-42b4-bd28-205ee514eb34) ---- ![image](https://github.com/user-attachments/assets/8624a605-9f2b-4905-9cbc-0af073972874)
* workflow_dispatch use workflow from trigger branch (#33098)ChristopherHX2025-01-052-24/+48
| | | | | | | | | | | | | * htmx updates the input form on branch switch * add workflow warning to dispatch modal * use name if description of input is empty * show error if workflow_dispatch not available on branch Closes #33073 Closes #33099 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix empty git repo handling logic (#33101)wxiaoguang2025-01-042-13/+10
| | | Fix #33092
* Clean up legacy form CSS styles (#33081)wxiaoguang2025-01-0311-127/+129
|
* Refactor pull-request compare&create page (#33071)wxiaoguang2025-01-021-180/+179
| | | The old code is unnecessarily complex.
* Inherit submodules from template repository content (#16237)Steffen Schröter2025-01-011-2/+2
| | | | | | | | Fix #10316 --------- Signed-off-by: Steffen Schröter <steffen@vexar.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [Feature] Private README.md for organization (#32872)Chai-Shi2024-12-311-3/+6
| | | | | | | | Implemented #29503 --------- Co-authored-by: Ben Chang <ben_chang@htc.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix review code comment avatar alignment (#33031)Henry Goodman2024-12-291-2/+3
| | | | | | | | | | Fixes #33017 Avatar should only have offset if the `Comment` has `Content` or `Attachment` to align with the speech bubble. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* fix toggle commit body button ui when latest commit message is long (#32997)metiftikci2024-12-292-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | #### Before ![before](https://github.com/user-attachments/assets/fe36bdb3-10e8-4fe7-9106-0897f49bedb3) #### After ![after](https://github.com/user-attachments/assets/745bd164-5f25-41ca-b340-36cb695551db) ## Edit: I found an issue on mobile view and changed the code as using flex gap ![small](https://github.com/user-attachments/assets/dd7c2093-6860-4800-a2bc-676a03e764c8) ![large](https://github.com/user-attachments/assets/5c933779-8281-4d48-9fd0-4d7b245bf4ac) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix and/or comment some legacy CSS problems (#33015)wxiaoguang2024-12-282-4/+6
|
* Refactor comment history and fix content edit (#33018)wxiaoguang2024-12-281-2/+2
| | | | | And fix a regression bug for comment content editing. Now 11 "import jquery" files left
* De-emphasize signed commits (#31160)Blender Defender2024-12-2810-229/+158
| | | | | | | | | | The new code structure is easier to make more improvements or refactor, for example: change the colors to de-emphasize more, or design some new layouts. --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor tmpl and blob_excerpt (#32967)wxiaoguang2024-12-2510-102/+99
| | | | | 1. do not use `{{/* */}}` to remove spaces, use `{{- -}}` 2. fix "blob_excerpt" endpoint, remove the legacy fragile code: have tested commit diff and wiki diff
* Fix outdated tmpl code (#32953)wxiaoguang2024-12-231-1/+1
| | | Some PRs were before tmpl ctx refactoring and used outdated code
* Add auto-expanding running actions step (#30058)bytedream2024-12-222-27/+35
| | | | | | | Auto-expands the currently running action step. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Use primary as button color (#32949)wxiaoguang2024-12-222-2/+2
| | | | * Fix #32871 * Fix #32948
* show warning on navigation if currently editing comment or title (#32920)Tim2024-12-202-9/+9
| | | | | | | | | | This PR fixes the issue https://github.com/go-gitea/gitea/issues/32223 Make the browser to show the confirm popup, as it does with other forms. --------- Co-authored-by: Tim Wundenberg <tim@wundenbergs.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor repo-projects.ts (#32892)silverwind2024-12-191-1/+1
| | | | | | | | | | - Remove jQuery - Add types to all functions - Tested all modified functionality --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix various trivial problems (#32861)wxiaoguang2024-12-172-1/+6
| | | | | | | | | | | | | | 1. add/improve comments to help future readers could understand the problem more easily. 2. add an error log to LDAP with username fallback 3. use `or` instead of `Iif` for "repo/branch_dropdown" (`Iif` was a mistake, but it doesn't really affect the UI) 4. add `tw-font-mono` style to container digest to match dockerhub 5. fix a bug in RepoBranchTagSelector: the form is not updated when there is no click to an item --------- Co-authored-by: delvh <dev.lh@web.de>
* Fix incomplete Actions status aggregations (#32859)wxiaoguang2024-12-161-12/+6
| | | fix #32857
* Repo file list enhancements (#32835)silverwind2024-12-151-3/+3
| | | | | | | | | | | | 1. restore background color 2. fix border radius on top/bottom and on hover 3. parent link is now full-row again, much easier to click 4. parent link now uses directory icon, matching github 5 changed grid layout to remove auto width on file name column which could get too small. 6. mobile layout now shows more of the filename. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Tweak repo sidebar (#32847)silverwind2024-12-155-117/+129
| | | | | | | | | | | | | | | | | | | | | | | Before and after: <img width="218" alt="Screenshot 2024-12-15 at 04 53 53" src="https://github.com/user-attachments/assets/299b1f0a-ba72-47c6-b662-a9d540d4d741" /> <img width="222" alt="Screenshot 2024-12-15 at 04 53 41" src="https://github.com/user-attachments/assets/5a2b5332-e324-4d20-82e9-21d1c850e826" /> Diff without whitespace: https://github.com/go-gitea/gitea/pull/32847/files?diff=unified&w=1 The `tw-mt-2` is fine even if the element renders empty: <img width="387" alt="image" src="https://github.com/user-attachments/assets/76a976e4-ba2e-48a5-9248-c361552a937a" /> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Remove translation to issue add time because the format is fixed should not ↵Lunny Xiao2024-12-151-1/+1
| | | | | | be translated (#32850) The input content should always be `1h 2m 3s` and will be the same on different UI languages. So the translation is wrong.
* Fix various UI bugs (#32821)wxiaoguang2024-12-131-1/+1
|
* Fix bug of branch/tag selector in the issue sidebar (#32744)hiifong2024-12-133-4/+19
| | | | | | | Fix: #32731 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Detect whether action view branch was deleted (#32764)Lunny Xiao2024-12-121-3/+3
| | | | | Fix #32761 ![图片](https://github.com/user-attachments/assets/a5a7eef8-0fea-4242-b199-1b0b73d9bbdb)
* Add "n commits" link to contributors in contributors graph page (#32799)Chai-Shi2024-12-121-0/+1
| | | | | | | | | | | | Fixes Issue #29365 and inherit PR #29429 - I should extend the #29429 fork but the fork is not synced, so I created another PR. - Use `silenced` class for the link, as in #29847 --------- Co-authored-by: Ben Chang <ben_chang@htc.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix "unicode escape" JS error (#32806)wxiaoguang2024-12-122-5/+5
| | | | | | | | | | | | | | | | | | | | | <details> ![image](https://github.com/user-attachments/assets/98aef2fb-791e-4b4a-b2ac-e880f8a52040) ![image](https://github.com/user-attachments/assets/532673ae-c4cf-4d84-a5c6-93e6eacd341c) ![image](https://github.com/user-attachments/assets/2a241a3d-b7f6-44ca-89d9-9d68386fbf3e) ![image](https://github.com/user-attachments/assets/1251e43d-41f2-42d1-a23b-3182e3812c3d) </details> --------- Co-authored-by: silverwind <me@silverwind.io>
* Fix repo home file list (#32788)wxiaoguang2024-12-114-73/+59
| | | | | | | 1. use grid instead of table, completely drop "ui table" from that list 2. move some "commit sign" related styles into a new file by the way (no change) because I need to figure out where `#repo-files-table` is used. 3. move legacy "branch/tag selector" related code into repo-legacy.ts, now there are 13 `import $` files left.