diff --git a/client/galaxy/scripts/reports/grid/grid-shared.js b/client/galaxy/scripts/reports/grid/grid-shared.js deleted file mode 100644 index 34cb89f75f3..00000000000 --- a/client/galaxy/scripts/reports/grid/grid-shared.js +++ /dev/null @@ -1,58 +0,0 @@ -/** This class renders the grid list with shared section. */ -import GridView from "mvc/grid/grid-view"; -var View = Backbone.View.extend({ - initialize: function(options) { - var self = this; - this.setElement($("
")); - this.model = new Backbone.Model(options); - this.item = this.model.get("item"); - this.title = this.model.get("plural"); - $.ajax({ - url: `${Galaxy.root + this.item}/${this.model.get("action_id")}?${$.param(Galaxy.params)}`, - success: function(response) { - self.model.set(response); - self.render(); - } - }); - }, - - render: function() { - var grid = new GridView(this.model.attributes); - this.$el.empty().append(grid.$el); - this.$el.append(this._templateShared()); - }, - - _templateShared: function() { - var self = this; - var $tmpl = $(`

${this.model.get("plural")} shared with you by others

`); - var options = this.model.attributes; - if (options.shared_by_others && options.shared_by_others.length > 0) { - var $table = $( - '' + - '' + - "" + - "" + - "" + - "
TitleOwner
" - ); - _.each(options.shared_by_others, (it, index) => { - var display_url = `${Galaxy.root + self.item}/display_by_username_and_slug?username=${ - it.username - }&slug=${it.slug}`; - $table.append( - `${_.escape(it.title)}${_.escape( - it.username - )}` - ); - }); - $tmpl.append($table); - } else { - $tmpl.append(`No ${this.model.get("plural").toLowerCase()} have been shared with you.`); - } - return $tmpl; - } -}); - -export default { - View: View -}; diff --git a/static/scripts/reports/grid/grid-shared.js b/static/scripts/reports/grid/grid-shared.js deleted file mode 100644 index 342c53da326..00000000000 --- a/static/scripts/reports/grid/grid-shared.js +++ /dev/null @@ -1 +0,0 @@ -define("reports/grid/grid-shared",["exports","mvc/grid/grid-view"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(t),r=Backbone.View.extend({initialize:function(e){var t=this;this.setElement($("
")),this.model=new Backbone.Model(e),this.item=this.model.get("item"),this.title=this.model.get("plural"),$.ajax({url:Galaxy.root+this.item+"/"+this.model.get("action_id")+"?"+$.param(Galaxy.params),success:function(e){t.model.set(e),t.render()}})},render:function(){var e=new a.default(this.model.attributes);this.$el.empty().append(e.$el),this.$el.append(this._templateShared())},_templateShared:function(){var e=this,t=$("

"+this.model.get("plural")+" shared with you by others

"),a=this.model.attributes;if(a.shared_by_others&&a.shared_by_others.length>0){var r=$('
TitleOwner
');_.each(a.shared_by_others,function(t,a){var i=Galaxy.root+e.item+"/display_by_username_and_slug?username="+t.username+"&slug="+t.slug;r.append(''+_.escape(t.title)+""+_.escape(t.username)+"")}),t.append(r)}else t.append("No "+this.model.get("plural").toLowerCase()+" have been shared with you.");return t}});e.default={View:r}}); \ No newline at end of file