mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 00:32:57 -07:00
Added an application URL in the customization settings #1513
This commit is contained in:
parent
5472baff24
commit
9556ed1b34
7 changed files with 44 additions and 9 deletions
|
@ -7,10 +7,11 @@ using Ombi.Store.Entities.Requests;
|
|||
namespace Ombi.Notifications
|
||||
{
|
||||
public class NotificationMessageCurlys
|
||||
{
|
||||
{
|
||||
|
||||
public void Setup(FullBaseRequest req, CustomizationSettings s)
|
||||
{
|
||||
ApplicationUrl = s.ApplicationUrl;
|
||||
ApplicationName = string.IsNullOrEmpty(s.ApplicationName) ? "Ombi" : s.ApplicationName;
|
||||
RequestedUser = string.IsNullOrEmpty(req.RequestedUser.Alias)
|
||||
? req.RequestedUser.UserName
|
||||
|
@ -25,6 +26,7 @@ namespace Ombi.Notifications
|
|||
|
||||
public void Setup(ChildRequests req, CustomizationSettings s)
|
||||
{
|
||||
ApplicationUrl = s.ApplicationUrl;
|
||||
ApplicationName = string.IsNullOrEmpty(s.ApplicationName) ? "Ombi" : s.ApplicationName;
|
||||
RequestedUser = string.IsNullOrEmpty(req.RequestedUser.Alias)
|
||||
? req.RequestedUser.UserName
|
||||
|
@ -40,10 +42,11 @@ namespace Ombi.Notifications
|
|||
|
||||
public void Setup(OmbiUser user, CustomizationSettings s)
|
||||
{
|
||||
ApplicationUrl = s.ApplicationUrl;
|
||||
ApplicationName = string.IsNullOrEmpty(s.ApplicationName) ? "Ombi" : s.ApplicationName;
|
||||
RequestedUser = user.UserName;
|
||||
}
|
||||
|
||||
|
||||
// User Defined
|
||||
public string RequestedUser { get; set; }
|
||||
public string Title { get; set; }
|
||||
|
@ -56,6 +59,7 @@ namespace Ombi.Notifications
|
|||
public string SeasonsList { get; set; }
|
||||
public string PosterImage { get; set; }
|
||||
public string ApplicationName { get; set; }
|
||||
public string ApplicationUrl { get; set; }
|
||||
|
||||
// System Defined
|
||||
private string LongDate => DateTime.Now.ToString("D");
|
||||
|
@ -80,6 +84,7 @@ namespace Ombi.Notifications
|
|||
{nameof(SeasonsList),SeasonsList},
|
||||
{nameof(PosterImage),PosterImage},
|
||||
{nameof(ApplicationName),ApplicationName},
|
||||
{nameof(ApplicationUrl),ApplicationUrl},
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue