diff --git a/client/toolshed/scripts/mvc/groups/group-model.js b/client/toolshed/scripts/mvc/groups/group-model.js index 30b4663d9c2..c258c9db0ef 100644 --- a/client/toolshed/scripts/mvc/groups/group-model.js +++ b/client/toolshed/scripts/mvc/groups/group-model.js @@ -4,11 +4,11 @@ define([], function() { // TS GROUP RELATED MODELS var Group = Backbone.Model.extend({ - urlRoot: '/api/groups', + urlRoot: Galaxy.root + 'api/groups', }); var Groups = Backbone.Collection.extend({ - url: '/api/groups', + url: Galaxy.root + 'api/groups', model: Group, diff --git a/static/toolshed/maps/mvc/groups/group-detail-view.js.map b/static/toolshed/maps/mvc/groups/group-detail-view.js.map index 36fd453da27..67312cdfbb6 100644 --- a/static/toolshed/maps/mvc/groups/group-detail-view.js.map +++ b/static/toolshed/maps/mvc/groups/group-detail-view.js.map @@ -1 +1 @@ -{"version":3,"file":"group-detail-view.js","sources":["../../../src/mvc/groups/group-detail-view.js"],"names":["define","mod_toastr","mod_group_model","GroupDetailView","Backbone","View","extend","el","options","app","initialize","this","_","window","globalTS","groups","collection","model","get","group_id","render","fetchGroup","that","Group","id","fetch","success","console","log","error","response","responseJSON","err_msg","template","templateRow","$el","html","group","$","tooltip","css","join"],"mappings":"AAAAA,QACI,cACA,2CAEJ,SACIC,EACAC,GAIJ,GAAIC,GAAkBC,SAASC,KAAKC,QAChCC,GAAI,kBACJC,WACAC,IAAK,KAELC,WAAa,SAAUF,GACnBG,KAAKH,QAAUI,EAAEN,OAAQK,KAAKH,QAASA,GACvCG,KAAKF,IAAMI,OAAOC,SAASC,OAEE,OAAxBJ,KAAKF,IAAIO,YACVL,KAAKM,MAAQN,KAAKF,IAAIO,WAAWE,IAAKP,KAAKH,QAAQW,UACnDR,KAAKS,UAELT,KAAKU,cAKbA,WAAY,SAAUb,GAClB,GAAIc,GAAOX,IACXA,MAAKH,QAAUI,EAAEN,OAAQK,KAAKH,QAASA,GACvCG,KAAKM,MAAQ,GAAIf,GAAgBqB,OAASC,GAAIb,KAAKH,QAAQW,WAC3DR,KAAKM,MAAMQ,OACTC,QAAS,SAAUT,GACjBU,QAAQC,IAAK,mBACbD,QAAQC,IAAKX,GACbK,EAAKF,UAEPS,MAAO,SAAUZ,EAAOa,GAElB7B,EAAW4B,MADyB,mBAA1BC,GAASC,aACDD,EAASC,aAAaC,QAEtB,yBAM9BZ,OAAQ,WACJ,GAAIa,GAAWtB,KAAKuB,aACpBvB,MAAKwB,IAAIC,KAAMH,GAAYI,MAAO1B,KAAKM,SACvCqB,EAAG,yBAA0BC,UAC7BD,EAAG,WAAYE,IAAK,WAAW,SAGnCN,YAAa,WACT,MAAOtB,GAAEqB,UACD,QACI,oCACA,mCACA,qMAEA,mBACA,6CACI,UACI,gBACA,wBACA,sBACJ,WACA,UACI,wDACA,OACI,OACI,yBACJ,QACA,OACI,gPACJ,QACA,OACI,6BACJ,QACJ,QACA,YACJ,WACJ,WAEA,wBACA,6CACI,UACI,gBACA,uBACA,kBACA,iBACA,sBACA,mBACA,mBACA,kBACA,oBACJ,WACA,UACI,2DACI,OACI,OACI,6KACJ,QACA,OACI,0BACJ,QACA,OACI,+BACJ,QACA,OACI,oBACJ,QACA,OACI,kDACI,qMAEJ,YACJ,QACA,wFACI,2BACJ,QACA,wFACI,2BACJ,QACA,OACI,2BACJ,QACA,OACI,uBACJ,QACJ,QACJ,YACJ,WACJ,WACJ,UACNQ,KAAK,OAGf,QACItC,gBAAiBA"} \ No newline at end of file +{"version":3,"file":"group-detail-view.js","sources":["../../../src/mvc/groups/group-detail-view.js"],"names":["define","mod_toastr","mod_group_model","GroupDetailView","Backbone","View","extend","el","options","app","initialize","this","_","window","globalTS","groups","collection","model","get","group_id","render","fetchGroup","that","Group","id","fetch","success","console","log","error","response","responseJSON","err_msg","template","templateRow","$el","html","group","$","tooltip","css","join"],"mappings":"AAAAA,QACI,cACA,2CAEJ,SACIC,EACAC,GAIJ,GAAIC,GAAkBC,SAASC,KAAKC,QAChCC,GAAI,kBACJC,WACAC,IAAK,KAELC,WAA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AAiBA"} \ No newline at end of file diff --git a/static/toolshed/maps/mvc/groups/group-list-view.js.map b/static/toolshed/maps/mvc/groups/group-list-view.js.map index d124bbbe13d..211a49a2969 100644 --- a/static/toolshed/maps/mvc/groups/group-list-view.js.map +++ b/static/toolshed/maps/mvc/groups/group-list-view.js.map @@ -1 +1 @@ -{"version":3,"file":"group-list-view.js","sources":["../../../src/mvc/groups/group-list-view.js"],"names":["define","mod_toastr","mod_group_model","mod_group_row","GroupListView","Backbone","View","extend","el","defaults","initialize","options","this","_","that","window","globalTS","groups","collection","Groups","fetch","success","model","console","log","render","error","response","responseJSON","err_msg","$","hide","template","templateGroupsList","$el","html","length","models","renderRows","tooltip","css","groups_to_render","i","group","renderOne","rowView","GroupListRowView","find","append","tmpl_array","push","join"],"mappings":"AAAAA,QACI,cACA,0CACA,kDAED,SACCC,EACAC,EACAC,GAGJ,GAAIC,GAAgBC,SAASC,KAAKC,QAC9BC,GAAI,kBACJC,YAOAC,WAAa,SAAUC,GACnBC,KAAKD,QAAUE,EAAEJ,SAAUG,KAAKD,YAAeC,KAAKH,SAAUE,EAC9D,IAAIG,GAAOF,IACXG,QAAOC,SAASC,OAAOC,WAAa,GAAIhB,GAAgBiB,OACxDJ,OAAOC,SAASC,OAAOC,WAAWE,OAChCC,QAAS,SAAUC,GACjBC,QAAQC,IAAK,mBACbD,QAAQC,IAAKF,GACbR,EAAKW,UAEPC,MAAO,SAAUJ,EAAOK,GAElB1B,EAAWyB,MADyB,mBAA1BC,GAASC,aACDD,EAASC,aAAaC,QAEtB,yBAO9BT,MAAO,aAMPK,OAAQ,SAAWd,GACfC,KAAKD,QAAUE,EAAEN,OAAQK,KAAKD,QAASA,GACvCmB,EAAG,YAAaC,MAChB,IAAIC,GAAWpB,KAAKqB,oBACpBrB,MAAKsB,IAAIC,KAAMH,GAAYI,OAAQrB,OAAOC,SAASC,OAAOC,WAAWmB,OAAOD,UAC5ExB,KAAK0B,WAAYvB,OAAOC,SAASC,OAAOC,WAAWmB,QACnDP,EAAG,yBAA0BS,UAC7BT,EAAG,WAAYU,IAAK,WAAW,SAOnCF,WAAY,SAAUG,GAClB,IAAM,GAAIC,GAAI,EAAGA,EAAID,EAAiBL,OAAQM,IAAM,CAChD,GAAIC,GAAQF,EAAiBC,EAC7B9B,MAAKgC,WAAaD,MAAOA,MAQjCC,UAAW,SAAUjC,GACjB,GAAIkC,GAAU,GAAI1C,GAAc2C,iBAAkBnC,EAClDC,MAAKsB,IAAIa,KAAM,oBAAqBC,OAAQH,EAAQrC,KAyCxDyB,mBAAoB,WAuBhB,MAtBAgB,eAEAA,WAAWC,KAAK,qBAChBD,WAAWC,KAAK,UAChBD,WAAWC,KAAK,mDAChBD,WAAWC,KAAK,4BAChBD,WAAWC,KAAK,uCAChBD,WAAWC,KAAK,iBAChBD,WAAWC,KAAK,8CAChBD,WAAWC,KAAK,cAChBD,WAAWC,KAAK,sBAEhBD,WAAWC,KAAK,0BAChBD,WAAWC,KAAK,8BAChBD,WAAWC,KAAK,eAChBD,WAAWC,KAAK,mCAEhBD,WAAWC,KAAK,eAChBD,WAAWC,KAAK,YAChBD,WAAWC,KAAK,UAChBD,WAAWC,KAAK,UAETrC,EAAEmB,SAASiB,WAAWE,KAAK,OAK1C,QACI/C,cAAeA"} \ No newline at end of file +{"version":3,"file":"group-list-view.js","sources":["../../../src/mvc/groups/group-list-view.js"],"names":["define","mod_toastr","mod_group_model","mod_group_row","GroupListView","Backbone","View","extend","el","defaults","initialize","options","this","_","that","window","globalTS","groups","collection","Groups","fetch","success","model","console","log","render","error","response","responseJSON","err_msg","$","hide","template","templateGroupsList","$el","html","length","models","renderRows","tooltip","css","groups_to_render","i","group","renderOne","rowView","GroupListRowView","find","append","tmpl_array","push","join"],"mappings":"AAAAA,QACI,cACA,0CACA,kDAED,SACCC,EACAC,EACAC,GAGJ,GAAIC,GAAgBC,SAASC,KAAKC,QAC9BC,GAAI,kBACJC,YAOAC,WAAa,SAAUC,GACnBC,KAAKD,QAAUE,EAA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C,KAAK,mCAEhBD,EAAWC,KAAK,eAChBD,EAAWC,KAAK,YAChBD,EAAWC,KAAK,UAChBD,EAAWC,KAAK,UAETrC,EAAEmB,SAASiB,EAAWE,KAAK,OAK1C,QACI/C,cAAeA"} \ No newline at end of file diff --git a/static/toolshed/maps/mvc/groups/group-listrow-view.js.map b/static/toolshed/maps/mvc/groups/group-listrow-view.js.map index f7bc7285762..ef6cd2d6a1f 100644 --- a/static/toolshed/maps/mvc/groups/group-listrow-view.js.map +++ b/static/toolshed/maps/mvc/groups/group-listrow-view.js.map @@ -1 +1 @@ -{"version":3,"file":"group-listrow-view.js","sources":["../../../src/mvc/groups/group-listrow-view.js"],"names":["define","GroupListRowView","Backbone","View","extend","events","initialize","options","this","render","group","tmpl","templateRow","setElement","$el","show","_","template","join"],"mappings":"AAAAA,UACA,WAGA,GAAIC,GAAmBC,SAASC,KAAKC,QACjCC,UAEAC,WAAa,SAAUC,GACnBC,KAAKC,OAAQF,EAAQG,QAGzBD,OAAQ,SAAUC,GACd,GAAIC,GAAOH,KAAKI,aAGhB,OAFAJ,MAAKK,WAAWF,GAAQD,MAAMA,KAC9BF,KAAKM,IAAIC,OACFP,MAGXI,YAAa,WACT,MAAOI,GAAEC,UACD,iDACA,iFAEA,6CACA,2CACA,SACNC,KAAK,OAKf,QACIjB,iBAAkBA"} \ No newline at end of file +{"version":3,"file":"group-listrow-view.js","sources":["../../../src/mvc/groups/group-listrow-view.js"],"names":["define","GroupListRowView","Backbone","View","extend","events","initialize","options","this","render","group","tmpl","templateRow","setElement","$el","show","_","template","join"],"mappings":"AAAAA,UACA,WAGA,GAAIC,GAAmBC,SAASC,KAAKC,QACjCC,UAEAC,WAAa,SAAUC,GACnBC,KAAKC,OAAQF,EAAQG,QAGzBD,OAAQ,SAAUC,GACd,GAAIC,GAAOH,KAAKI,aAGhB,OAFAJ,MAAKK,WAAWF,GAAQD,MAAMA,KAC9BF,KAAKM,IAAIC,OACFP,MAGXI,YAAa,WACT,MAAOI,GAAEC,UACD,iDACA,2FAEA,6CACA,2CACA,SACNC,KAAK,OAKf,QACIjB,iBAAkBA"} \ No newline at end of file diff --git a/static/toolshed/maps/mvc/groups/group-model.js.map b/static/toolshed/maps/mvc/groups/group-model.js.map index 7cf16222049..eb3293e04b4 100644 --- a/static/toolshed/maps/mvc/groups/group-model.js.map +++ b/static/toolshed/maps/mvc/groups/group-model.js.map @@ -1 +1 @@ -{"version":3,"file":"group-model.js","sources":["../../../src/mvc/groups/group-model.js"],"names":["define","Group","Backbone","Model","extend","urlRoot","Groups","Collection","url","model"],"mappings":"AAAAA,UAAW,WAKP,GAAIC,GAAQC,SAASC,MAAMC,QACzBC,QAAS,gBAGPC,EAASJ,SAASK,WAAWH,QAC/BI,IAAK,cAELC,MAAOR,GAIb,QACIA,MAAOA,EACPK,OAAQA"} \ No newline at end of file +{"version":3,"file":"group-model.js","sources":["../../../src/mvc/groups/group-model.js"],"names":["define","Group","Backbone","Model","extend","urlRoot","Galaxy","root","Groups","Collection","url","model"],"mappings":"AAAAA,UAAW,WAKP,GAAIC,GAAQC,SAASC,MAAMC,QACzBC,QAASC,OAAOC,KAAO,eAGrBC,EAASN,SAASO,WAAWL,QAC/BM,IAAKJ,OAAOC,KAAO,aAEnBI,MAAOV,GAIb,QACIA,MAAOA,EACPO,OAAQA"} \ No newline at end of file diff --git a/static/toolshed/scripts/mvc/groups/group-detail-view.js b/static/toolshed/scripts/mvc/groups/group-detail-view.js index 0d24cd91c72..3ea9b8c6447 100644 --- a/static/toolshed/scripts/mvc/groups/group-detail-view.js +++ b/static/toolshed/scripts/mvc/groups/group-detail-view.js @@ -1,2 +1,2 @@ -define(["libs/toastr","toolshed/scripts/mvc/groups/group-model"],function(a,b){var c=Backbone.View.extend({el:"#groups_element",options:{},app:null,initialize:function(a){this.options=_.extend(this.options,a),this.app=window.globalTS.groups,null!==this.app.collection?(this.model=this.app.collection.get(this.options.group_id),this.render()):this.fetchGroup()},fetchGroup:function(c){var d=this;this.options=_.extend(this.options,c),this.model=new b.Group({id:this.options.group_id}),this.model.fetch({success:function(a){console.log("received data: "),console.log(a),d.render()},error:function(b,c){a.error("undefined"!=typeof c.responseJSON?c.responseJSON.err_msg:"An error occurred.")}})},render:function(){var a=this.templateRow();this.$el.html(a({group:this.model})),$("#center [data-toggle]").tooltip(),$("#center").css("overflow","auto")},templateRow:function(){return _.template(["
",'

<%= group.get("name") %>

','

','A group of <%= group.get("members").length %> members with <%= group.get("repositories").length %> repositories and a total of <%= group.get("total_downloads") %> combined repository clones.

',"

Members

",'',"","","","","","",'<% _.each(group.get("members"), function(member) { %>',"","","","","","<% }); %>","","
NameRepositoriesRegistered
","<%= member.username %>","",'<%= member.user_repos_count %>',"","<%= member.time_created %>","
","

