aboutsummaryrefslogtreecommitdiff
path: root/templates/index.tmpl
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2022-06-16 16:32:31 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2022-06-16 16:32:31 +0200
commitda992500f806bb87b06559d920ee12b7680955ee (patch)
treed535f986eba7a95e5cb6b358259bc37ca6fa7ca9 /templates/index.tmpl
parent64496464b3812839c1e4b440bdf69cc84f39c491 (diff)
downloadmdir-da992500f806bb87b06559d920ee12b7680955ee.tar.gz
mdir-da992500f806bb87b06559d920ee12b7680955ee.tar.bz2
mdir-da992500f806bb87b06559d920ee12b7680955ee.zip
feat: Add worker
Add a simple worker to manage a work queue. Right now, it is bit brittled and has no test coverage yet, but it works. Also moved from pico.css to bulma, I like the idea of classes approach of pico but for me bulma yields a better result.
Diffstat (limited to 'templates/index.tmpl')
-rw-r--r--templates/index.tmpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl
index 0b965f5..9bb7512 100644
--- a/templates/index.tmpl
+++ b/templates/index.tmpl
@@ -1,10 +1,12 @@
{{ define "index" }}
{{ template "_head" }}
-<table role="grid">
+<div class="container">
+<table class="table">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">Title</th>
+ <th scope="col">Link</th>
<th scope="col">Output</th>
<th scope="col"></th>
</tr>
@@ -13,17 +15,19 @@
{{ range . }}
<tr>
<td>{{ .ID }}</td>
+ <td>{{ .Title }}</td>
<td>{{ .Link }}</td>
<td>{{ .OutputFolder }}</td>
<td>
<a href="entries/{{ .ID }}" >Edit</a>
</span>
- <a href="#" onclick="deleteEntry({{ .ID }})">Delete</a>
+ <a onclick="deleteEntry({{ .ID }})">Delete</a>
</td>
</tr>
{{ end }}
</tbody>
</table>
-<a href="/entries" role="button">Create</a>
+</div>
+<a href="/entries/createEntry" class="button">Create</a>
{{ template "_footer" }}
{{ end }}