mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
cleaned up all the cells. there is a cell for pretty much everything.
This commit is contained in:
parent
ac3582d5c4
commit
70cfa5e685
42 changed files with 432 additions and 261 deletions
13
UI/Cells/RelativeDateCell.js
Normal file
13
UI/Cells/RelativeDateCell.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
define(['app'], function () {
|
||||
NzbDrone.Cells.RelativeDateCell = Backgrid.Cell.extend({
|
||||
|
||||
render: function () {
|
||||
|
||||
var date = this.model.get(this.column.get('name'));
|
||||
this.$el.html(Date.create(date).relative());
|
||||
|
||||
return this;
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue