| DTabidze | 4b44ff4 | 2024-04-02 03:16:26 +0400 | [diff] [blame^] | 1 | {{ define "title" }} |
| 2 | User - {{ .CurrentUser }} |
| 3 | {{ end }} |
| 4 | {{- define "content" -}} |
| DTabidze | 5d735e3 | 2024-03-26 16:01:06 +0400 | [diff] [blame] | 5 | <h1>User: {{ .CurrentUser }}</h1> |
| 6 | {{ if .LoggedInUserPage }} |
| DTabidze | 0d80259 | 2024-03-19 17:42:45 +0400 | [diff] [blame] | 7 | <form action="/create-group" method="post"> |
| 8 | <label for="group-name">Group Name:</label> |
| 9 | <input type="text" id="group-name" name="group-name" required> |
| 10 | <label for="description">Group Description:</label> |
| 11 | <input type="text" id="description" name="description"> |
| 12 | <button type="submit">Create Group</button> |
| 13 | </form> |
| DTabidze | 5d735e3 | 2024-03-26 16:01:06 +0400 | [diff] [blame] | 14 | {{ end }} |
| DTabidze | 0d80259 | 2024-03-19 17:42:45 +0400 | [diff] [blame] | 15 | <h4>Owner</h4> |
| 16 | <table> |
| 17 | <tr> |
| 18 | <th>Name</th> |
| 19 | <th>Description</th> |
| 20 | </tr> |
| 21 | {{- range .OwnerGroups -}} |
| 22 | <tr> |
| 23 | <td><a href="/group/{{ .Name }}">{{ .Name }}</a></td> |
| 24 | <td>{{ .Description }}</td> |
| 25 | </tr> |
| 26 | {{- end -}} |
| 27 | </table> |
| 28 | <h4>Member</h4> |
| 29 | <table> |
| 30 | <tr> |
| 31 | <th>Name</th> |
| 32 | <th>Description</th> |
| 33 | </tr> |
| 34 | {{- range .MembershipGroups -}} |
| 35 | <tr> |
| 36 | <td><a href="/group/{{ .Name }}">{{ .Name }}</a></td> |
| 37 | <td>{{ .Description }}</td> |
| 38 | </tr> |
| 39 | {{- end -}} |
| 40 | </table> |
| DTabidze | c0b4d8f | 2024-03-22 17:25:10 +0400 | [diff] [blame] | 41 | <h4>Transitive Groups</h4> |
| 42 | <table> |
| 43 | <tr> |
| 44 | <th>Name</th> |
| 45 | <th>Description</th> |
| 46 | </tr> |
| 47 | {{- range .TransitiveGroups -}} |
| 48 | <tr> |
| 49 | <td><a href="/group/{{ .Name }}">{{ .Name }}</a></td> |
| 50 | <td>{{ .Description }}</td> |
| 51 | </tr> |
| 52 | {{- end -}} |
| 53 | </table> |
| DTabidze | 4b44ff4 | 2024-04-02 03:16:26 +0400 | [diff] [blame^] | 54 | {{- end }} |