forked from tendenci/tendenci
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate all email footers into code.
As discussed by @jennyq and @eschipul in tendenci#654, Tendenci footers need to be in code to support ongoing costs of outgoing email for hosted customers as well as ongoing Tendenci development.
- Loading branch information
1 parent
2ecb5bc
commit ff7e092
Showing
12 changed files
with
58 additions
and
18 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
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,27 @@ | ||
from django.utils.translation import ugettext as _ | ||
|
||
def html_footer(): | ||
"""Return the contents of the HTML email footer. | ||
This footer provides important exposure for the Tendenci project, for which | ||
most of the development costs are funded by hosted Tendenci subscriptions. | ||
This footer is implemented in code, rather than templates, so that it can't | ||
be trivially removed by hosted customers. If you need to remove this footer, | ||
please maintain a fork the tendenci repository. For discussion on this, see: | ||
https://github.com/tendenci/tendenci/pull/654/ | ||
""" | ||
return ( | ||
'<p align="center">' + | ||
_('This e-mail was generated by Tendenci® - The Open Source AMS') + | ||
' <a href="https://www.tendenci.com">www.tendenci.com</a>' + | ||
'</p>') | ||
|
||
|
||
def text_footer(): | ||
"""Return the contents of the text-only email footer.""" | ||
return ( | ||
_('This e-mail was generated by Tendenci - The Open Source AMS') + | ||
' https://www.tendenci.com') |
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.