parent
402a9e1ee0
commit
fd718b61ac
@ -0,0 +1,31 @@
|
||||
using System.Linq;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Core.Qualities;
|
||||
|
||||
namespace NzbDrone.Core.Parser.Model
|
||||
{
|
||||
public class ParsedMovieInfo
|
||||
{
|
||||
public string MovieTitle { get; set; }
|
||||
public SeriesTitleInfo MovieTitleInfo { get; set; }
|
||||
public QualityModel Quality { get; set; }
|
||||
public int SeasonNumber { get; set; }
|
||||
public Language Language { get; set; }
|
||||
public bool FullSeason { get; set; }
|
||||
public bool Special { get; set; }
|
||||
public string ReleaseGroup { get; set; }
|
||||
public string ReleaseHash { get; set; }
|
||||
public string Edition { get; set;}
|
||||
public int Year { get; set; }
|
||||
|
||||
public ParsedMovieInfo()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{0} - {1} {2}", MovieTitle, MovieTitleInfo.Year, Quality);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
var Backgrid = require('backgrid');
|
||||
var Marionette = require('marionette');
|
||||
require('bootstrap');
|
||||
|
||||
module.exports = Backgrid.Cell.extend({
|
||||
className : 'edition-cell',
|
||||
//template : 'Cells/EditionCellTemplate',
|
||||
|
||||
render : function() {
|
||||
|
||||
var edition = this.model.get(this.column.get('name'));
|
||||
if (!edition) {
|
||||
return this;
|
||||
}
|
||||
var cut = false;
|
||||
|
||||
if (edition.toLowerCase().contains("cut")) {
|
||||
cut = true;
|
||||
}
|
||||
|
||||
//this.templateFunction = Marionette.TemplateCache.get(this.template);
|
||||
|
||||
//var html = this.templateFunction(edition);
|
||||
if (cut) {
|
||||
this.$el.html('<i class="icon-sonarr-form-cut"/ title="{0}">'.format(edition));
|
||||
} else {
|
||||
this.$el.html('<i class="icon-sonarr-form-info"/ title="{0}">'.format(edition));
|
||||
}
|
||||
|
||||
/*this.$el.popover({
|
||||
content : html,
|
||||
html : true,
|
||||
trigger : 'hover',
|
||||
title : this.column.get('title'),
|
||||
placement : 'left',
|
||||
container : this.$el
|
||||
});*/
|
||||
|
||||
return this;
|
||||
}
|
||||
});
|
@ -0,0 +1,5 @@
|
||||
<ul>
|
||||
<li>
|
||||
{{this}}
|
||||
</li>
|
||||
</ul>
|
Loading…
Reference in new issue