1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 09:37:12 +00:00

Minor CSS update

This commit is contained in:
kay.one 2012-02-29 00:25:41 -08:00
parent dc4e45f72d
commit 6d7e886e8c
8 changed files with 27 additions and 37 deletions

View file

@ -728,7 +728,7 @@ public void Add_daily_show_episodes()
//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));

View file

@ -30,12 +30,13 @@ public void Add_new_series(bool useSeasonFolder)
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 @@ public void Add_new_series(bool useSeasonFolder)
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 @@ public void Add_new_series(bool useSeasonFolder)
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,8 +825,8 @@ public void delete_series_should_delete_all_rows_related_to_the_series()
{
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();

View file

@ -103,7 +103,7 @@ public virtual Series UpdateSeriesInfo(int seriesId)
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 @@ public virtual void AddSeries(string path, int tvDbSeriesId, int qualityProfileI
repoSeries.Path = path;
repoSeries.Monitored = true; //New shows should be monitored
repoSeries.QualityProfileId = qualityProfileId;
repoSeries.Title = title;
if (qualityProfileId == 0)
repoSeries.QualityProfileId = _configProvider.DefaultQualityProfile;

View file

@ -13,10 +13,6 @@
cursor: pointer;
}
.statusImage:hover {
background-color: white;
}
/* Custom Grid */
.seriesTable
{
@ -45,13 +41,13 @@
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
@ -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*/

View file

@ -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

View file

@ -124,7 +124,7 @@ public JsonResult AddExistingSeries(string path, string seriesName, int seriesId
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");

View file

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

View file

@ -47,20 +47,6 @@
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) {