Skip to content

Commit

Permalink
Add download button for collections
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed May 22, 2017
1 parent 3084e19 commit 1093b61
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 10 deletions.
10 changes: 9 additions & 1 deletion client/galaxy/scripts/mvc/collection/collection-view.js
Expand Up @@ -45,6 +45,7 @@ var CollectionView = _super.extend(
this.parentName = attributes.parentName;
/** foldout or drilldown */
this.foldoutStyle = attributes.foldoutStyle || 'foldout';
this.downloadUrl = this.model.attributes.url + '/download';
},

_queueNewRender : function( $newRender, speed ) {
Expand Down Expand Up @@ -171,7 +172,14 @@ CollectionView.prototype.templates = (function(){
'</div>',

'<div class="tags-display"></div>',
'</div>'

'<div class="actions">',
'<a class="download-btn icon-btn" ',
'href="<%- view.downloadUrl %>', '" title="" download="" data-original-title="Download Collection">',
'<span class="fa fa-floppy-o"></span>',
'</a>',
'</div>',
'</div>',
], 'collection' );

return _.extend( _.clone( _super.prototype.templates ), {
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/collection/collection-view.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/scripts/bundled/admin.bundled.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/scripts/bundled/analysis.bundled.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/analysis.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/login.bundled.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1093b61

Please sign in to comment.