From 9ba4258763140173015baa568a37bc04493b92c9 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Thu, 11 May 2023 06:14:16 +0000 Subject: [PATCH 1/2] improve --- templates/projects/list.tmpl | 8 ++++++-- templates/repo/projects/list.tmpl | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/templates/projects/list.tmpl b/templates/projects/list.tmpl index e9e86e5d5d585..21a6d0198c1c6 100644 --- a/templates/projects/list.tmpl +++ b/templates/projects/list.tmpl @@ -38,7 +38,11 @@
{{range .Projects}}
  • - {{svg .IconName}} {{.Title}} +
    +

    + {{svg .IconName 16 "gt-mr-3"}} {{.Title}} +

    +
    {{$closedDate:= TimeSinceUnix .ClosedDateUnix $.locale}} {{if .IsClosed}} @@ -63,7 +67,7 @@
    {{end}} {{if .Description}} -
    +
    {{.RenderedContent|Str2html}}
    {{end}} diff --git a/templates/repo/projects/list.tmpl b/templates/repo/projects/list.tmpl index a5f99cee66a04..fec31634758aa 100644 --- a/templates/repo/projects/list.tmpl +++ b/templates/repo/projects/list.tmpl @@ -38,7 +38,11 @@
    {{range .Projects}}
  • - {{svg .IconName}} {{.Title}} +
    +

    + {{svg .IconName 16 "gt-mr-3"}} {{.Title}} +

    +
    {{$closedDate:= TimeSinceUnix .ClosedDateUnix $.locale}} {{if .IsClosed}} @@ -63,7 +67,7 @@
    {{end}} {{if .Description}} -
    +
    {{.RenderedContent|Str2html}}
    {{end}} From af99b5ffff2a39d25b2eccbfed1b6fb16ef51786 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Thu, 11 May 2023 06:37:58 +0000 Subject: [PATCH 2/2] improve --- templates/projects/list.tmpl | 4 ++-- templates/repo/issue/milestones.tmpl | 8 ++++---- templates/repo/projects/list.tmpl | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/projects/list.tmpl b/templates/projects/list.tmpl index 21a6d0198c1c6..2535ef4248146 100644 --- a/templates/projects/list.tmpl +++ b/templates/projects/list.tmpl @@ -49,9 +49,9 @@ {{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}} {{end}} - {{svg "octicon-issue-opened" 16 "gt-mr-3"}} + {{svg "octicon-issue-opened" 19 "gt-ml-3"}} {{$.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}} - {{svg "octicon-check" 16 "gt-mr-3"}} + {{svg "octicon-check" 19 "gt-ml-3"}} {{$.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}}
    diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index d7e782e20d62a..6c8393a7b1c79 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -78,12 +78,12 @@ {{end}} {{end}} - {{svg "octicon-issue-opened" 16 "gt-mr-3"}} + {{svg "octicon-issue-opened" 19 "gt-ml-3"}} {{$.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}} - {{svg "octicon-check" 16 "gt-mr-3"}} + {{svg "octicon-check" 19 "gt-ml-3"}} {{$.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}} - {{if .TotalTrackedTime}}{{svg "octicon-clock"}} {{.TotalTrackedTime|Sec2Time}}{{end}} - {{if .UpdatedUnix}}{{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.update_ago" (TimeSinceUnix .UpdatedUnix $.locale) | Safe}}{{end}} + {{if .TotalTrackedTime}}{{svg "octicon-clock" 19 "gt-ml-3"}} {{.TotalTrackedTime|Sec2Time}}{{end}} + {{if .UpdatedUnix}}{{svg "octicon-clock" 19 "gt-ml-3"}} {{$.locale.Tr "repo.milestones.update_ago" (TimeSinceUnix .UpdatedUnix $.locale) | Safe}}{{end}}
  • {{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}} diff --git a/templates/repo/projects/list.tmpl b/templates/repo/projects/list.tmpl index fec31634758aa..bbcc3e976f12e 100644 --- a/templates/repo/projects/list.tmpl +++ b/templates/repo/projects/list.tmpl @@ -49,9 +49,9 @@ {{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}} {{end}} - {{svg "octicon-issue-opened" 16 "gt-mr-3"}} + {{svg "octicon-issue-opened" 19 "gt-ml-3"}} {{$.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}} - {{svg "octicon-check" 16 "gt-mr-3"}} + {{svg "octicon-check" 19 "gt-ml-3"}} {{$.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}}