summaryrefslogtreecommitdiffstats
path: root/templates/admin/org
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
committerDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
commitdd136858f1ea40ad3c94191d647487fa4f31926c (patch)
tree58fec94a7b2a12510c9664b21793f1ed560c6518 /templates/admin/org
parentInitial commit. (diff)
downloadforgejo-dd136858f1ea40ad3c94191d647487fa4f31926c.tar.xz
forgejo-dd136858f1ea40ad3c94191d647487fa4f31926c.zip
Adding upstream version 9.0.0.HEADupstream/9.0.0upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'templates/admin/org')
-rw-r--r--templates/admin/org/list.tmpl76
1 files changed, 76 insertions, 0 deletions
diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl
new file mode 100644
index 0000000..987ceab
--- /dev/null
+++ b/templates/admin/org/list.tmpl
@@ -0,0 +1,76 @@
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
+ <div class="admin-setting-content">
+ <h4 class="ui top attached header">
+ {{ctx.Locale.Tr "admin.orgs.org_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
+ <div class="ui right">
+ <a class="ui primary tiny button" href="{{AppSubUrl}}/org/create">{{ctx.Locale.Tr "admin.orgs.new_orga"}}</a>
+ </div>
+ </h4>
+ <div class="ui attached segment">
+ <div class="ui secondary filter menu tw-items-center tw-mx-0">
+ <form class="ui form ignore-dirty tw-flex-1">
+ {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.org_kind")}}
+ </form>
+ <!-- Sort -->
+ <div class="ui dropdown type jump item tw-mr-0">
+ <span class="text">
+ {{ctx.Locale.Tr "repo.issues.filter_sort"}}
+ </span>
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+ <div class="menu">
+ <a class="{{if or (eq .SortType "oldest") (not .SortType)}}active {{end}}item" href="?sort=oldest&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}</a>
+ <a class="{{if eq .SortType "newest"}}active {{end}}item" href="?sort=newest&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.latest"}}</a>
+ <a class="{{if eq .SortType "alphabetically"}}active {{end}}item" href="?sort=alphabetically&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</a>
+ <a class="{{if eq .SortType "reversealphabetically"}}active {{end}}item" href="?sort=reversealphabetically&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a>
+ <a class="{{if eq .SortType "recentupdate"}}active {{end}}item" href="?sort=recentupdate&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.recentupdate"}}</a>
+ <a class="{{if eq .SortType "leastupdate"}}active {{end}}item" href="?sort=leastupdate&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.issues.filter_sort.leastupdate"}}</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="ui attached table segment">
+ <table class="ui very basic striped table unstackable">
+ <thead>
+ <tr>
+ <th data-sortt-asc="oldest" data-sortt-desc="newest">ID{{SortArrow "oldest" "newest" $.SortType false}}</th>
+ <th data-sortt-asc="alphabetically" data-sortt-desc="reversealphabetically" data-sortt-default="true">
+ {{ctx.Locale.Tr "admin.orgs.name"}}
+ {{SortArrow "alphabetically" "reversealphabetically" $.SortType true}}
+ </th>
+ <th>{{ctx.Locale.Tr "admin.orgs.teams"}}</th>
+ <th>{{ctx.Locale.Tr "admin.orgs.members"}}</th>
+ <th>{{ctx.Locale.Tr "admin.users.repos"}}</th>
+ <th data-sortt-asc="recentupdate" data-sortt-desc="leastupdate">
+ {{ctx.Locale.Tr "admin.users.created"}}
+ {{SortArrow "recentupdate" "leastupdate" $.SortType false}}
+ </th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ {{range .Users}}
+ <tr>
+ <td>{{.ID}}</td>
+ <td>
+ <a href="{{.HomeLink}}">{{.Name}}</a>
+ {{if .Visibility.IsPrivate}}
+ <span class="text gold">{{svg "octicon-lock"}}</span>
+ {{end}}
+ {{if eq .Type 3}}{{/* Reserved organization */}}
+ <span class="ui mini label">{{ctx.Locale.Tr "admin.users.reserved"}}</span>
+ {{end}}
+ </td>
+ <td>{{.NumTeams}}</td>
+ <td>{{.NumMembers}}</td>
+ <td>{{.NumRepos}}</td>
+ <td>{{DateTime "short" .CreatedUnix}}</td>
+ <td><a href="{{.OrganisationLink}}/settings" data-tooltip-content="{{ctx.Locale.Tr "edit"}}">{{svg "octicon-pencil"}}</a></td>
+ </tr>
+ {{end}}
+ </tbody>
+ </table>
+ </div>
+
+ {{template "base/paginate" .}}
+ </div>
+{{template "admin/layout_footer" .}}