add info line to issue template
This commit is contained in:
parent
2e46773bcd
commit
874924dd71
2 changed files with 25 additions and 1 deletions
|
@ -80,3 +80,24 @@ p {
|
||||||
.language {
|
.language {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info-line {
|
||||||
|
display: flex;
|
||||||
|
font-size: 1.75rem;
|
||||||
|
color: #9a8fa7;
|
||||||
|
gap: 0.5em;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-line .author {
|
||||||
|
color: #ffffff;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-line .avatar {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 100%;
|
||||||
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
body = body.slice(0, bodyCharLimit) + '...'
|
body = body.slice(0, bodyCharLimit) + '...'
|
||||||
}
|
}
|
||||||
%>
|
%>
|
||||||
<div class="main">
|
<div class="main issue">
|
||||||
<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>
|
||||||
|
@ -32,4 +32,7 @@
|
||||||
<img width="120" height="120" src="<%= it.issue.user.avatar_url %>"></img>
|
<img width="120" height="120" src="<%= it.issue.user.avatar_url %>"></img>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="info-line">
|
||||||
|
<img class="avatar" width="48" height="48" src="<%= it.issue.user.avatar_url %>"></img><p class="author"><%= it.issue.user.full_name %></p><p>opened on <%= new Intl.DateTimeFormat('en-US', { dateStyle: 'long' }).format(new Date(it.issue.created_at)) %></p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue