Minor CSS update

pull/19/head
kay.one 13 years ago
parent dc4e45f72d
commit 6d7e886e8c

@ -728,7 +728,7 @@ namespace NzbDrone.Core.Test.ProviderTests
//act
var seriesProvider = Mocker.Resolve<SeriesProvider>();
seriesProvider.AddSeries("c:\\test\\", tvDbSeriesId, 1);
seriesProvider.AddSeries("Test Series","c:\\test\\", tvDbSeriesId, 1);
var episodeProvider = Mocker.Resolve<EpisodeProvider>();
episodeProvider.RefreshEpisodeInfo(seriesProvider.GetSeries(tvDbSeriesId));

@ -30,12 +30,13 @@ namespace NzbDrone.Core.Test.ProviderTests
Db.InsertMany(fakeProfiles);
const string path = "C:\\Test\\";
const string title = "Test Title";
const int tvDbId = 1234;
const int qualityProfileId = 2;
//Act
var seriesProvider = Mocker.Resolve<SeriesProvider>();
seriesProvider.AddSeries(path, tvDbId, qualityProfileId);
seriesProvider.AddSeries(title, path, tvDbId, qualityProfileId);
//Assert
var series = seriesProvider.GetAllSeries();
@ -43,6 +44,7 @@ namespace NzbDrone.Core.Test.ProviderTests
Assert.AreEqual(path, series.First().Path);
Assert.AreEqual(tvDbId, series.First().SeriesId);
Assert.AreEqual(qualityProfileId, series.First().QualityProfileId);
Assert.AreEqual(title, series.First().Title);
series.First().SeasonFolder.Should().Be(useSeasonFolder);
}
@ -52,7 +54,7 @@ namespace NzbDrone.Core.Test.ProviderTests
public void add_series_should_fail_if_series_is_less_than_zero(int seriesId)
{
WithRealDb();
Assert.Throws<ArgumentOutOfRangeException>(() => Mocker.Resolve<SeriesProvider>().AddSeries("C:\\Test", seriesId, 1));
Assert.Throws<ArgumentOutOfRangeException>(() => Mocker.Resolve<SeriesProvider>().AddSeries("Title", "C:\\Test", seriesId, 1));
}
[Test]
@ -823,11 +825,11 @@ namespace NzbDrone.Core.Test.ProviderTests
{
var fakeSeries = Builder<Series>.CreateListOfSize(3).Build();
var fakeEpisodes = Builder<Episode>.CreateListOfSize(30)
.TheFirst(10).With(c=>c.SeriesId = fakeSeries[0].SeriesId)
.TheNext(10).With(c=>c.SeriesId = fakeSeries[1].SeriesId)
.TheFirst(10).With(c => c.SeriesId = fakeSeries[0].SeriesId)
.TheNext(10).With(c => c.SeriesId = fakeSeries[1].SeriesId)
.TheNext(10).With(c => c.SeriesId = fakeSeries[2].SeriesId)
.Build();
}

@ -103,7 +103,7 @@ namespace NzbDrone.Core.Providers
return series;
}
public virtual void AddSeries(string path, int tvDbSeriesId, int qualityProfileId)
public virtual void AddSeries(string title, string path, int tvDbSeriesId, int qualityProfileId)
{
Logger.Info("Adding Series [{0}] Path: [{1}]", tvDbSeriesId, path);
@ -117,6 +117,7 @@ namespace NzbDrone.Core.Providers
repoSeries.Path = path;
repoSeries.Monitored = true; //New shows should be monitored
repoSeries.QualityProfileId = qualityProfileId;
repoSeries.Title = title;
if (qualityProfileId == 0)
repoSeries.QualityProfileId = _configProvider.DefaultQualityProfile;

@ -13,10 +13,6 @@
cursor: pointer;
}
.statusImage:hover {
background-color: white;
}
/* Custom Grid */
.seriesTable
{
@ -45,15 +41,15 @@
padding: 0px 8px 0px 8px;
}
.title-row
.title-row td
{
font-family: "Segoe UI Light" , "Open Sans" , "Segoe UI" , sans-serif;
font-size: 17px;
background-color: grey;
font-size: 20px;
background-color: #F1EDED;
font-weight: lighter;
color: white;
color: #3C3C3C;
}
.detail-row
{
display: none;
@ -68,14 +64,15 @@
/* Episode Grid Row Colouring */
.episodeIgnored
{
background: lightgray;
background: rgb(229, 228, 228);
opacity: 0.7;
}
.episodeMissing
{
background-color: #f5c5c5;
background-color: #f5d6d6;
}
/*Hidden Grid to prevent FOUSC*/

@ -11,7 +11,7 @@
margin-right: 12px;
padding-left: 2px;
padding-top: 2px;
border-left: 1px solid #065EFE;
border-left: 7px solid #F1EDED;
}
.sub-menu a

@ -124,7 +124,7 @@ namespace NzbDrone.Web.Controllers
if (seriesId == 0 || String.IsNullOrWhiteSpace(seriesName))
return JsonNotificationResult.Error("Add Existing series failed.", "Invalid Series information");
_seriesProvider.AddSeries(path, seriesId, qualityProfileId);
_seriesProvider.AddSeries(seriesName,path, seriesId, qualityProfileId);
ScanNewSeries();
return JsonNotificationResult.Info(seriesName, "Was added successfully");

@ -33,6 +33,10 @@
text-decoration: none;
}
.seasonToggleLabel:hover {
color: #065EFE;
}
.seasonToggleTop .ignoredEpisodesMaster
{
padding-left: 0px;

@ -46,21 +46,7 @@
{
height: 28px;
}
.editButton, .deleteButton
{
width: 18px;
height: 18px;
padding: 3px 1px;
margin: 0px;
vertical-align: middle;
}
.editButton:hover, .deleteButton:hover
{
background-color: #065EFE;
}
.commandsColumn, .statusColumn
{
text-align: center;
@ -192,8 +178,8 @@
}
}, //Episodes
{ sWidth: '50px', "mDataProp": "HasBanner", "bSortable": false, "fnRender": function (row) {
return "<img src='../../Content/Images/settings.png' class='editButton' value='" + row.aData["SeriesId"] + "' rel='" + row.aData["Title"] + "' />" +
"<img src='../../Content/Images/close.png' class='deleteButton' value='" + row.aData["SeriesId"] + "' rel='" + row.aData["Title"] + "'/>";
return "<img src='../../Content/Images/settings.png' class='editButton gridAction' value='" + row.aData["SeriesId"] + "' rel='" + row.aData["Title"] + "' />" +
"<img src='../../Content/Images/close.png' class='deleteButton gridAction' value='" + row.aData["SeriesId"] + "' rel='" + row.aData["Title"] + "'/>";
}
}, //Commands
{ sWidth: '60px', "mDataProp": "Details", "bSortable": false, "bVisible": false, "fnRender": function (row) {

Loading…
Cancel
Save