diff options
author | silverwind <me@silverwind.io> | 2022-05-20 05:04:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 05:04:45 +0200 |
commit | ac8bee6aebd69db0c110343a527ae5b7d0ec6092 (patch) | |
tree | 4e03e7fe42de60877eac6713083eced1190984b4 /templates | |
parent | cc7236e852e60e4dc9c4fb5692ac62697ef0e9e3 (diff) | |
download | gitea-ac8bee6aebd69db0c110343a527ae5b7d0ec6092.tar.gz gitea-ac8bee6aebd69db0c110343a527ae5b7d0ec6092.zip |
Remove fomantic progress module (#19760)
Replace it with HTML `<progress>` element. The bar won't go green at
100% anymore but I think it's not something that fits stylistically anyways.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/milestones.tmpl | 11 | ||||
-rw-r--r-- | templates/shared/issuelist.tmpl | 3 | ||||
-rw-r--r-- | templates/user/dashboard/milestones.tmpl | 13 |
3 files changed, 17 insertions, 10 deletions
diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index 944438df95..b6b1c76d78 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -61,10 +61,13 @@ <div class="milestone list"> {{range .Milestones}} <li class="item"> - {{svg "octicon-milestone" 16 "mr-2"}} <a href="{{$.RepoLink}}/milestone/{{.ID}}">{{.Name}}</a> - <div class="ui right green progress" data-percent="{{.Completeness}}"> - <div class="bar" {{if not .Completeness}}style="background-color: transparent"{{end}}> - <div class="progress"></div> + <div class="df ac sb"> + <h2 class="df ac m-0 fw"> + {{svg "octicon-milestone" 16 "mr-3"}}<a class="muted" href="{{$.RepoLink}}/milestone/{{.ID}}">{{.Name}}</a> + </h2> + <div class="df ac"> + <span class="mr-3">{{.Completeness}}%</span> + <progress value="{{.Completeness}}" max="100"></progress> </div> </div> <div class="meta"> diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl index e81855851b..23fb76d500 100644 --- a/templates/shared/issuelist.tmpl +++ b/templates/shared/issuelist.tmpl @@ -73,7 +73,8 @@ {{if gt $tasks 0}} {{$tasksDone := .GetTasksDone}} <span class="checklist"> - {{svg "octicon-checklist" 14 "mr-2"}}{{$tasksDone}} / {{$tasks}} <span class="progress-bar"><span class="progress" style="width:calc(100% * {{$tasksDone}} / {{$tasks}});"></span></span> + {{svg "octicon-checklist" 14 "mr-2"}}{{$tasksDone}} / {{$tasks}} + <progress value="{{$tasksDone}}" max="{{$tasks}}"></progress> </span> {{end}} {{if ne .DeadlineUnix 0}} diff --git a/templates/user/dashboard/milestones.tmpl b/templates/user/dashboard/milestones.tmpl index c551c91e39..385f5c529b 100644 --- a/templates/user/dashboard/milestones.tmpl +++ b/templates/user/dashboard/milestones.tmpl @@ -80,11 +80,14 @@ <div class="milestone list"> {{range .Milestones}} <li class="item"> - <div class="ui label">{{.Repo.FullName}}</div> - {{svg "octicon-milestone"}} <a href="{{.Repo.Link }}/milestone/{{.ID}}">{{.Name}}</a> - <div class="ui right green progress" data-percent="{{.Completeness}}"> - <div class="bar" {{if not .Completeness}}style="background-color: transparent"{{end}}> - <div class="progress"></div> + <div class="df ac sb"> + <h2 class="df ac m-0 fw"> + <span class="ui large label">{{.Repo.FullName}}</span> + {{svg "octicon-milestone" 16 "mr-3"}}<a class="muted" href="{{.Repo.Link}}/milestone/{{.ID}}">{{.Name}}</a> + </h2> + <div class="df ac"> + <span class="mr-3">{{.Completeness}}%</span> + <progress value="{{.Completeness}}" max="100"></progress> </div> </div> <div class="meta"> |