mirror of
https://github.com/go-gitea/gitea.git
synced 2025-03-05 00:59:40 +08:00

This PR refactors a bunch of projects-related code, mostly the templates. The following things were done: - rename boards to columns in frontend code - use the new `ctx.Locale.Tr` method - cleanup template, remove useless newlines, classes, comments - merge org-/user and repo level project template together - move "new column" button into project toolbar - move issue card (shared by projects and pinned issues) to shared template, remove useless duplicated styles - add search function to projects (to make the layout more similar to milestones list where it is inherited from 😆) - maybe more changes I forgot I've done 😆 Closes #24893 After:    --------- Co-authored-by: silverwind <me@silverwind.io>
14 lines
505 B
Handlebars
14 lines
505 B
Handlebars
{{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="gt-df gt-sb gt-ac gt-mb-4">
|
|
{{template "repo/issue/navbar" .}}
|
|
<a class="ui right small green button item" href="{{.RepoLink}}/issues/new/choose?project={{.Project.ID}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
|
|
</div>
|
|
{{template "projects/view" .}}
|
|
</div>
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|