diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 2746e5302..0abf1b3e0 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1759,7 +1759,7 @@ milestones.no_due_date = No due date milestones.open = Open milestones.close = Close milestones.new_subheader = Milestones organize issues and track progress. -milestones.completeness = %d%% Completed +milestones.completeness = %d%% Completed milestones.create = Create Milestone milestones.title = Title milestones.desc = Description diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index 82d2cac94..3a103bd5e 100644 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -3,7 +3,7 @@ {{template "repo/header" .}}
-

{{.Milestone.Name}}

+

{{.Milestone.Name}}

{{if not .Repository.IsArchived}}
{{if or .CanWriteIssues .CanWritePulls}} @@ -20,26 +20,28 @@
{{end}}
-
-
- {{.Milestone.RenderedContent|Str2html}} -
+ {{if .Milestone.RenderedContent}} +
+ {{.Milestone.RenderedContent|Str2html}}
-
-
- {{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix $.locale}} - {{if .IsClosed}} - {{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}} - {{else}} - {{svg "octicon-calendar"}} - {{if .Milestone.DeadlineString}} - {{DateTime "short" .Milestone.DeadlineString}} + {{end}} +
+ +
+
+ {{$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}} + {{DateTime "short" .Milestone.DeadlineString}} + {{else}} + {{$.locale.Tr "repo.milestones.no_due_date"}} + {{end}} {{end}} - {{end}} -   - {{.locale.Tr "repo.milestones.completeness" .Milestone.Completeness}} +
+
{{.locale.Tr "repo.milestones.completeness" .Milestone.Completeness | Safe}}
diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 71cd7a284..b2b544a7e 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1225,6 +1225,11 @@ height: 200px; } +.milestone-progress-big { + width: min(420px, 96vw); + height: 10px; +} + .repository.compare.pull .show-form-container { text-align: left; }