forgejo/routers/web/repo
wxiaoguang 99283415bc
Refactor Pull Mirror and fix out-of-sync bugs (#24732)
The "mirror" table and "repository" table might be out-of-sync in some
cases.

It means that "IsMirror=true" but "Mirror=nil"

This PR removes unnecessary "Mirror" field, rename "Mirror" to
"PullMirror" and fix nil panic bug.


Screenshot of changed templates:


![image](https://github.com/go-gitea/gitea/assets/2114189/c0f2bdfc-5911-43ea-b989-b19619de4235)



![image](https://github.com/go-gitea/gitea/assets/2114189/1078b41a-484f-4c06-8c2f-edb9e658275d)
2023-05-15 19:02:10 +00:00
..
actions Don't filter action runs based on state (#24711) 2023-05-14 16:04:24 +00:00
setting Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
activity.go
attachment.go Make repository response support HTTP range request (#24592) 2023-05-09 15:34:36 +08:00
blame.go Sort repo topic labels by name (#24123) 2023-04-14 15:29:05 -04:00
branch.go Improve RSS (#24335) 2023-04-25 22:53:44 -04:00
cherry_pick.go
commit.go Pass 'not' to commit count (#24473) 2023-05-08 07:10:53 +00:00
compare.go Don't list root repository on compare page if pulls not allowed (#24183) 2023-04-19 11:16:46 -04:00
download.go Make repository response support HTTP range request (#24592) 2023-05-09 15:34:36 +08:00
editor.go Allow adding new files to an empty repo (#24164) 2023-04-19 21:40:42 +08:00
editor_test.go
find.go
helper.go
helper_test.go
http.go Require repo scope for PATs for private repos and basic authentication (#24362) 2023-04-26 19:24:03 -05:00
http_test.go
issue.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 2023-05-09 01:30:14 +02:00
issue_content_history.go
issue_dependency.go
issue_label.go Make label templates have consistent behavior and priority (#23749) 2023-04-10 16:44:02 +08:00
issue_label_test.go Make label templates have consistent behavior and priority (#23749) 2023-04-10 16:44:02 +08:00
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
lfs.go
main_test.go
middlewares.go
migrate.go Make repo migration cancelable and fix various bugs (#24605) 2023-05-11 08:25:46 +00:00
milestone.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 2023-05-09 01:30:14 +02:00
packages.go
patch.go
projects.go Add unset default project column (#23531) 2023-04-19 10:28:28 -04:00
projects_test.go
pull.go
pull_review.go
release.go fix: release page for empty or non-existing target (#24470) 2023-05-10 11:43:55 +08:00
release_test.go fix: release page for empty or non-existing target (#24470) 2023-05-10 11:43:55 +08:00
render.go
repo.go Remove the parallelizing when loading repo for dashboard (#24705) 2023-05-14 21:45:47 +08:00
search.go
setting.go Refactor Pull Mirror and fix out-of-sync bugs (#24732) 2023-05-15 19:02:10 +00:00
setting_protected_branch.go Move Rename branch from repo settings page to the page of branches list (#24380) 2023-04-30 23:08:51 +08:00
settings_test.go
tag.go
topic.go
treelist.go
view.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 2023-05-09 01:30:14 +02:00
view_test.go
webhook.go Reenable creating default webhooks. (#24626) 2023-05-11 10:10:57 +08:00
wiki.go Pass 'not' to commit count (#24473) 2023-05-08 07:10:53 +00:00
wiki_test.go Make wiki title supports dashes and improve wiki name related features (#24143) 2023-04-19 13:50:10 -04:00