-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web-scraping): notify users about failed attempts to check chang…
…es in resources or content
- Loading branch information
Showing
17 changed files
with
863 additions
and
159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<style> | ||
.navigate-link { | ||
display: block; | ||
width: 250px; | ||
margin: auto; | ||
padding: 10px 20px; | ||
text-align: center; | ||
text-decoration: none; | ||
color: #5e1d3f; | ||
background-color: #fed047; | ||
border-radius: 5px; | ||
font-weight: bold; | ||
} | ||
</style> |
19 changes: 3 additions & 16 deletions
19
assets/templates/web_page_content_tracker_changes_email.hbs
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
21 changes: 21 additions & 0 deletions
21
assets/templates/web_page_content_tracker_changes_error_email.hbs
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,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>"{{tracker_name}}" tracker failed to check for content changes</title> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
{{> email_styles}} | ||
{{> tracker_styles}} | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>"{{tracker_name}}" tracker failed to check for content changes</h1> | ||
<p>There was an error while checking content: <b>{{error_message}}</b>.</p> | ||
<p>To check the tracker configuration and re-try, visit the <b>Content trackers</b> page:</p> | ||
<a class="navigate-link" href="{{back_link}}">Web Scraping → Content trackers</a> | ||
<p>If the button above doesn't work, you can navigate to the following URL directly: </p> | ||
<p>{{back_link}}</p> | ||
<a href="{{home_link}}"><img src="cid:secutils-logo" alt="Secutils.dev logo" width="89" height="14" /></a> | ||
</div> | ||
</body> | ||
</html> |
19 changes: 3 additions & 16 deletions
19
assets/templates/web_page_resources_tracker_changes_email.hbs
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
21 changes: 21 additions & 0 deletions
21
assets/templates/web_page_resources_tracker_changes_error_email.hbs
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,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>"{{tracker_name}}" tracker failed to check for changes in resources</title> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
{{> email_styles}} | ||
{{> tracker_styles}} | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>"{{tracker_name}}" tracker failed to check for changes in resources</h1> | ||
<p>There was an error while checking resources: <b>{{error_message}}</b>.</p> | ||
<p>To check the tracker configuration and re-try, visit the <b>Resources trackers</b> page:</p> | ||
<a class="navigate-link" href="{{back_link}}">Web Scraping → Resources trackers</a> | ||
<p>If the button above doesn't work, you can navigate to the following URL directly: </p> | ||
<p>{{back_link}}</p> | ||
<a href="{{home_link}}"><img src="cid:secutils-logo" alt="Secutils.dev logo" width="89" height="14" /></a> | ||
</div> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.