aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-06-05 08:25:46 +0200
committerGitHub <noreply@github.com>2023-06-05 14:25:46 +0800
commit7d192cb674bc475b123c84b205aca821247c5dd1 (patch)
treeef807c91835dc2cbf8f8b6e9be2f5ca6f45232d6 /templates/repo/issue
parentd63d8108b455c7288710e2c61834f848759992be (diff)
downloadgitea-7d192cb674bc475b123c84b205aca821247c5dd1.tar.gz
gitea-7d192cb674bc475b123c84b205aca821247c5dd1.zip
Add Progressbar to Milestone Page (#25050)
This is adds the progress bar, which is already on the Milestone List, also to the Page of a Single Milestone. ![grafik](https://github.com/go-gitea/gitea/assets/15185051/24e0fa28-369b-4bb9-807a-ee823b46ba81) --------- Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates/repo/issue')
-rw-r--r--templates/repo/issue/milestone_issues.tmpl38
1 files changed, 20 insertions, 18 deletions
diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl
index 82d2cac943..3a103bd5e0 100644
--- a/templates/repo/issue/milestone_issues.tmpl
+++ b/templates/repo/issue/milestone_issues.tmpl
@@ -3,7 +3,7 @@
{{template "repo/header" .}}
<div class="ui container">
<div class="gt-df">
- <h1>{{.Milestone.Name}}</h1>
+ <h1 class="gt-mb-3">{{.Milestone.Name}}</h1>
{{if not .Repository.IsArchived}}
<div class="text right gt-f1">
{{if or .CanWriteIssues .CanWritePulls}}
@@ -20,26 +20,28 @@
</div>
{{end}}
</div>
- <div class="ui one column stackable grid">
- <div class="column markup content">
- {{.Milestone.RenderedContent|Str2html}}
- </div>
+ {{if .Milestone.RenderedContent}}
+ <div class="markup content gt-mb-4">
+ {{.Milestone.RenderedContent|Str2html}}
</div>
- <div class="ui one column stackable grid">
- <div class="column">
- {{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix $.locale}}
- {{if .IsClosed}}
- {{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
- {{else}}
- {{svg "octicon-calendar"}}
- {{if .Milestone.DeadlineString}}
- <span {{if .IsOverdue}}class="overdue"{{end}}>{{DateTime "short" .Milestone.DeadlineString}}</span>
+ {{end}}
+ <div class="gt-df gt-fc gt-gap-3">
+ <progress class="milestone-progress-big" value="{{.Milestone.Completeness}}" max="100"></progress>
+ <div class="gt-df gt-gap-4">
+ <div classs="gt-df gt-ac">
+ {{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix $.locale}}
+ {{if .IsClosed}}
+ {{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
{{else}}
- {{$.locale.Tr "repo.milestones.no_due_date"}}
+ {{svg "octicon-calendar"}}
+ {{if .Milestone.DeadlineString}}
+ <span {{if .IsOverdue}}class="overdue"{{end}}>{{DateTime "short" .Milestone.DeadlineString}}</span>
+ {{else}}
+ {{$.locale.Tr "repo.milestones.no_due_date"}}
+ {{end}}
{{end}}
- {{end}}
- &nbsp;
- <b>{{.locale.Tr "repo.milestones.completeness" .Milestone.Completeness}}</b>
+ </div>
+ <div class="gt-mr-3">{{.locale.Tr "repo.milestones.completeness" .Milestone.Completeness | Safe}}</div>
</div>
</div>
<div class="ui divider"></div>