refactor, redesign
This commit is contained in:
parent
83a9e85d3d
commit
ff48d782c3
5 changed files with 46 additions and 20 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue