1{{ define "index" }}
2{{ template "_head" }}
3<div class="container">
4<table class="table">
5 <thead>
6 <tr>
7 <th scope="col">ID</th>
8 <th scope="col">Title</th>
9 <th scope="col">Link</th>
10 <th scope="col">Output</th>
11 <th scope="col">Status</th>
12 <th scope="col"></th>
13 </tr>
14 </thead>
15 <tbody>
16 {{ range . }}
17 <tr>
18 <td>{{ .ID }}</td>
19 <td>{{ .Title }}</td>
20 <td>{{ .Link }}</td>
21 <td>{{ .OutputFolder }}</td>
22 <td>
23 <span id="status_{{ .ID }}" class="tag is-primary is-light"></span>
24 </td>
25 <td>
26 <a href="entries/{{ .ID }}" >Edit</a>
27 </span>
28 <a onclick="deleteEntry({{ .ID }})">Delete</a>
29 </td>
30 </tr>
31 {{ end }}
32 </tbody>
33</table>
34</div>
35<a href="/entries/createEntry" class="button">Create</a>
36{{ template "_footer" }}
37{{ end }}