community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1839332 - /comdev/project-logos/site/js/logofinder.js
Date Mon, 27 Aug 2018 14:09:21 GMT
Author: humbedooh
Date: Mon Aug 27 14:09:21 2018
New Revision: 1839332

URL: http://svn.apache.org/viewvc?rev=1839332&view=rev
Log:
allow pdf originals as well

Modified:
    comdev/project-logos/site/js/logofinder.js

Modified: comdev/project-logos/site/js/logofinder.js
URL: http://svn.apache.org/viewvc/comdev/project-logos/site/js/logofinder.js?rev=1839332&r1=1839331&r2=1839332&view=diff
==============================================================================
--- comdev/project-logos/site/js/logofinder.js (original)
+++ comdev/project-logos/site/js/logofinder.js Mon Aug 27 14:09:21 2018
@@ -111,12 +111,12 @@ function make_div(key, project) {
         // original:
         let img =imgs[0];
         img.opath = img.opath || 'undef.svg';
-        let ma = img.opath.match(/(eps|svg|ai)/);
+        let ma = img.opath.match(/(eps|svg|ai|pdf)/);
         let oext = ma ? ma[1] : 'svg';
         let arr = [
                 new HTML('img', {src:'images/%s.png'.format(oext), style: {maxWidth: '24px',
maxHeight: '24px'}}),
                 new HTML('br'),
-                "Source"
+                "Original"
                 ];
         let link = new HTML('a', {href: 'https://svn.apache.org/repos/asf/comdev/project-logos/originals/'
+ img.opath},
                             new HTML('div', {class: 'img_download'},



Mime
View raw message