All checks were successful
		
		
	
	Run unit tests / copyright_notice (pull_request) Successful in 1m27s
				
			Run unit tests / rubocop (pull_request) Successful in 1m46s
				
			Run unit tests / check-licenses (pull_request) Successful in 1m56s
				
			Run unit tests / unit_tests (pull_request) Successful in 3m14s
				
			Run unit tests / build-static-assets (pull_request) Successful in 40m16s
				
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %>
 | 
						|
 | 
						|
<% invitations.each_slice(4) do |invitation_group| %>
 | 
						|
  <table style="width: 100%; border-collapse: separate; border-spacing: 0 20px; margin-bottom: 40px;">
 | 
						|
    <% invitation_group.each do |invitation| %>
 | 
						|
      <tr>
 | 
						|
        <td style="width: 270px; height: 270px; text-align: center; vertical-align: middle; padding: 10px;">
 | 
						|
          <%= image_tag(RQRCode::QRCode.new(invitation.url).as_png(
 | 
						|
                bit_depth: 1,
 | 
						|
                border_modules: 4,
 | 
						|
                color_mode: ChunkyPNG::COLOR_GRAYSCALE,
 | 
						|
                color: "black",
 | 
						|
                file: nil,
 | 
						|
                fill: "white",
 | 
						|
                module_px_size: 6,
 | 
						|
                resize_exactly_to: false,
 | 
						|
                resize_gte_to: false,
 | 
						|
                size: 250
 | 
						|
              ).to_data_url)
 | 
						|
          %>
 | 
						|
        </td>
 | 
						|
        <td style="vertical-align: middle; padding: 10px;">
 | 
						|
          <ul style="margin: 0; padding-left: 20px;">
 | 
						|
            <% invitation.guests.each do |guest| %>
 | 
						|
              <%= content_tag(:li, guest.name) %>
 | 
						|
            <% end %>
 | 
						|
          </ul>
 | 
						|
        </td>
 | 
						|
      </tr>
 | 
						|
    <% end %>
 | 
						|
  </table>
 | 
						|
  <div style="page-break-after: always;"></div>
 | 
						|
<% end %>
 |