- configuracao = Configuracao.last .div_logo - logo = @orgao.try(:logo_file_name).present? ? @orgao.logo : configuracao.brasao.url = wicked_pdf_image_tag logo, height: "110px", width: "130px", style: "margin-right: 10px;" .div_texto_cabecalho - if configuracao.customizacao.exibir_prefeitura_municipal? && !titulo1.blank? && !titulo2.blank? && !titulo3.blank? h2 = configuracao.try(:nome_da_prefeitura).try(:upcase) h3 = titulo1.try(:upcase) h4 = titulo2.try(:upcase) h4 = titulo3.try(:upcase) - else - hash_textos = {"titulo1" => titulo1, "titulo2" => titulo2}.select{|elemento, valor| !valor.blank? } - if configuracao.customizacao.exibir_prefeitura_municipal? h2 = configuracao.try(:nome_da_prefeitura).try(:upcase) - else h2 style="color: white;" = " - " - hash_textos.each do |texto| h3 = texto[1].try(:upcase) - (1..(2 - hash_textos.size)).map do |texto| h3 style="color: white;" = " - " br br br