clean up templates a little

This commit is contained in:
hazycora 2023-12-21 08:21:50 -06:00
parent 6e3bad10f8
commit 7e871b2366
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
3 changed files with 3 additions and 10 deletions

View file

@ -10,8 +10,7 @@
<div class="contents">
<div class="info">
<p class="repo-name">@<%= it.issue.repository?.full_name || it.issue.base.repo.full_name %></p>
<p class="title"><span class="number">#<%= it.issue.number %></span><%~ include('spanwords', {text: title})
%></p>
<p class="title"><span class="number">#<%= it.issue.number %></span><%= title %></p>
<% if (it.issue.body) { %>
<p class="description">
<%= it.issue.body %>

View file

@ -1,5 +0,0 @@
<% /*
satori, the HTML-to-SVG engine we use, has no concept of "inline" or "inline-block"
CSS display values. So, we must emulate them with flex-wrap and making each word a <span>...
*/ %>
<% for (const word of it.text.split(/\s+/)) { %><span class="word"><%= word %></span><% } %>

View file

@ -14,9 +14,8 @@
<span class="word name"><%= it.user.full_name || it.user.username %></span>
<span class="word username">@<%= it.user.username %></span>
</p>
<p class="description"><%= description %>
</p>
</div>
<p class="description"><%= description %></p>
</div>
<div class="graphics">
<% if (it.user.avatar_url) { %>
<img width="120" height="120" src="<%= it.user.avatar_url %>"></img>