Skip to content

Commit

Permalink
Rework Box Label (#1819)
Browse files Browse the repository at this point in the history
* Remove Institution and Purpose labels to improve display
* Truncate institution name
* Add samples count
  • Loading branch information
leandroradusky authored and ysbaddaden committed Dec 12, 2022
1 parent 0c5cd9d commit ffdef5c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/views/boxes/barcode.pdf.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
.uuid
#{box.uuid}
.code
Box: #{box.samples.count} samples
#{(box.institution.name).truncate(22)}
.code
Institution: #{box.institution.name}
.code
Purpose: #{box.purpose}
#{box.purpose} (#{box.samples.count} samples)
.logo
= image_tag wicked_pdf_asset_base64('cdx-logo-bw.png')
.label https://cdx.io

0 comments on commit ffdef5c

Please sign in to comment.