Browse Source

Show the community description on the list

communities
meskio 1 year ago
parent
commit
86eb48e096
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 4
      tmpl/communities.html
  2. 1
      tmpl/community.html
  3. 4
      tmpl/user.html

4
tmpl/communities.html

@ -12,20 +12,20 @@
<thead>
<tr>
<th scope="col">Nombre</th>
<th scope="col">Descripción</th>
<th scope="col">Cuentas</th>
<th scope="col">GID</th>
</tr>
</thead>
<tbody>
{{range .Data}}
<tr>
<th scope="row"><a href="/community/{{.Name}}">{{.Name}}</a></th>
<td>{{.Description}}</a></th>
<td>
{{range .Members}}
<a href="/users/{{.}}">{{.}}</a>,
{{end}}
</td>
<td>{{.GID}}</a></th>
</tr>
{{end}}
</tbody>

1
tmpl/community.html

@ -13,7 +13,6 @@
<a href="/users/{{.}}">{{.}}</a>,
{{end}}
</dd>
<dt>GID</dt><dd>{{.GID}}</dd>
</dl>
</div>

4
tmpl/user.html

@ -14,9 +14,9 @@
<dt>Home</dt><dd>{{.User.Home}}</dd>
<dt>Mail</dt><dd>{{.User.Mail}}</dd>
{{if .Groups}}
<dt>Grupos</dt><dd>
<dt>Colectividades</dt><dd>
{{range .Groups}}
<a href="/groups/{{.Name}}">{{.Name}}</a>,
<a href="/community/{{.Name}}">{{.Name}}</a>,
{{end}}
</dd>
{{end}}

Loading…
Cancel
Save