Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for emailing everyone about tng
- Loading branch information
Showing
5 changed files
with
147 additions
and
4 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
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,33 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Your Impactstory report</title> | ||
<style type="text/css"> | ||
{{ css }} | ||
</style> | ||
<link rel="stylesheet" href="https://impactstory.org/static/less.emails/css/new-metrics.css"/> | ||
</head> | ||
<body> | ||
<div class="report-header"> | ||
<img class="logo" src="https://impactstory.org/static/img/impactstory-logo-sideways.png" alt="Impactstory logo"/> | ||
<h1>Announcement</h1> | ||
|
||
<h2> | ||
<img src="https://www.gravatar.com/avatar/{{ profile.email_hash }}?s=110&d=mm" alt="user avatar"/> | ||
<span class="name">{{ profile.given_name }} {{ profile.surname }}</span> | ||
<a class="link-to-profile" href="https://impactstory.org/{{ profile.url_slug }}">impactstory.org/{{ profile.url_slug }}</a> | ||
<div class="clearfix"></div> | ||
</h2> | ||
</div> | ||
|
||
<div class="body"> | ||
orcid if they have one: {{ profile.orcid_id }} | ||
</div> | ||
|
||
<div class="footer"> | ||
<span class="change-settings"> | ||
<--a class="unsubscribe" href="https://impactstory.org/settings/notifications">Unsubscribe</--a> | | ||
</span> | ||
</div> | ||
</body> | ||
</html> |
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,39 @@ | ||
from totalimpactwebapp.cards_factory import * | ||
import os | ||
|
||
|
||
def make(profile): | ||
|
||
response = { | ||
"profile": profile, | ||
"css": get_css(), | ||
} | ||
return response | ||
|
||
|
||
def get_css(): | ||
path = os.path.join( | ||
os.path.dirname(__file__), | ||
'static/less.emails/css/new-metrics.css' | ||
) | ||
file = open(path, "r") | ||
return file.read() | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|