added files missed duo to aggresive .gitignore

pull/2/head
kay.one 12 years ago
parent 44696a15e7
commit eae414e8be

4
.gitignore vendored

@ -14,8 +14,8 @@ TestResults
*.sln.docstates *.sln.docstates
# Build results # Build results
[Dd]ebug/ bin/**/[Dd]ebug/
[Rr]elease/ bin/**/[Rr]elease/
*_i.c *_i.c
*_p.c *_p.c
*.ilk *.ilk

@ -0,0 +1,9 @@
"use strict";
define(['app', 'Release/Model'], function () {
NzbDrone.Release.Collection = Backbone.PageableCollection.extend({
url : NzbDrone.Constants.ApiRoot + '/release',
model: NzbDrone.Release.Model,
mode : 'client'
});
});

@ -0,0 +1,83 @@
"use strict";
define([
'app',
'Release/Collection',
'Shared/SpinnerView',
'Shared/Toolbar/ToolbarLayout'
],
function () {
NzbDrone.Release.Layout = Backbone.Marionette.Layout.extend({
template: 'Release/LayoutTemplate',
regions: {
grid : '#x-grid',
toolbar: '#x-toolbar'
},
columns: [
{
name : 'age',
label : 'Age',
sortable: true,
cell : Backgrid.IntegerCell
},
{
name : 'size',
label : 'Size',
sortable: true,
cell : Backgrid.IntegerCell
},
{
name : 'title',
label : 'Title',
sortable: true,
cell : Backgrid.StringCell
},
{
name : 'seasonNumber',
label: 'season',
cell : Backgrid.IntegerCell
},
{
name : 'episodeNumber',
label: 'episode',
cell : Backgrid.StringCell
},
{
name : 'approved',
label: 'Approved',
cell : Backgrid.BooleanCell
}
],
showTable: function () {
if (!this.isClosed) {
this.grid.show(new Backgrid.Grid(
{
row : Backgrid.Row,
columns : this.columns,
collection: this.collection,
className : 'table table-hover'
}));
}
},
initialize: function () {
this.collection = new NzbDrone.Release.Collection();
this.fetchPromise = this.collection.fetch();
},
onShow: function () {
var self = this;
this.grid.show(new NzbDrone.Shared.SpinnerView());
this.fetchPromise.done(function () {
self.showTable();
});
//this.toolbar.show(new NzbDrone.Shared.Toolbar.ToolbarLayout({right: [ viewButtons], context: this}));
}
});
});

@ -0,0 +1,7 @@
<div id="x-toolbar"></div>
<div class="row">
<div class="span12">
<div id="x-grid"></div>
</div>
</div>

@ -0,0 +1,14 @@
"use strict";
define(['app'], function (app) {
NzbDrone.Release.Model = Backbone.Model.extend({
/* mutators: {
seasonNumber: function () {
return this.get('episode').seasonNumber;
},
paddedEpisodeNumber: function () {
return this.get('episode').episodeNumber.pad(2);
}
}*/
});
});
Loading…
Cancel
Save