Repositories

",'',"","","","","","","","","","","","",'<% _.each(group.get("repositories"), function(repo) { %>',"","","","","","",'",'","","","","<% }); %>","","
NameDescriptionClonesOwnerCategoriesCreatedUpdatedRatingVerified
",'<%= repo.name %>',"","<%= repo.description %>","","<%= repo.times_downloaded %>","","<%= repo.owner %>","","<% _.each((repo.categories), function(cat) { %>",'<%= cat.name %>
',"<% }); %>","
',"<%= repo.time_created %>","',"<%= repo.time_updated %>","","<%= repo.ratings_mean %>","","<%= repo.approved %>","
","
"].join(""))}});return{GroupDetailView:c}}); +define(["libs/toastr","toolshed/scripts/mvc/groups/group-model"],function(a,b){var c=Backbone.View.extend({el:"#groups_element",options:{},app:null,initialize:function(a){this.options=_.extend(this.options,a),this.app=window.globalTS.groups,null!==this.app.collection?(this.model=this.app.collection.get(this.options.group_id),this.render()):this.fetchGroup()},fetchGroup:function(c){var d=this;this.options=_.extend(this.options,c),this.model=new b.Group({id:this.options.group_id}),this.model.fetch({success:function(a){console.log("received data: "),console.log(a),d.render()},error:function(b,c){a.error("undefined"!=typeof c.responseJSON?c.responseJSON.err_msg:"An error occurred.")}})},render:function(){var a=this.templateRow();this.$el.html(a({group:this.model})),$("#center [data-toggle]").tooltip(),$("#center").css("overflow","auto")},templateRow:function(){return _.template(["
",'

<%= _.escape(group.get("name")) %>

','

','A group of <%= group.get("members").length %> members with <%= group.get("repositories").length %> repositories and a total of <%= group.get("total_downloads") %> combined repository clones.

',"

Members

",'',"","","","","","",'<% _.each(group.get("members"), function(member) { %>',"","","","","","<% }); %>","","
NameRepositoriesRegistered
","<%= _.escape(member.username) %>","",'<%= member.user_repos_count %>',"","<%= member.time_created %>","
","

