Skip to content

Commit f3799b4

Browse files
refactor: clean up views
1 parent 4e1bf40 commit f3799b4

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

web/views/endpoints.html

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<h2>Endpoints</h2>
66
<h2>Showing {{len .Endpoints}} endpoints.</h2>
77
</hgroup>
8+
89
{{range $val := .Endpoints}}
910
<article id="endpoint_{{$val.ID}}">
1011
<h3>{{$val.Name}}</h3>

web/views/envelopes-new.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
<h2>New Envelope</h2>
1212

1313
<form method="post" enctype="multipart/form-data">
14-
<label for="subject">
15-
Subject
16-
<input type="text" id="subject" name="subject" placeholder="Subject" />
17-
</label>
18-
1914
<div class="grid">
2015
<label for="from">
2116
From
@@ -28,6 +23,11 @@ <h2>New Envelope</h2>
2823
</label>
2924
</div>
3025

26+
<label for="subject">
27+
Subject
28+
<input type="text" id="subject" name="subject" placeholder="Subject" />
29+
</label>
30+
3131
<label for="body">
3232
Body
3333
<textarea id="body" name="body" placeholder="Body"></textarea>

web/views/envelopes.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{{template "p/header" .}}
22

33
<main class="container">
4-
54
<section>
65
<hgroup>
76
<h2>Envelopes</h2>
@@ -15,7 +14,7 @@ <h2>
1514
<nav>
1615
<ul>
1716
<li>
18-
<a href="/envelopes/new" role="button" aria-label="New">
17+
<a href="/envelopes/new" role="button" aria-label="New" title="New">
1918
<div class="i-ri-add-fill h-6 w-6"></div>
2019
</a>
2120
</li>

web/views/p/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<footer class="container">
2-
<small>Built with <a href="https://picocss.com">Pico</a>
2+
<small>Built with <a href="https://picocss.com">Pico</a> and <a href="https://unocss.dev/">UnoCSS</a>
33
<a href="{{build.RepoURL}}">Source code</a>
44
<a href="{{build.LicenseURL}}">License</a>
55
</small>

0 commit comments

Comments
 (0)