clean up templates a little
This commit is contained in:
parent
6e3bad10f8
commit
7e871b2366
3 changed files with 3 additions and 10 deletions
|
@ -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 %>
|
||||
|
|
|
@ -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><% } %>
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue