You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/src/UI/System/Info/DiskSpace/DiskSpacePathCell.js

22 lines
434 B

var Backgrid = require('backgrid');
module.exports = Backgrid.Cell.extend({
className : 'disk-space-path-cell',
render : function() {
this.$el.empty();
var path = this.model.get('path');
var label = this.model.get('label');
var contents = path;
if (label) {
contents += ' ({0})'.format(label);
}
this.$el.html(contents);
return this;
}
});