New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move remaining "generated by Tendenci" footer text to template. #654
Move remaining "generated by Tendenci" footer text to template. #654
Conversation
Extending upon 2b2e6f8, this change replacing the remaining hard-coded email footer with templated text. This allows changes to the email footer without forking Tendenci and means the same footer text will be used across the site.
The footer was actually added there intentionally to promote the Tendenci brand. I'm not sure if it is okay to move it to a template. Let me check with @eschipul. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the abstraction and keeping the HTML and code separate. But given we're a tiny virtual group that has not gone to crowdfunding or asked for donations, we have to pay the bills. Marketing is part of that solution.
What about moving it into a text file that is NOT in the templates folder but still in the repo? That would allow other developers to edit it but prevent our hosted clients who don't pay for email relay through SES from removing it.
Thoughts? Email is a big expense for us that clients don't understand so we do need the branding. And the image is actually supposed to be a beacon like Wordpress does so we can show stats within the sites for super_users.
Thanks @jennyq and @eschipul, I understand your points and certainly don't want to make it harder to market Tendenci. I don't know that I have a better answer, but here are a few observations while I think about this further.
I suspect that if the footer were more modest, like:
this might all be a non-issue, as it's very close to what comes out of many smartphones. The phase "powered by" seems a little cliche. Especially if there was a way to also add some organisational branding. Thinking out aloud, I wonder whether maybe the system needs both:
That's just my thoughts for now. Moving to a text file is certainly a step forward. |
Tendenci 7 fixes
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.
@eschipul I've now moved all the footers to the pair of html_footer() and text_footer() functions for use in Python code and added template tags of the same name for components that insert the footers using templates. I think this is about as simple as I can get it, but does involve touching a bit of code - this approach is a little more complicated than straight template includes. I've tested each of these changes by hand. |
Looks to me like the real issue here is simply that some things are using the email_footer.html template when they should be using Rather than adding new functions and templatetags, why not just update everything to use add_tendenci_footer()? |
@PaulSD I think that's a good approach so long as we just drop the footer off the three admin-recap templates. There's little value to these particular footers anyway, since admins already know they're running Tendenci. Refactoring these would mean I'd have to touch quite a bit of management command code that will be time consuming to test thoroughly by hand. Will push up this change in a moment. |
This looks better to me :) BTW, to squash these multiple attempts into a single commit, you can do: |
@PaulSD I use GitLab a whole lot more that GitHub, but surely GitHub has a comparable "squash and rebase on merge" feature that the project committer can choose to use if that's their preference? I'm of the philosophy that once a branch has gone public in any way, you don't rewrite it's history, to avoid creating a mess for anyone else following along. |
Hmm... Yup, I guess it does: https://help.github.com/articles/about-pull-request-merges/ |
The changes look fine except per @eschipul we really want to have the image link and the text in the email footer. I have an idea: Let's move the hard-coded tendenci footer to a template |
This reverts commit ff7e092.
This means the logo will actually show up, rather than being blocked as an external image by email clients.
@jennyq no problem, this sounds close to my original proposal, so I'll revert to that and add the image. I've made it a Base64 embedded image since most sensible email clients block remote image to prevent tracking. I could use your help with making the |
To hide the
|
Not sure if there's a better place to put this but it's somewhat related. Spamassassin isn't a big fan of html only emails, would you accept patches to send multipart messages? The image can also affect the score but it sounds like you want to keep that in all instances. |
@AdamBark - I do want to reinstate the option of an html or text email option for the newsletter generator. I think open source is a tough business model so I'd like the default mention of the tendenci brand to remain. (a developer can remove this anyway as they aren't "pixels" and pull from the local site regardless.) That would require checking the emails object to support text or html. And having a drop down in the newsletter generator to select one. And then generating all of the content. But I agree with you. Re spam assassin, while this helpfile isn't directly applicable you can see what we have to do just to get spf records to work. After SPF - I also highly recommend using dnsstuff.com to check your domain's configuration. |
b9f4355
to
cfa8f55
Compare
Closing this PR as it's not currently a priority. |
Extending upon 2b2e6f8, this change replacing the remaining hard-coded email footer with templated text. This means that the same email footer is consistently used across the site and enable changes to the footer without forking Tendenci.
Note that the new
email_footer.txt
template is a text version of the existingemail_footer.html
, hence I've stuck with that wording rather than the existing wording inadd_tendenci_footer
.