mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 08:47:42 -05:00
3ea7437fa6
Fixes https://github.com/go-gitea/gitea/issues/30005. Regression from https://github.com/go-gitea/gitea/pull/29945. There was only once instance of `tw-content-center` before that PR, so I just ran below command and reverted that one instance. ```sh perl -p -i -e 's#tw-content-center#tw-items-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/* ``` (cherry picked from commit 04f9ad056882fc3f21b247b16f84437adf0f36d8) Conflicts: templates/repo/diff/conversation.tmpl templates/repo/header.tmpl templates/repo/issue/filter_list.tmpl templates/repo/issue/view_content/conversation.tmpl templates/repo/wiki/view.tmpl web_src/js/components/DashboardRepoList.vue re-ran the command after discarding the Gitea changes to ensure all Forgejo files are also covered
65 lines
2.5 KiB
Go HTML Template
65 lines
2.5 KiB
Go HTML Template
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository milestone-issue-list">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container">
|
|
{{template "base/alert" .}}
|
|
<div class="tw-flex">
|
|
<h1 class="gt-mb-3">{{.Milestone.Name}}</h1>
|
|
{{if not .Repository.IsArchived}}
|
|
<div class="text right tw-flex-1">
|
|
{{if or .CanWriteIssues .CanWritePulls}}
|
|
{{if .Milestone.IsClosed}}
|
|
<a class="ui primary basic button link-action" href data-url="{{$.RepoLink}}/milestones/{{.MilestoneID}}/open">{{ctx.Locale.Tr "repo.milestones.open"}}
|
|
</a>
|
|
{{else}}
|
|
<a class="ui red basic button link-action" href data-url="{{$.RepoLink}}/milestones/{{.MilestoneID}}/close">{{ctx.Locale.Tr "repo.milestones.close"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="ui button" href="{{.RepoLink}}/milestones/{{.MilestoneID}}/edit">{{ctx.Locale.Tr "repo.milestones.edit"}}</a>
|
|
{{end}}
|
|
<a class="ui primary button" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}?milestone={{.MilestoneID}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
{{if .Milestone.RenderedContent}}
|
|
<div class="markup content gt-mb-4">
|
|
{{.Milestone.RenderedContent}}
|
|
</div>
|
|
{{end}}
|
|
<div class="tw-flex tw-flex-col gt-gap-3">
|
|
<progress class="milestone-progress-big" value="{{.Milestone.Completeness}}" max="100"></progress>
|
|
<div class="tw-flex gt-gap-4">
|
|
<div classs="tw-flex tw-items-center">
|
|
{{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix ctx.Locale}}
|
|
{{if .IsClosed}}
|
|
{{svg "octicon-clock"}} {{ctx.Locale.Tr "repo.milestones.closed" $closedDate}}
|
|
{{else}}
|
|
|
|
{{if .Milestone.DeadlineString}}
|
|
<span{{if .IsOverdue}} class="text red"{{end}}>
|
|
{{svg "octicon-calendar"}}
|
|
{{DateTime "short" .Milestone.DeadlineString}}
|
|
</span>
|
|
{{else}}
|
|
{{svg "octicon-calendar"}}
|
|
{{ctx.Locale.Tr "repo.milestones.no_due_date"}}
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|
|
<div class="gt-mr-3">{{ctx.Locale.Tr "repo.milestones.completeness" .Milestone.Completeness}}</div>
|
|
{{if .TotalTrackedTime}}
|
|
<div data-tooltip-content='{{ctx.Locale.Tr "tracked_time_summary"}}'>
|
|
{{svg "octicon-clock"}}
|
|
{{.TotalTrackedTime | Sec2Time}}
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
<div class="divider"></div>
|
|
|
|
{{template "repo/issue/filters" .}}
|
|
|
|
{{template "shared/issuelist" dict "." . "listType" "milestone"}}
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|