diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-06-06 02:49:05 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-06-06 02:49:05 +0200 |
commit | f13a07aa433298de91e1c4aff68f72be6d851be2 (patch) | |
tree | 5ebb10ed5f91b251ccc16c74a631448b5abb6145 /templates/index.tmpl | |
download | mdir-f13a07aa433298de91e1c4aff68f72be6d851be2.tar.gz mdir-f13a07aa433298de91e1c4aff68f72be6d851be2.tar.bz2 mdir-f13a07aa433298de91e1c4aff68f72be6d851be2.zip |
Initial commit
Diffstat (limited to 'templates/index.tmpl')
-rw-r--r-- | templates/index.tmpl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl new file mode 100644 index 0000000..a392761 --- /dev/null +++ b/templates/index.tmpl @@ -0,0 +1,28 @@ +{{ define "index" }} +{{ template "_head" }} +<table role="grid"> + <thead> + <tr> + <th scope="col">ID</th> + <th scope="col">Title</th> + <th scope="col">Output</th> + <th scope="col"></th> + </tr> + </thead> + <tbody> + {{ range . }} + <tr> + <td>{{ .ID }}</td> + <td>{{ .Link }}</td> + <td>{{ .Output_folder }}</td> + <td> + <a href="entries/{{ .ID }}" role="button">Edit</a> + <a href="#" onclick="deleteEntry({{ .ID }})" role="button" class="secondary">Delete</a> + </td> + </tr> + {{ end }} + </tbody> +</table> +<a href="/entries" role="button">Create</a> +{{ template "_footer" }} +{{ end }} |