aboutsummaryrefslogtreecommitdiff
path: root/templates/home.html
blob: 40a0e5c5ca8221e9a3f1056da3a71b86ffd73caf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{{define "title"}}{{end}}

{{define "body"}}
<div class="alert alert-info">
    Logged in as <strong>{{ .Login.MxId }}</strong>
</div>
<div class="d-flex">
  <a class="ml-auto btn btn-sm btn-dark" href="/logout">Log out</a>
</div>

<table class="table mt-4">
  <thead>
    <tr>
      <th>Account name</th>
      <th>Protocol</th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    {{range $name, $acc := .Accounts}}
      <tr>
        <td>{{ $name }}</td>
        <td>{{ $acc.Protocol }}</td>
        <td>Modifier etc</td>
      </tr>
    {{end}}
  </tbody>
</table>

{{end}}