fix(web/bugs): trim separator leading whitespace

Amolith created

Change summary

pkg/web/templates/bugs.html | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)

Detailed changes

pkg/web/templates/bugs.html 🔗

@@ -32,12 +32,10 @@
     </h3>
       <footer>
         {{if .AuthorAvatar}}<img src="{{.AuthorAvatar}}" alt="" class="avatar" loading="lazy" referrerpolicy="no-referrer">{{end}}<strong>{{.Author}}</strong> opened <time datetime="{{.CreatedAt | rfc3339}}" data-tooltip="{{.CreatedAt | formatDate}}">{{.CreatedAt | relativeTime}}</time>
-        {{if gt .CommentCount 0}}
-        <span class="separator">•</span>{{.CommentCount}} {{if eq .CommentCount 1}}comment{{else}}comments{{end}}
-        {{end}}
-        {{if .HasActivity}}
-        <span class="separator">•</span>Updated <time datetime="{{.LastActivity | rfc3339}}" data-tooltip="{{.LastActivity | formatDate}}">{{.LastActivity | relativeTime}}</time>
-        {{end}}
+        {{- if gt .CommentCount 0}}<span class="separator">•</span>{{.CommentCount}} {{if eq .CommentCount 1}}comment{{else}}comments{{end}}
+        {{- end}}
+        {{- if .HasActivity}}<span class="separator">•</span>Updated <time datetime="{{.LastActivity | rfc3339}}" data-tooltip="{{.LastActivity | formatDate}}">{{.LastActivity | relativeTime}}</time>
+        {{- end}}
      </footer>
   </article>
   {{end}}