parent
932012d7f9
commit
1c4a687854
@ -0,0 +1,10 @@
|
|||||||
|
'use strict';
|
||||||
|
define(
|
||||||
|
[
|
||||||
|
'marionette'
|
||||||
|
], function (Marionette) {
|
||||||
|
|
||||||
|
return Marionette.ItemView.extend({
|
||||||
|
template: 'History/Details/HistoryDetailsViewTemplate'
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,27 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
define(
|
||||||
|
[
|
||||||
|
'app',
|
||||||
|
'Cells/NzbDroneCell'
|
||||||
|
], function (App, NzbDroneCell) {
|
||||||
|
return NzbDroneCell.extend({
|
||||||
|
|
||||||
|
className: 'history-details-cell',
|
||||||
|
|
||||||
|
events: {
|
||||||
|
'click': '_showDetails'
|
||||||
|
},
|
||||||
|
|
||||||
|
render: function () {
|
||||||
|
this.$el.empty();
|
||||||
|
this.$el.html('<i class="icon-info-sign"></i>');
|
||||||
|
|
||||||
|
return this;
|
||||||
|
},
|
||||||
|
|
||||||
|
_showDetails: function () {
|
||||||
|
App.vent.trigger(App.Commands.ShowHistoryDetails, { history: this.model });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in new issue