refactor, redesign

This commit is contained in:
hazycora 2023-08-03 02:06:43 -05:00
parent 83a9e85d3d
commit ff48d782c3
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
5 changed files with 46 additions and 20 deletions

View file

@ -1,15 +1,10 @@
<% layout('layout') %>
<%
let title = it.issue.title
const titleCharLimit = 50
const titleCharLimit = 30
if (title.length > titleCharLimit) {
title = title.slice(0, titleCharLimit).trim() + '...'
}
let body = it.issue.body
const bodyCharLimit = 50
if (body.length > bodyCharLimit) {
body = body.slice(0, bodyCharLimit).trim() + '...'
}
%>
<div class="main issue">
<div class="contents">
@ -19,7 +14,7 @@
%></p>
<% if (it.issue.body) { %>
<p class="description">
<%= body %>
<%= it.issue.body %>
</p>
<% } %>
</div>