From 603acbe38f8a6387078916f91cab8e5cbcb787a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 26 Nov 2025 14:27:23 -0500 Subject: [PATCH] format templates --- templates/group/header.tmpl | 9 +- templates/group/settings/options.tmpl | 6 +- templates/group/sidebar/sidebar_item.tmpl | 22 ++--- templates/group/team/teams.tmpl | 108 ++++++++++------------ templates/org/home.tmpl | 26 ++---- 5 files changed, 77 insertions(+), 94 deletions(-) diff --git a/templates/group/header.tmpl b/templates/group/header.tmpl index 6d0536b10f..6b3d5faa89 100644 --- a/templates/group/header.tmpl +++ b/templates/group/header.tmpl @@ -5,8 +5,8 @@
{{.Group.Owner.Name}} {{- range .Breadcrumbs -}} - /{{.Name}} + /{{.Name}} {{- end -}}
@@ -33,15 +33,14 @@ {{if .EnableFeed}} - + {{svg "octicon-rss" 24}} {{end}} {{if .RenderedDescription}} -
{{.RenderedDescription}}
+
{{.RenderedDescription}}
{{end}} diff --git a/templates/group/settings/options.tmpl b/templates/group/settings/options.tmpl index 8cd3c4afbe..ebaeca988e 100644 --- a/templates/group/settings/options.tmpl +++ b/templates/group/settings/options.tmpl @@ -9,8 +9,7 @@ - +
@@ -49,7 +48,8 @@
- +
diff --git a/templates/group/sidebar/sidebar_item.tmpl b/templates/group/sidebar/sidebar_item.tmpl index a75016a3f8..1ee644032d 100644 --- a/templates/group/sidebar/sidebar_item.tmpl +++ b/templates/group/sidebar/sidebar_item.tmpl @@ -1,25 +1,25 @@ {{$item := (call (index $.root "AsGroupItem") .item)}} {{$parent := $item.Parent}}
  • -
  • diff --git a/templates/group/team/teams.tmpl b/templates/group/team/teams.tmpl index cabbbd6ee9..2fa5bbc419 100644 --- a/templates/group/team/teams.tmpl +++ b/templates/group/team/teams.tmpl @@ -8,72 +8,64 @@
    {{if or .IsGroupAdmin .IsGroupOwner}} - -
    -
    -
    - {{.CsrfTokenHtml}} - -
    {{end}} {{range .Teams}} -
    -
    - {{.Name}} -
    - {{ctx.Locale.Tr "view"}} +
    +
    + {{.Name}} +
    + {{ctx.Locale.Tr "view"}} + {{if .IsMember ctx $.SignedUser.ID}} +
    + +
    + {{else if $.IsOrganizationOwner}} +
    + {{$.CsrfTokenHtml}} + +
    + {{end}} - {{if .IsMember ctx $.SignedUser.ID}} -
    - -
    - {{else if $.IsOrganizationOwner}} -
    - {{$.CsrfTokenHtml}} - -
    - {{end}} - - {{if and (or $.IsGroupAdmin $.IsGroupOwner) (not .IsOwnerTeam)}} -
    - -
    - {{end}} -
    -
    -
    - {{range .Members}} - {{template "shared/user/avatarlink" dict "user" .}} + {{if and (or $.IsGroupAdmin $.IsGroupOwner) (not .IsOwnerTeam)}} +
    + +
    {{end}}
    -
    +
    + {{range .Members}} + {{template "shared/user/avatarlink" dict "user" .}} + {{end}} +
    + +
    {{end}}
    diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 45ea693bc8..e4afe71a90 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -6,8 +6,7 @@
    {{if .ProfileReadmeContent}} -
    {{.ProfileReadmeContent}}
    +
    {{.ProfileReadmeContent}}
    {{end}} {{template "shared/repo/search" .}} {{template "shared/repo/list" .}} @@ -18,11 +17,9 @@
    {{if .CanCreateOrgRepo}}
    @@ -56,15 +53,13 @@ {{if .NumMembers}}

    {{ctx.Locale.Tr "org.members"}} - {{.NumMembers}} {{svg "octicon-chevron-right"}} + {{.NumMembers}} {{svg "octicon-chevron-right"}}

    {{$isMember := .IsOrganizationMember}} {{range .Members}} {{if or $isMember (call $.IsPublicMember .ID)}} - {{ctx.AvatarUtils.Avatar . 48}} + {{ctx.AvatarUtils.Avatar . 48}} {{end}} {{end}}
    @@ -72,19 +67,16 @@ {{if .IsOrganizationMember}} {{end}} {{end}} -
    +
    {{else}}
    {{template "group/sidebar/menu" .}}