Skip to content

Commit

Permalink
Load Tailwind 1.x styles for email
Browse files Browse the repository at this point in the history
  • Loading branch information
KHIT93 committed Nov 28, 2021
1 parent 677077f commit baa9449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/src/css/email.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/reports/email_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, show_all_messages, period, from_email=None, subject=None, *ar

def process(self, queryset):
styles = ""
with open(os.path.join(settings.ASSETS_DIR, 'dist', 'css', 'app.css')) as f:
with open(os.path.join(settings.ASSETS_DIR, 'src', 'css', 'email.css')) as f:
styles = f.read()
for user in queryset:
domains = [domain.name for domain in user.domains.all()]
Expand Down

0 comments on commit baa9449

Please sign in to comment.