diff options
author | silverwind <me@silverwind.io> | 2023-06-22 03:59:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-21 21:59:49 -0400 |
commit | 656d3cc71973c547b574866e30e5f3da5327ce25 (patch) | |
tree | 1572fc6ee19650b148a899e87b579dd63c3c5664 /templates/user | |
parent | 8afc1b1cb5ad44ab5dd9597a814b19412702ede3 (diff) | |
download | gitea-656d3cc71973c547b574866e30e5f3da5327ce25.tar.gz gitea-656d3cc71973c547b574866e30e5f3da5327ce25.zip |
Various UI fixes (#25264)
Numerous small UI fixes:
- Fix double border in collaborator list
- Fix system notice table background
- Mute links in repo and org lists
- Downsize projects edit buttons
- Improve milestones and project list rendering
- Condense milestone list entry to a single line of "metas"
- Mute ".." button in repo files list
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/dashboard/milestones.tmpl | 5 | ||||
-rw-r--r-- | templates/user/settings/organization.tmpl | 6 | ||||
-rw-r--r-- | templates/user/settings/repos.tmpl | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/templates/user/dashboard/milestones.tmpl b/templates/user/dashboard/milestones.tmpl index 23b7b27116..c68d0783b8 100644 --- a/templates/user/dashboard/milestones.tmpl +++ b/templates/user/dashboard/milestones.tmpl @@ -115,12 +115,13 @@ {{svg "octicon-clock" 14}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}} {{else}} - {{svg "octicon-calendar" 14}} {{if .DeadlineString}} - <span {{if .IsOverdue}}class="overdue"{{end}}> + <span{{if .IsOverdue}} class="text red"{{end}}> + {{svg "octicon-calendar" 14}} {{DateTime "short" .DeadlineString}} </span> {{else}} + {{svg "octicon-calendar" 14}} {{$.locale.Tr "repo.milestones.no_due_date"}} {{end}} {{end}} diff --git a/templates/user/settings/organization.tmpl b/templates/user/settings/organization.tmpl index 2e10588fd8..9b6d0f66c5 100644 --- a/templates/user/settings/organization.tmpl +++ b/templates/user/settings/organization.tmpl @@ -23,9 +23,9 @@ </button> </form> </div> - {{avatar $.Context . 28 "mini"}} - <div class="content"> - <a href="{{.HomeLink}}">{{.Name}}</a> + <div class="content gt-df gt-ac gt-gap-3"> + {{avatar $.Context . 28 "mini"}} + <a class="muted" href="{{.HomeLink}}">{{.Name}}</a> </div> </div> {{end}} diff --git a/templates/user/settings/repos.tmpl b/templates/user/settings/repos.tmpl index 64b08ca2c5..d2164d199a 100644 --- a/templates/user/settings/repos.tmpl +++ b/templates/user/settings/repos.tmpl @@ -23,8 +23,8 @@ {{else}} <span class="icon">{{svg "octicon-repo"}}</span> {{end}} - <a class="name" href="{{$repo.Link}}">{{$repo.OwnerName}}/{{$repo.Name}}</a> - <span>{{FileSize $repo.Size}}</span> + <a class="muted name" href="{{$repo.Link}}">{{$repo.OwnerName}}/{{$repo.Name}}</a> + <span class="text light-3">{{FileSize $repo.Size}}</span> {{if $repo.IsFork}} {{$.locale.Tr "repo.forked_from"}} <span><a href="{{$repo.BaseRepo.Link}}">{{$repo.BaseRepo.OwnerName}}/{{$repo.BaseRepo.Name}}</a></span> |