Skip to content

Commit

Permalink
Styling the print output
Browse files Browse the repository at this point in the history
  • Loading branch information
freinhard committed Jul 31, 2024
1 parent fe9a409 commit 180dccc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/privatim/reporting/template/report.pt
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@
<span class="fw-bold" i18n:translate="">Attendees:</span>
</p>

<ul>
<ul class="attendees-list">
<li tal:repeat="user meeting.attendees">
<span tal:condition="user.first_name and user.last_name">${user.first_name} ${user.last_name}</span>
<span tal:condition="not user.first_name and not user.last_name">${user.email}</span>
</li>
</ul>

<hr />

<h2 i18n:translate="" class="mt-4">Agenda Items</h2>
<ul tal:repeat="item meeting.agenda_items" class="agenda-items-list">
<li>
Expand Down
19 changes: 17 additions & 2 deletions src/privatim/static/css/report.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
size: A4;

/* Configure inner margins */
margin: 2cm;
margin: 1.5cm;
margin-top: 1cm;

/* Font for the headers and footers. */
font-family: DM Sans;
Expand Down Expand Up @@ -82,9 +83,9 @@
}
}


.agenda-items-list {
list-style: none;
padding-left: 0;
}

img {
Expand All @@ -98,3 +99,17 @@ body {
font-family: DM Sans;
font-size: 10pt;
}

.fw-bold {
font-weight: bold;
}

.attendees-list {
padding-left: 1rem;
}

hr {
margin: 2rem 0;
border: none;
border-top: 1px solid #000;
}

0 comments on commit 180dccc

Please sign in to comment.