community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1839313 - in /comdev/project-logos/site: css/logofinder.css images/svg.png index.html js/logofinder.js
Date Mon, 27 Aug 2018 12:59:13 GMT
Author: humbedooh
Date: Mon Aug 27 12:59:13 2018
New Revision: 1839313

URL: http://svn.apache.org/viewvc?rev=1839313&view=rev
Log:
support links to original sources

Added:
    comdev/project-logos/site/images/svg.png   (with props)
Modified:
    comdev/project-logos/site/css/logofinder.css
    comdev/project-logos/site/index.html
    comdev/project-logos/site/js/logofinder.js

Modified: comdev/project-logos/site/css/logofinder.css
URL: http://svn.apache.org/viewvc/comdev/project-logos/site/css/logofinder.css?rev=1839313&r1=1839312&r2=1839313&view=diff
==============================================================================
--- comdev/project-logos/site/css/logofinder.css (original)
+++ comdev/project-logos/site/css/logofinder.css Mon Aug 27 12:59:13 2018
@@ -70,7 +70,7 @@ h3 {
     font-family: sans-serif;
     display: inline-block;
     overflow: hidden;
-    width: 105px;
+    width: 75px;
     line-height: 1.1;
     height: 50px;
     text-align: center;

Added: comdev/project-logos/site/images/svg.png
URL: http://svn.apache.org/viewvc/comdev/project-logos/site/images/svg.png?rev=1839313&view=auto
==============================================================================
Binary file - no diff available.

Propchange: comdev/project-logos/site/images/svg.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: comdev/project-logos/site/index.html
URL: http://svn.apache.org/viewvc/comdev/project-logos/site/index.html?rev=1839313&r1=1839312&r2=1839313&view=diff
==============================================================================
--- comdev/project-logos/site/index.html (original)
+++ comdev/project-logos/site/index.html Mon Aug 27 12:59:13 2018
@@ -109,15 +109,9 @@
        
       <input type="button" value="reset" onclick="document.getElementById('pkey').value='';
find_project('');"/>
     </form>
-    <div id="intro">
-      <b>How do I get my project logo on this page?</b><br/>
-      Commit your original logo (svg, eps, ai, pdf accepted) to
-      <a href="https://svn.apache.org/repos/asf/comdev/project-logos/originals/">this
location</a>, and call it $project.$ext, for instance couchdb.svg.
-      If you have multiple versions to display (for instance a vertical and horizontal version),
you can call them $project-1.ext, $project-2.ext and so on,
-      and the site will pick up on that. 
-      You can also send it or a query to dev@community.apache.org if you need further assistance.
-      This site is automatically regenerated every hour.
-    </div>
+    <p style="text-align: center;">
+      <a href="about.html">How do I get my project logo on this page?</a><br/>
+    </p>
     <div id="wrapper">
       
     </div>

Modified: comdev/project-logos/site/js/logofinder.js
URL: http://svn.apache.org/viewvc/comdev/project-logos/site/js/logofinder.js?rev=1839313&r1=1839312&r2=1839313&view=diff
==============================================================================
--- comdev/project-logos/site/js/logofinder.js (original)
+++ comdev/project-logos/site/js/logofinder.js Mon Aug 27 12:59:13 2018
@@ -97,7 +97,7 @@ function make_div(key, project) {
             arr.push(ltxt);
             if (img.width && img.height) {
                 arr.push(new HTML('br'));
-                arr.push("(%s x %s pixels)".format(img.width, img.height));
+                arr.push("(%s x %s)".format(img.width, img.height));
             }
             
             let link = new HTML('a', {href: 'res/' + img.filename},
@@ -107,6 +107,22 @@ function make_div(key, project) {
                                );
             odiv.inject(link);
         }
+        
+        // original:
+        let img =imgs[0];
+        img.opath = img.opath || 'undef.svg';
+        let arr = [
+                new HTML('img', {src:'images/%s.png'.format(img.opath.match(/eps/) ? 'eps'
: 'svg'), style: {maxWidth: '24px', maxHeight: '24px'}}),
+                new HTML('br'),
+                "Source"
+                ];
+        let link = new HTML('a', {href: 'https://svn.apache.org/repos/asf/comdev/project-logos/originals/'
+ img.opath},
+                            new HTML('div', {class: 'img_download'},
+                                     arr
+                            )
+                           );
+        odiv.inject(link);
+        
         if (x > 1) {
             odiv.style.display = "none";
         }



Mime
View raw message