mirror of
https://github.com/go-gitea/gitea
synced 2025-08-09 02:58:20 +00:00
Org pages style fixes (#23901)
Few fixes/enhancements around org pages: Use flexbox for member and repo lists and tweak rendering of tabs and list: <img width="765" alt="Screenshot 2023-04-03 at 22 54 24" src="https://user-images.githubusercontent.com/115237/229625716-92a834c3-9121-4729-8b9b-3a3973cf9a91.png"> <img width="771" alt="Screenshot 2023-04-03 at 22 55 15" src="https://user-images.githubusercontent.com/115237/229625719-acc08ce8-4489-44a6-a9b9-e36755c55b1d.png"> Vertically center remove/leave buttons, add link to avatar: <img width="1223" alt="Screenshot 2023-04-03 at 21 51 20" src="https://user-images.githubusercontent.com/115237/229612616-b662b795-e754-41a1-a77a-381c267e6104.png">
This commit is contained in:
@@ -33,25 +33,25 @@
|
||||
{{end}}
|
||||
<div class="ui bottom attached table segment repositories">
|
||||
{{range .Team.Repos}}
|
||||
<div class="item">
|
||||
<div class="item gt-df gt-ac gt-fw">
|
||||
{{if .IsPrivate}}
|
||||
{{svg "octicon-lock" 16 "gt-mr-3"}}
|
||||
{{else if .IsFork}}
|
||||
{{svg "octicon-repo-forked" 16 "gt-mr-3"}}
|
||||
{{else if .IsMirror}}
|
||||
{{svg "octicon-mirror" 16 "gt-mr-3"}}
|
||||
{{else}}
|
||||
{{svg "octicon-repo" 16 "gt-mr-3"}}
|
||||
{{end}}
|
||||
<a class="member gt-f1" href="{{$.Org.HomeLink}}/{{.Name | PathEscape}}">
|
||||
<strong>{{$.Org.Name}}/{{.Name}}</strong>
|
||||
</a>
|
||||
{{if $canAddRemove}}
|
||||
<form method="post" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/remove">
|
||||
{{$.CsrfTokenHtml}}
|
||||
<button type="submit" class="ui red small button right" name="repoid" value="{{.ID}}">{{$.locale.Tr "remove"}}</button>
|
||||
</form>
|
||||
{{end}}
|
||||
<a class="member" href="{{$.Org.HomeLink}}/{{.Name | PathEscape}}">
|
||||
{{if .IsPrivate}}
|
||||
{{svg "octicon-lock"}}
|
||||
{{else if .IsFork}}
|
||||
{{svg "octicon-repo-forked"}}
|
||||
{{else if .IsMirror}}
|
||||
{{svg "octicon-mirror"}}
|
||||
{{else}}
|
||||
{{svg "octicon-repo"}}
|
||||
{{end}}
|
||||
<strong>{{$.Org.Name}}/{{.Name}}</strong>
|
||||
</a>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="item">
|
||||
|
Reference in New Issue
Block a user