-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add layout and render body component (#12)
* Add layout and render body component * Fix button UI
- Loading branch information
1 parent
fe62a71
commit 0199953
Showing
11 changed files
with
455 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
namespace api.emails; | ||
public static class EmailsUtils | ||
{ | ||
public const string HelloWorldTemplate = "HelloWorld.cshtml"; | ||
public const string ComplexHelloWorldTemplate = "ComplexHelloWorld.cshtml"; | ||
public const string StatusChangeTemplate = "StatusChange.cshtml"; | ||
|
||
internal static readonly string TemplateEmbeddedResourceNamespace = "api.emails.Views."; | ||
} |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
emails/Models/EmailBaseModel.cs → emails/Models/LayoutEmailBaseModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
| ||
namespace api.emails.Models; | ||
|
||
public class EmailBaseModel | ||
public class LayoutEmailBaseModel | ||
{ | ||
public string Title { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
| ||
namespace api.emails.Models; | ||
|
||
public class StatusChangeModel : LayoutEmailBaseModel | ||
{ | ||
/// <summary> | ||
/// Example: "Dear ACCOUNT_NAME," | ||
/// </summary> | ||
public string Salutation { get; set; } | ||
|
||
/// <summary> | ||
/// Example "The post « POST_NAME » was placed in the status of " | ||
/// </summary> | ||
public string StatusHeaderText { get; set; } | ||
|
||
/// <summary> | ||
/// Example: "refused" | ||
/// </summary> | ||
public string StatusNameText { get; set; } | ||
|
||
/// <summary> | ||
/// if null should not render the refusal reason | ||
/// </summary> | ||
public string? StatusRefusalReason { get; set; } | ||
|
||
/// <summary> | ||
/// Example "Reason for refusal :" | ||
/// </summary> | ||
public string StatusRefusalHeader { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// Example "See publication" | ||
/// </summary> | ||
public string ButtonSeePublicationText { get; set; } | ||
|
||
public Uri ButtonLink { get; set; } | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.