1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 22:24:24 +00:00
gitea/templates/repo
Brad Albright 887a8fe242 Allow cross-repository dependencies on issues (#7901)
* in progress changes for #7405, added ability to add cross-repo dependencies

* removed unused repolink var

* fixed query that was breaking ci tests; fixed check in issue dependency add so that the id of the issue and dependency is checked rather than the indexes

* reverted removal of string in local files becasue these are done via crowdin, not updated manually

* removed 'Select("issue.*")' from getBlockedByDependencies and getBlockingDependencies based on comments in PR review

* changed getBlockedByDependencies and getBlockingDependencies to use a more xorm-like query, also updated the sidebar as a result

* simplified the getBlockingDependencies and getBlockedByDependencies methods; changed the sidebar to show the dependencies in a different format where you can see the name of the repository

* made some changes to the issue view in the dependencies (issue name on top, repo full name on separate line). Change view of issue in the dependency search results (also showing the full repo name on separate line)

* replace call to FindUserAccessibleRepoIDs with SearchRepositoryByName. The former was hardcoded to use isPrivate = false on the repo search, but this code needed it to be true. The SearchRepositoryByName method is used more in the code including on the user's dashboard

* some more tweaks to the layout of the issues when showing dependencies and in the search box when you add new dependencies

* added Name to the RepositoryMeta struct

* updated swagger doc

* fixed total count for link header on SearchIssues

* fixed indentation

* fixed aligment of remove icon on dependencies in issue sidebar

* removed unnecessary nil check (unnecessary because issue.loadRepo is called prior to this block)

* reverting .css change, somehow missed or forgot that less is used

* updated less file and generated css; updated sidebar template with styles to line up delete and issue index

* added ordering to the blocked by/depends on queries

* fixed sorting in issue dependency search and the depends on/blocks views to show issues from the current repo first, then by created date descending; added a "all cross repository dependencies" setting to allow this feature to be turned off, if turned off, the issue dependency search will work the way it did before (restricted to the current repository)

* re-applied my swagger changes after merge

* fixed split string condition in issue search

* changed ALLOW_CROSS_REPOSITORY_DEPENDENCIES description to sound more global than just the issue dependency search; returning 400 in the cross repo issue search api method if not enabled; fixed bug where the issue count did not respect the state parameter

* when adding a dependency to an issue, added a check to make sure the issue and dependency are in the same repo if cross repo dependencies is not enabled

* updated sortIssuesSession call in PullRequests, another commit moved this method from pull.go to pull_list.go so I had to re-apply my change here

* fixed incorrect setting of user id parameter in search repos call
2019-10-31 13:06:10 +08:00
..
branch [Branch View] Add Included TAG (#8449) 2019-10-14 23:40:17 +01:00
diff Create PR on Current Repository by Default (#8670) 2019-10-30 13:58:18 +08:00
editor Allow committing / adding empty files using the web ui (#8420) (#8532) 2019-10-16 22:28:41 +03:00
issue Allow cross-repository dependencies on issues (#7901) 2019-10-31 13:06:10 +08:00
pulls Refuse merge until all required status checks success (#7481) 2019-09-18 08:39:45 +03:00
release Add extra user information when migrating release (#8331) 2019-10-05 14:09:27 +03:00
settings Add basic repository lfs management (#7199) 2019-10-28 18:31:55 +00:00
wiki wiki history improvements (#7391) 2019-07-11 22:45:10 +08:00
activity.tmpl Improve localization of git activity stats (#6848) 2019-05-04 23:32:37 +03:00
blame.tmpl keep blame view buttons sequence consistent with normal view when view a file (#8007) 2019-08-27 22:23:18 -04:00
branch_dropdown.tmpl Escape branch name in dropdown menu (#3691) 2018-03-19 22:29:16 +08:00
commit_page.tmpl Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
commit_status.tmpl UI: Fix overflow issues in repo (#7190) 2019-06-14 09:32:13 +08:00
commits_table.tmpl Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
commits.tmpl Responsive view (#2750) 2017-12-30 18:47:52 -06:00
create.tmpl Add option to initialize repository with labels (#6061) 2019-09-08 11:28:40 +03:00
empty.tmpl Feature: Archive repos (#5009) 2019-01-23 13:58:38 -05:00
forks.tmpl #3348 always use relative avatar link in the template 2016-08-05 12:12:54 -07:00
graph.tmpl Add pagination to commit graph page (#8360) 2019-10-14 22:38:35 +01:00
header.tmpl Add nofollow to sign in links (#8509) 2019-10-14 18:43:48 +01:00
home.tmpl Add option to blame files (#5721) 2019-04-19 22:47:00 -04:00
migrate.tmpl Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 2019-05-07 09:12:51 +08:00
migrating.tmpl [assets] configurable URL for static resources (#7911) 2019-10-22 20:11:01 +08:00
search.tmpl Don't warn users about *every* dirty form (#3707) 2018-03-23 22:10:42 +08:00
sub_menu.tmpl Add ui class to sub_menu to fix style in arc-green (#6477) 2019-04-02 08:41:19 +08:00
user_cards.tmpl Unifies pagination template usage (#6531) (#6533) 2019-04-20 00:15:19 -04:00
view_file.tmpl Respect LFS File Lock on UI (#8719) 2019-10-29 23:32:21 +02:00
view_list.tmpl Make link last commit massages in repository home page and commit tables (#8006) 2019-09-10 12:03:30 +03:00
watchers.tmpl #1692 APIs: Users Followers 2015-12-21 04:24:11 -08:00