Commit d336eb4d authored by Cullen Taylor's avatar Cullen Taylor 🥚

Add support for jpeg|jpg files in /partners

The integrate instructions for the partners page say that both jpeg
and png image filetypes are supported. However, the haml code for
the partners page currently looks for images of png type only. This
will correct that discrepancy so that jpeg is supported, and any
additional image filetypes can be supported as well.
Signed-off-by: Cullen Taylor's avatarCullen Taylor <ctaylor@gitlab.com>
parent 4c71c4b3
Pipeline #56397527 passed with stages
in 29 minutes and 18 seconds
......@@ -37,7 +37,9 @@ extra_js:
- category.applications.each do |application|
.application.tile
.app-image-container
%img.app-image{ data: { src: "/images/applications/apps/#{application.title.parameterize.underscore}.png", alt: "#{application.title} logo png" } }
- fullpath = Dir.glob('source/images/applications/apps/' + application.title.parameterize.underscore + '.{jpg,jpeg,png}').to_s
- buildpath = JSON.parse(fullpath).join(', ').split('source')[1]
%img.app-image{ data: { src: "#{buildpath}", alt: "#{application.title} logo image" } }
%h4.js-application-title
= application.title
%p
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment