Skip to content

Commit

Permalink
Merge pull request #2781 from Franz-Kafka/main
Browse files Browse the repository at this point in the history
added icons to release list
  • Loading branch information
szarnyasg authored Apr 25, 2024
2 parents 9e9f400 + ec4acdd commit f64bfc7
Show file tree
Hide file tree
Showing 22 changed files with 153 additions and 0 deletions.
1 change: 1 addition & 0 deletions _sass/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ $duckDBlightyellow: #fffee6;
$purple: #7D66FF;
$blue: #4396D7;
$orange: #FF6900;
$green: #00C770;
$lightpurple: #D9D2FF;
$duckDBgrey: #ebebeb;
$duckDBblue: #e0f1fd;
Expand Down
6 changes: 6 additions & 0 deletions css/docu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions images/release-icons/0.10.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.2.2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.2.3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.2.4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions images/release-icons/0.2.5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions images/release-icons/0.2.6.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions images/release-icons/0.2.7.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions images/release-icons/0.2.8.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.2.9.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.3.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions images/release-icons/0.3.1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.3.2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.3.3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.4.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions images/release-icons/0.5.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.6.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.7.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.8.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions images/release-icons/0.9.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = $('<img>').attr('src', imagePath).attr('alt', 'Release-Icon');
var $iconCell = $('<td>').addClass('icon').append($img);
$currentRow.append($iconCell);
},
error: function() {
// No Icon-Image available
}
});
});




});

0 comments on commit f64bfc7

Please sign in to comment.