diff --git a/_sass/variables.scss b/_sass/variables.scss index 99570bda086..7db0c4d1a1a 100644 --- a/_sass/variables.scss +++ b/_sass/variables.scss @@ -3,6 +3,7 @@ $duckDBlightyellow: #fffee6; $purple: #7D66FF; $blue: #4396D7; $orange: #FF6900; +$green: #00C770; $lightpurple: #D9D2FF; $duckDBgrey: #ebebeb; $duckDBblue: #e0f1fd; diff --git a/css/docu.scss b/css/docu.scss index 972b2074072..2ea57402393 100644 --- a/css/docu.scss +++ b/css/docu.scss @@ -844,6 +844,12 @@ td { line-height: 1.55; vertical-align: top; } +td.icon{ + img{ + width: 40px!important; + height: auto!important; + } +} .narrow_table + table{ width: auto; min-width: auto; diff --git a/images/release-icons/0.10.0.svg b/images/release-icons/0.10.0.svg new file mode 100644 index 00000000000..0125e231f3b --- /dev/null +++ b/images/release-icons/0.10.0.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.2.2.svg b/images/release-icons/0.2.2.svg new file mode 100644 index 00000000000..5b6a7a6274d --- /dev/null +++ b/images/release-icons/0.2.2.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.2.3.svg b/images/release-icons/0.2.3.svg new file mode 100644 index 00000000000..f565f476d4c --- /dev/null +++ b/images/release-icons/0.2.3.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.2.4.svg b/images/release-icons/0.2.4.svg new file mode 100644 index 00000000000..88ab578834d --- /dev/null +++ b/images/release-icons/0.2.4.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.2.5.svg b/images/release-icons/0.2.5.svg new file mode 100644 index 00000000000..674898a9fab --- /dev/null +++ b/images/release-icons/0.2.5.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/release-icons/0.2.6.svg b/images/release-icons/0.2.6.svg new file mode 100644 index 00000000000..3cb6c80fd1d --- /dev/null +++ b/images/release-icons/0.2.6.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/release-icons/0.2.7.svg b/images/release-icons/0.2.7.svg new file mode 100644 index 00000000000..c6ca8e64859 --- /dev/null +++ b/images/release-icons/0.2.7.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/release-icons/0.2.8.svg b/images/release-icons/0.2.8.svg new file mode 100644 index 00000000000..c2f2f930f9b --- /dev/null +++ b/images/release-icons/0.2.8.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/images/release-icons/0.2.9.svg b/images/release-icons/0.2.9.svg new file mode 100644 index 00000000000..7b4df58639c --- /dev/null +++ b/images/release-icons/0.2.9.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.3.0.svg b/images/release-icons/0.3.0.svg new file mode 100644 index 00000000000..5152c66f5bd --- /dev/null +++ b/images/release-icons/0.3.0.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.3.1.svg b/images/release-icons/0.3.1.svg new file mode 100644 index 00000000000..3745901f5cf --- /dev/null +++ b/images/release-icons/0.3.1.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/release-icons/0.3.2.svg b/images/release-icons/0.3.2.svg new file mode 100644 index 00000000000..64cbad9ace0 --- /dev/null +++ b/images/release-icons/0.3.2.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.3.3.svg b/images/release-icons/0.3.3.svg new file mode 100644 index 00000000000..c9aa527e7fa --- /dev/null +++ b/images/release-icons/0.3.3.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.4.0.svg b/images/release-icons/0.4.0.svg new file mode 100644 index 00000000000..6ccd6be35bb --- /dev/null +++ b/images/release-icons/0.4.0.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.5.0.svg b/images/release-icons/0.5.0.svg new file mode 100644 index 00000000000..41ce0c531c8 --- /dev/null +++ b/images/release-icons/0.5.0.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/release-icons/0.6.0.svg b/images/release-icons/0.6.0.svg new file mode 100644 index 00000000000..407713bc754 --- /dev/null +++ b/images/release-icons/0.6.0.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.7.0.svg b/images/release-icons/0.7.0.svg new file mode 100644 index 00000000000..1c0a5eaaf62 --- /dev/null +++ b/images/release-icons/0.7.0.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.8.0.svg b/images/release-icons/0.8.0.svg new file mode 100644 index 00000000000..2a2d63cdf97 --- /dev/null +++ b/images/release-icons/0.8.0.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/release-icons/0.9.0.svg b/images/release-icons/0.9.0.svg new file mode 100644 index 00000000000..c8a8e8a4cc3 --- /dev/null +++ b/images/release-icons/0.9.0.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/js/script.js b/js/script.js index 3588ba37033..030b1a905a7 100644 --- a/js/script.js +++ b/js/script.js @@ -817,6 +817,31 @@ $(document).ready(function(){ } }); // setWithExpiry('homeBanner', '', -1); // deletes content + + + /** ADD ICONS TO RELEASE CALENDAR */ + $('.releasecalendar #past-releases ~ table tbody tr').each(function() { + var $currentRow = $(this); + var versionNumber = $currentRow.find('td:nth-child(2)').text().trim(); + var iconFileName = versionNumber + '.svg'; + var imagePath = '../../../images/release-icons/' + iconFileName; + // Check if image exits + $.ajax({ + url: imagePath, + type: 'HEAD', + success: function() { + // If Icon-Image available use it! + var $img = $('').attr('src', imagePath).attr('alt', 'Release-Icon'); + var $iconCell = $('').addClass('icon').append($img); + $currentRow.append($iconCell); + }, + error: function() { + // No Icon-Image available + } + }); + }); + + });