mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-07-25 02:48:05 +00:00
This 1. hides the “New issue” button, which currently leads to a 404 page, because it is not useful to have it, e.g., here: https://code.forgejo.org/forgejo/act/issues/169 2. removes the UI ability on projects in archived repos to move around issues and project columns. When a user performs such an action, currently it is shown as it were successful, but actually all requests lead to 404s without warning. 3. hides the hints for synching a fork or creating a pull request for recently pushed branches (which again would lead to 404s) 4. hides the branch selector (only shows the branch) on single issue/PR pages, which is disfunctional on archived repos Thus, both these changes do not change anything related to what happens to issues or projects in archived repos, but only reduces 404 errors. I don’t think this needs to be tested more than manually. ## Test Create first a repository with at least **one issue** in **one project** and edit a file by creating a **new branch**. Then, perform following actions, once in the state where the repository is normal and once when it is archived: action|unarchived|archived ---|---|--- \1. go to the issue|“New issue” button functional|“New issue” button removed \2. click on the branch selector|menu opens|menu is now disabled and shows the branch \3. go to the project|“New issue” button functional|“New issue” button removed \4. try to move around columns|modifies columns|not possible anymore \5. try to move around the issue|modifies issue location|not possible anymore \6. go to the code view|see hint "You pushed …"|do not see this hint anymore Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12773 Reviewed-by: Gusted <gusted@noreply.codeberg.org>
17 lines
622 B
Go HTML Template
17 lines
622 B
Go HTML Template
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository projects view-project">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container padded">
|
|
<div class="tw-flex tw-justify-between tw-items-center tw-mb-4">
|
|
{{template "repo/issue/navbar" .}}
|
|
{{if (not $.Repository.IsArchived)}}
|
|
<a class="ui small primary button" href="{{.RepoLink}}/issues/new/choose?project={{.Project.ID}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
<div class="ui container fluid padded">
|
|
{{template "projects/view" .}}
|
|
</div>
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|