og/views/issue.eta

35 lines
1.1 KiB
Text
Raw Normal View History

2023-08-02 20:00:58 -04:00
<% layout('layout') %>
2023-08-02 20:22:09 -04:00
<%
2023-08-02 20:40:36 -04:00
let title = it.issue.title
const titleCharLimit = 50
if (title.length > titleCharLimit) {
title = title.slice(0, titleCharLimit) + '...'
}
let body = it.issue.body
const bodyCharLimit = 50
if (body.length > bodyCharLimit) {
body = body.slice(0, bodyCharLimit) + '...'
}
2023-08-02 20:22:09 -04:00
%>
2023-08-02 19:10:20 -04:00
<div class="main">
<div class="contents">
<div class="info">
2023-08-02 19:14:37 -04:00
<p style="font-size: 36px; color: #9A8FA7;">@<%= it.issue.repository?.full_name || it.issue.base.repo.full_name %></p>
2023-08-02 20:40:36 -04:00
<p
style="font-weight: 800;
font-size: 4.5rem;
line-height: 1.2em;
display: flex;
column-gap: 0.25em;
flex-wrap: wrap;"
><span style="font-weight: 400; color: #9A8FA7">#<%= it.issue.number %></span><%~ include('spanwords', {text: title})
%></p>
2023-08-02 19:10:20 -04:00
<% if (it.issue.body) { %>
2023-08-02 20:40:36 -04:00
<p style="font-size: 42px; font-weight: 500; flex-wrap: wrap; color: #9A8FA7; display: flex; column-gap: 0.25em;"><%~ include('spanwords', {text: body})%></p>
2023-08-02 19:10:20 -04:00
<% } %>
</div>
<div class="graphics">
<img width="120" height="120" src="<%= it.issue.user.avatar_url %>"></img>
</div>
</div>
</div>