add issue number to issue template

This commit is contained in:
hazycora 2023-08-02 19:22:09 -05:00
parent 3a7ecc70a3
commit 3bdee6d047
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E

View file

@ -1,9 +1,17 @@
<% layout('layout') %> <% layout('layout') %>
<%
const issueTitleWords = it.issue.title.split(/\s/)
// 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>...
%>
<div class="main"> <div class="main">
<div class="contents"> <div class="contents">
<div class="info"> <div class="info">
<p style="font-size: 36px; color: #9A8FA7;">@<%= it.issue.repository?.full_name || it.issue.base.repo.full_name %></p> <p style="font-size: 36px; color: #9A8FA7;">@<%= it.issue.repository?.full_name || it.issue.base.repo.full_name %></p>
<p style="font-weight: 800; font-size: 4.5rem; line-height: 1.2em;"><%= it.issue.title %></p> <p style="font-weight: 800; font-size: 4.5rem; line-height: 1.2em; column-gap: 0.125em; flex-wrap: wrap;"><span style="font-weight: 400; color: #9A8FA7">#<%= it.issue.number %></span> <%
for (const word of issueTitleWords) { %>
<span><%= word %></span>
<% }%></p>
<% if (it.issue.body) { %> <% if (it.issue.body) { %>
<p style="font-size: 42px; font-weight: 500; text-overflow: ellipsis; color: #9A8FA7; overflow: hidden; white-space: nowrap;"><%= it.issue.body %></p> <p style="font-size: 42px; font-weight: 500; text-overflow: ellipsis; color: #9A8FA7; overflow: hidden; white-space: nowrap;"><%= it.issue.body %></p>
<% } %> <% } %>