Skip to content

Commit

Permalink
refactor: minor branding refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
swagfin committed Nov 26, 2023
1 parent 836b3b3 commit 4adffd7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SemanticBackup/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Meta -->
<meta name="description" content="SEMANTIC BACKUP | BACKUP CLIENT">
<meta name="author" content="CRUDSOFT TECHNOLOGIES">
<meta name="author" content="Github | Swagfin/SemanticBackup">

<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="/assets/img/favicon.png">
Expand Down
2 changes: 1 addition & 1 deletion SemanticBackup/Pages/Shared/_LayoutNoDirectory.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Meta -->
<meta name="description" content="SEMANTIC BACKUP | BACKUP CLIENT">
<meta name="author" content="CRUDSOFT TECHNOLOGIES">
<meta name="author" content="Github | Swagfin/SemanticBackup">

<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="/assets/img/favicon.png">
Expand Down
2 changes: 1 addition & 1 deletion SemanticBackup/Pages/Shared/_LayoutNotLoggedIn.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Meta -->
<meta name="description" content="SEMANTIC BACKUP | SIGN IN">
<meta name="author" content="CRUDSOFT TECHNOLOGIES">
<meta name="author" content="Github | Swagfin/SemanticBackup">

<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="/assets/img/favicon.png">
Expand Down
4 changes: 2 additions & 2 deletions SemanticBackup/Services/StatusNotificationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private async Task SendBackupRecordEmailNotificationAsync(BackupRecord backupRec
if (!resourceGroup.NotifyOnErrorBackups)
return; //Disabled
string subject = $"[{resourceGroup.Name}/{backupRecord.Name}] Database Backup Failed";
string emailBody = $"<h3>[{resourceGroup.Name}/{backupRecord.Name}] Backup Run</h3> <br/> <p> <b>DATABASE: </b> {backupRecord.Name} <br/> <b>Resource Group: </b> {resourceGroup.Name} <br/> <b>Backup Date Utc: </b> {backupRecord.RegisteredDateUTC:yyyy-MM-dd HH:mm:ss} <br/> <b>Execution Status: </b> <span style='color:red;padding:3px'>{backupRecord.BackupStatus}</span> <br/> <b>Ref No #: </b> <span style='color:brown;padding:2px'>{backupRecord.Id}</span> </p> <p> Execution Message: <b><i>{backupRecord.ExecutionMessage}</i></b></p> <br/><br/><br/><br> <span style='color:gray'>Powered By Crudsoft Technologies <br/>email: [email protected]</span>";
string emailBody = $"<h3>[{resourceGroup.Name}/{backupRecord.Name}] Backup Run</h3> <br/> <p> <b>DATABASE: </b> {backupRecord.Name} <br/> <b>Resource Group: </b> {resourceGroup.Name} <br/> <b>Backup Date Utc: </b> {backupRecord.RegisteredDateUTC:yyyy-MM-dd HH:mm:ss} <br/> <b>Execution Status: </b> <span style='color:red;padding:3px'>{backupRecord.BackupStatus}</span> <br/> <b>Ref No #: </b> <span style='color:brown;padding:2px'>{backupRecord.Id}</span> </p> <p> Execution Message: <b><i>{backupRecord.ExecutionMessage}</i></b></p> <br/><br/><br/><br> <span style='color:gray'>Powered By Semantic Backup {Program.AppVersion}</span>";
List<string> destinations = GetValidDestinations(resourceGroup.NotifyEmailDestinations);
await SendEmailAsync(subject, emailBody, destinations);
}
Expand Down Expand Up @@ -96,7 +96,7 @@ private async Task SendContentDeliveryNotificationAsync(BackupRecordDelivery rec
return; //Disabled
//proceed
string subject = $"[{resourceGroup.Name}/{backupRecord.Name}] {record.DeliveryType} Failed";
string emailBody = $"<h3>[{resourceGroup.Name}/{backupRecord.Name}] {record.DeliveryType} Failed</h3> <br/> <p> <b>DELIVERY TYPE: </b> {record.DeliveryType} <br/> <b>DATABASE: </b> {backupRecord.Name} <br/> <b>Resource Group: </b> {resourceGroup.Name} <br/> <b>Backup Date Utc: </b> {backupRecord.RegisteredDateUTC:yyyy-MM-dd HH:mm:ss} <br/> <br/> <b>Execution Status: </b> <span style='color:red;padding:3px'>{record.CurrentStatus}</span> <br/><br/> <b>Ref No #: </b> <span style='color:brown;padding:2px'>{record.Id}</span> <br/> </p> <p> Execution Message: <b><i>{record.ExecutionMessage}</i></b></p> <br/><br/><br/><br> <span style='color:gray'>Powered By Crudsoft Technologies <br/>email: [email protected]</span>";
string emailBody = $"<h3>[{resourceGroup.Name}/{backupRecord.Name}] {record.DeliveryType} Failed</h3> <br/> <p> <b>DELIVERY TYPE: </b> {record.DeliveryType} <br/> <b>DATABASE: </b> {backupRecord.Name} <br/> <b>Resource Group: </b> {resourceGroup.Name} <br/> <b>Backup Date Utc: </b> {backupRecord.RegisteredDateUTC:yyyy-MM-dd HH:mm:ss} <br/> <br/> <b>Execution Status: </b> <span style='color:red;padding:3px'>{record.CurrentStatus}</span> <br/><br/> <b>Ref No #: </b> <span style='color:brown;padding:2px'>{record.Id}</span> <br/> </p> <p> Execution Message: <b><i>{record.ExecutionMessage}</i></b></p> <br/><br/><br/><br> <span style='color:gray'>Powered By Semantic Backup {Program.AppVersion}</span>";
List<string> destinations = GetValidDestinations(resourceGroup.NotifyEmailDestinations);
await SendEmailAsync(subject, emailBody, destinations);
}
Expand Down

0 comments on commit 4adffd7

Please sign in to comment.