diff --git a/NzbDrone.Core/History/HistoryService.cs b/NzbDrone.Core/History/HistoryService.cs index 48f7ebbf8..40f637fcf 100644 --- a/NzbDrone.Core/History/HistoryService.cs +++ b/NzbDrone.Core/History/HistoryService.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using NLog; using NzbDrone.Common.Messaging; @@ -89,9 +90,12 @@ namespace NzbDrone.Core.History Quality = message.EpisodeFile.Quality, SourceTitle = message.EpisodeFile.Path, SeriesId = message.EpisodeFile.SeriesId, - EpisodeId = episode.Id, + EpisodeId = episode.Id }; + history.Data.Add("Path", message.EpisodeFile.Path); + history.Data.Add("Filename", Path.GetFileNameWithoutExtension(message.EpisodeFile.Path)); + _historyRepository.Insert(history); } } diff --git a/NzbDrone.Core/MediaFiles/Events/EpisodeImportedEvent.cs b/NzbDrone.Core/MediaFiles/Events/EpisodeImportedEvent.cs index e9d0eb458..9c8e59cdc 100644 --- a/NzbDrone.Core/MediaFiles/Events/EpisodeImportedEvent.cs +++ b/NzbDrone.Core/MediaFiles/Events/EpisodeImportedEvent.cs @@ -2,7 +2,7 @@ namespace NzbDrone.Core.MediaFiles.Events { - public class EpisodeImportedEvent:IEvent + public class EpisodeImportedEvent : IEvent { public EpisodeFile EpisodeFile { get; private set; } diff --git a/UI/Cells/cells.less b/UI/Cells/cells.less index fb55fb928..0bf8a9097 100644 --- a/UI/Cells/cells.less +++ b/UI/Cells/cells.less @@ -47,4 +47,13 @@ td.episode-status-cell, td.quality-cell { .badge { font-size: 9px; } +} + +.history-details-cell { + .clickable(); + width: 10px; + + i { + .clickable(); + } } \ No newline at end of file diff --git a/UI/History/Details/HistoryDetailsView.js b/UI/History/Details/HistoryDetailsView.js new file mode 100644 index 000000000..b7c8e1a9d --- /dev/null +++ b/UI/History/Details/HistoryDetailsView.js @@ -0,0 +1,10 @@ +'use strict'; +define( + [ + 'marionette' + ], function (Marionette) { + + return Marionette.ItemView.extend({ + template: 'History/Details/HistoryDetailsViewTemplate' + }); + }); diff --git a/UI/History/Details/HistoryDetailsViewTemplate.html b/UI/History/Details/HistoryDetailsViewTemplate.html new file mode 100644 index 000000000..832573e9e --- /dev/null +++ b/UI/History/Details/HistoryDetailsViewTemplate.html @@ -0,0 +1,58 @@ +