Repositories

",'',"","","","","","","","","","","","",'<% _.each(group.get("repositories"), function(repo) { %>',"","","","","","",'",'","","","","<% }); %>","","
NameDescriptionClonesOwnerCategoriesCreatedUpdatedRatingVerified
",'<%= _.escape(repo.name) %>',"","<%= _.escape(repo.description) %>","","<%= repo.times_downloaded %>","","<%= _.escape(repo.owner) %>","","<% _.each((repo.categories), function(cat) { %>",'<%= cat.name %>
',"<% }); %>","
',"<%= repo.time_created %>","',"<%= repo.time_updated %>","","<%= repo.ratings_mean %>","","<%= repo.approved %>","
","
"].join(""))}});return{GroupDetailView:c}}); //# sourceMappingURL=../../../maps/mvc/groups/group-detail-view.js.map \ No newline at end of file diff --git a/static/toolshed/scripts/mvc/groups/group-list-view.js b/static/toolshed/scripts/mvc/groups/group-list-view.js index 49cd4072dfe..860644424bd 100644 --- a/static/toolshed/scripts/mvc/groups/group-list-view.js +++ b/static/toolshed/scripts/mvc/groups/group-list-view.js @@ -1,2 +1,2 @@ -define(["libs/toastr","toolshed/scripts/mvc/groups/group-model","toolshed/scripts/mvc/groups/group-listrow-view"],function(a,b,c){var d=Backbone.View.extend({el:"#groups_element",defaults:{},initialize:function(c){this.options=_.defaults(this.options||{},this.defaults,c);var d=this;window.globalTS.groups.collection=new b.Groups,window.globalTS.groups.collection.fetch({success:function(a){console.log("received data: "),console.log(a),d.render()},error:function(b,c){a.error("undefined"!=typeof c.responseJSON?c.responseJSON.err_msg:"An error occurred.")}})},fetch:function(){},render:function(a){this.options=_.extend(this.options,a),$(".tooltip").hide();var b=this.templateGroupsList();this.$el.html(b({length:window.globalTS.groups.collection.models.length})),this.renderRows(window.globalTS.groups.collection.models),$("#center [data-toggle]").tooltip(),$("#center").css("overflow","auto")},renderRows:function(a){for(var b=0;b'),tmpl_array.push(""),tmpl_array.push('
'),tmpl_array.push("<% if(length === 0) { %>"),tmpl_array.push("
There are no groups yet.
"),tmpl_array.push("<% } else{ %>"),tmpl_array.push(''),tmpl_array.push(" "),tmpl_array.push(" "),tmpl_array.push(" "),tmpl_array.push(" "),tmpl_array.push(" "),tmpl_array.push(' '),tmpl_array.push(" "),tmpl_array.push("
NameMembersRepositories
"),tmpl_array.push("<% }%>"),tmpl_array.push("
"),_.template(tmpl_array.join(""))}});return{GroupListView:d}}); +define(["libs/toastr","toolshed/scripts/mvc/groups/group-model","toolshed/scripts/mvc/groups/group-listrow-view"],function(a,b,c){var d=Backbone.View.extend({el:"#groups_element",defaults:{},initialize:function(c){this.options=_.defaults(this.options||{},this.defaults,c);var d=this;window.globalTS.groups.collection=new b.Groups,window.globalTS.groups.collection.fetch({success:function(a){console.log("received data: "),console.log(a),d.render()},error:function(b,c){a.error("undefined"!=typeof c.responseJSON?c.responseJSON.err_msg:"An error occurred.")}})},fetch:function(){},render:function(a){this.options=_.extend(this.options,a),$(".tooltip").hide();var b=this.templateGroupsList();this.$el.html(b({length:window.globalTS.groups.collection.models.length})),this.renderRows(window.globalTS.groups.collection.models),$("#center [data-toggle]").tooltip(),$("#center").css("overflow","auto")},renderRows:function(a){for(var b=0;b'),a.push(""),a.push('
'),a.push("<% if(length === 0) { %>"),a.push("
There are no groups yet.
"),a.push("<% } else{ %>"),a.push(''),a.push(" "),a.push(" "),a.push(" "),a.push(" "),a.push(" "),a.push(' '),a.push(" "),a.push("
NameMembersRepositories
"),a.push("<% }%>"),a.push("
"),_.template(a.join(""))}});return{GroupListView:d}}); //# sourceMappingURL=../../../maps/mvc/groups/group-list-view.js.map \ No newline at end of file diff --git a/static/toolshed/scripts/mvc/groups/group-listrow-view.js b/static/toolshed/scripts/mvc/groups/group-listrow-view.js index 2642c3d034c..a2af2c4f8cb 100644 --- a/static/toolshed/scripts/mvc/groups/group-listrow-view.js +++ b/static/toolshed/scripts/mvc/groups/group-listrow-view.js @@ -1,2 +1,2 @@ -define([],function(){var a=Backbone.View.extend({events:{},initialize:function(a){this.render(a.group)},render:function(a){var b=this.templateRow();return this.setElement(b({group:a})),this.$el.show(),this},templateRow:function(){return _.template(['">','"><%= group.get("name") %>','<%= group.get("total_members") %>','<%= group.get("total_repos") %>',""].join(""))}});return{GroupListRowView:a}}); +define([],function(){var a=Backbone.View.extend({events:{},initialize:function(a){this.render(a.group)},render:function(a){var b=this.templateRow();return this.setElement(b({group:a})),this.$el.show(),this},templateRow:function(){return _.template(['">','"><%= _.escape(group.get("name")) %>','<%= group.get("total_members") %>','<%= group.get("total_repos") %>',""].join(""))}});return{GroupListRowView:a}}); //# sourceMappingURL=../../../maps/mvc/groups/group-listrow-view.js.map \ No newline at end of file diff --git a/static/toolshed/scripts/mvc/groups/group-model.js b/static/toolshed/scripts/mvc/groups/group-model.js index ab732aa056b..19d1a9e0169 100644 --- a/static/toolshed/scripts/mvc/groups/group-model.js +++ b/static/toolshed/scripts/mvc/groups/group-model.js @@ -1,2 +1,2 @@ -define([],function(){var a=Backbone.Model.extend({urlRoot:"/api/groups"}),b=Backbone.Collection.extend({url:"/api/groups",model:a});return{Group:a,Groups:b}}); +define([],function(){var a=Backbone.Model.extend({urlRoot:Galaxy.root+"api/groups"}),b=Backbone.Collection.extend({url:Galaxy.root+"api/groups",model:a});return{Group:a,Groups:b}}); //# sourceMappingURL=../../../maps/mvc/groups/group-model.js.map \ No newline at end of file