backend/src/templates/transparency-entry.eta

57 lines
1010 B
Plaintext

<% layout('./layout') %>
<div class="report">
<div class="t-header">
<div class="title"><%= it.t_title %></div>
<div class="date"><%= it.date %></div>
</div>
<pre class="details"><%= it.details %></pre>
<% if (it.pdf_url) { %>
<embed class="pdf-embed" src="<%= it.pdf_url %>" type="application/pdf" />
<% } %>
</div>
<style>
.report {
margin-top: 5%;
margin-left: auto;
margin-right: auto;
width: 75%;
}
.t-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.title {
font-size: 25px;
font-weight: bold;
text-align: left;
}
.date {
font-size: 15px;
text-align: right;
}
.details {
margin-top: 10px;
width: 100%;
font-family: monospace;
font-size: 14px;
white-space: pre-wrap;
word-wrap: break-word;
border: 1px solid #ccc;
padding: 8px;
}
.pdf-embed {
margin-top: 15px;
width: 100%;
height: 600px;
border: 1px solid #ccc;
}
</style>