0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-12 02:22:45 +01:00
gitea/routers/web/repo
Rowan Bohde ac2d97cb61
Link to tree views of submodules if possible (#33424)
This is a follow-up to https://github.com/go-gitea/gitea/pull/33097. 

When linking a submodule at a commit in either the repo view, or a diff
when adding a new submodule, link to the tree view of that submodules
intead of the individual commit. This shows the user the full tree,
instead of the diff of the commit.

This makes the assumption that the tree for a given SHA is at
`<repo_url>/tree/<sha>`. This URL format is supported by both Github &
Gitlab, but not Gitea. To fix this, add a redirect from
`<username>/<repo>/tree/<ref>` to `<username>/<repo>/src/<ref>`, so that
Gitea can support this URL structure.
2025-01-30 00:09:52 +00:00
..
actions Trivial fixes (#33304) 2025-01-17 08:55:02 +00:00
setting Refactor webhook events (#33337) 2025-01-23 18:53:06 +00:00
activity.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
attachment.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
blame.go Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
branch.go Fix incorrect ref usages (#33301) 2025-01-16 13:52:21 +00:00
cherry_pick.go Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
code_frequency.go Fix incorrect ref commit ID usage (#33331) 2025-01-20 07:43:49 +00:00
commit.go Fix incorrect ref usages (#33301) 2025-01-16 13:52:21 +00:00
compare.go Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
contributors.go Fix incorrect ref commit ID usage (#33331) 2025-01-20 07:43:49 +00:00
download.go Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 2024-12-30 03:30:01 +00:00
editor_test.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
editor.go Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
find.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
fork.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
githttp_test.go
githttp.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
helper.go Refactor context RefName and RepoAssignment (#33226) 2025-01-13 01:07:05 +00:00
issue_comment.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
issue_content_history.go
issue_dependency.go Trivial fixes (#33304) 2025-01-17 08:55:02 +00:00
issue_label_test.go Remove duplicate "ResponseWriter.Status" method (#33346) 2025-01-22 06:37:52 +00:00
issue_label.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
issue_list.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
issue_lock.go
issue_new.go Use project's redirect url instead of composing url (#33058) 2024-12-31 19:19:53 +08:00
issue_page_meta.go Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (#33106) 2025-01-07 10:50:09 +08:00
issue_pin.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_poster.go Support public code/issue access for private repositories (#33127) 2025-01-14 01:53:34 +00:00
issue_stopwatch.go
issue_suggestions.go
issue_test.go
issue_timetrack.go Make tracked time representation display as hours (#33315) 2025-01-19 09:30:44 +08:00
issue_view.go Some small refactors (#33144) 2025-01-10 06:00:06 +00:00
issue_watch.go Trivial fixes (#33304) 2025-01-17 08:55:02 +00:00
issue.go Merge updatecommentattachment functions (#33044) 2024-12-30 18:21:57 +00:00
main_test.go
middlewares.go Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
migrate.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
milestone.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
packages.go Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
patch.go Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
projects_test.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
projects.go Use project's redirect url instead of composing url (#33058) 2024-12-31 19:19:53 +08:00
pull_review_test.go Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
pull_review.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
pull.go Automerge supports deleting branch automatically after merging (#32343) 2025-01-10 03:51:03 +08:00
recent_commits.go Fix incorrect ref commit ID usage (#33331) 2025-01-20 07:43:49 +00:00
release_test.go Validate that the tag doesn't exist when creating a tag via the web (#33241) 2025-01-14 09:27:35 +08:00
release.go Fix incorrect TagName/BranchName usages (#33279) 2025-01-15 17:34:55 +08:00
render.go Fix incorrect ref "blob" (#33240) 2025-01-13 16:27:11 +08:00
repo.go Refactor ref type (#33242) 2025-01-14 15:35:34 +08:00
search_test.go
search.go Fix incorrect ref commit ID usage (#33331) 2025-01-20 07:43:49 +00:00
topic.go
treelist.go
view_file.go Simplify context ref name (#33267) 2025-01-15 11:15:47 +08:00
view_home.go Link to tree views of submodules if possible (#33424) 2025-01-30 00:09:52 +00:00
view_readme.go Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
view_test.go
view.go Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
wiki_test.go Remove duplicate "ResponseWriter.Status" method (#33346) 2025-01-22 06:37:52 +00:00
wiki.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00