Skip to content

Commit

Permalink
Replace text in “raw data” download button with icon
Browse files Browse the repository at this point in the history
The “raw data” link was very verbose and, perhaps, not as easily
recognizible for a download button than the Font Awesome download icon.

Replacing the text “raw data” with an icon also saves some space that
we’ll need in the action bar to add a detail view switch.
  • Loading branch information
pluehne authored and larsxschneider committed Jan 29, 2018
1 parent c27b0ef commit 8d0607e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/assets/js/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,8 @@ $(window).bind('load', function()

// Add an action box as the first info box
const downloadLink = '<a class="button" href="' + $(charts.first()).attr('data-url')
+ '" target="_blank">Raw data</a>';
+ '" target="_blank" title="Download raw data">'
+ '<i class="fas fa-download"></i></a>';
titles.parent().parent().append(
'<div class="col-aside"><div class="info-box"><p>' + downloadLink + '</p></div></div>');
}
Expand Down

0 comments on commit 8d0607e

Please sign in to comment.