Added models; started working on project routes

This commit is contained in:
2025-07-14 13:53:50 -04:00
parent 819baeb0c3
commit 0f89087134
8 changed files with 131 additions and 2 deletions

View File

@ -0,0 +1,27 @@
{{ template "header" . }}
<div class="row">
<h2>Projects</h2>
<a href="/project/add">Add a project</a>
<table class="twelve columns">
<thead>
<tr>
<td>Title</td>
<td>Created at</td>
<td>Last updated</td>
</tr>
</thead>
<tbody>
{{ range $p := .projects }}
<tr>
<td><a href="/project/{{ $p.Id }}">{{ $p.Name }}</a></td>
<td>{{ $p.CreatedAt.Format "01/02/2006 15:04am" }}</td>
<td>{{ $p.UpdatedAt.Format "01/02/2006 15:04am" }}</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
{{ template "footer" . }}