<commit_before>package workers

import (
	"bytes"
	htmlTemplate "html/template"
	textTemplate "text/template"
)

const (
	// TODOs:
	// Mail templates are directly written as const for now. We could benefit
	// from and asset loader to add them inside the binary from our assets/
	// folder.
	// Also we have connect these templates with our i18n system - using
	// transifex.

	// --- reset_passphrase ---
	mailResetPassHTML = `` +
		`<h2>Reset you Cozy password</h2>

<p>Hello {{.RecipientName}}.<br/> Forgot your password? No worries, let's get you a new one! Click on the link below to safely change it.</p>

<a href="{{.PassphraseResetLink}}" style="color:white; text-decoration:none; text-transform:uppercase; font-weight: bold;">
<table cellspacing="0" cellpadding="0" style="background-color:#297EF2; border-radius: 3px;">
<tr><td colspan="3">&nbsp;</td></tr>
<tr><td width="25">&nbsp;</td><td>Reset my password</td><td width="25">&nbsp;</td></tr>
<tr><td colspan="3">&nbsp;</td></tr>
</table>
</a>

<p>You never asked for a new password? In this case you can forget this email.<br/> Just so you know, you have 24 hours to choose a new password, then this email will self-destruct.</p>`

	mailResetPassText = `` +
		`Reset you Cozy password

Hello {{.RecipientName}}.
Forgot your password? No worries, let's get you a new one! Click on the link below to safely change it.

To reset your password, please go to this URL:
{{.PassphraseResetLink}}

You never asked for a new password? In this case you can forget this email.
Just so you know, you have 24 hours to choose a new password, then this email will self-destruct.`

	//  --- sharing_request ---
	mailSharingRequestHTML = `` +
		`<h2>Hey {{.RecipientName}}!</h2>
<p>{{.SharerPublicName}} wants to share a document with you! You will only be able to view it.</p>

<p>The description given is: {{.Description}}.</p>

<form action="{{.OAuthQueryString}}">
	<input type="submit" value="Accept this sharing" />
</form>
</p>`

	mailSharingRequestText = `` +<commit_msg>feat: Add placeholder for Cozy logo<commit_after>package workers

import (
	"bytes"
	htmlTemplate "html/template"
	textTemplate "text/template"
)

const (
	// TODOs:
	// Mail templates are directly written as const for now. We could benefit
	// from and asset loader to add them inside the binary from our assets/
	// folder.
	// Also we have connect these templates with our i18n system - using
	// transifex.

	// --- reset_passphrase ---
	mailResetPassHTML = `` +
		`<h1><img src="" alt="Cozy Cloud"/></h1>

<h2>Reset you Cozy password</h2>

<p>Hello {{.RecipientName}}.<br/> Forgot your password? No worries, let's get you a new one! Click on the link below to safely change it.</p>

<a href="{{.PassphraseResetLink}}" style="color:white; text-decoration:none; text-transform:uppercase; font-weight: bold;">
<table cellspacing="0" cellpadding="0" style="background-color:#297EF2; border-radius: 3px;">
<tr><td colspan="3">&nbsp;</td></tr>
<tr><td width="25">&nbsp;</td><td>Reset my password</td><td width="25">&nbsp;</td></tr>
<tr><td colspan="3">&nbsp;</td></tr>
</table>
</a>

<p>You never asked for a new password? In this case you can forget this email.<br/> Just so you know, you have 24 hours to choose a new password, then this email will self-destruct.</p>`

	mailResetPassText = `` +
		`Cozy Cloud

Reset you Cozy password

Hello {{.RecipientName}}.
Forgot your password? No worries, let's get you a new one! Click on the link below to safely change it.

To reset your password, please go to this URL:
{{.PassphraseResetLink}}

You never asked for a new password? In this case you can forget this email.
Just so you know, you have 24 hours to choose a new password, then this email will self-destruct.`

	//  --- sharing_request ---
	mailSharingRequestHTML = `` +
		`<h2>Hey {{.RecipientName}}!</h2>
<p>{{.SharerPublicName}} wants to share a document with you! You will only be able to view it.</p>

<p>The description given is: {{.Description}}.</p>

<form action="{{.OAuthQueryString}}">
	<input type="submit" value="Accept this sharing" />
</form>
</p>`

	mailSharingRequestText = `` +
{'fraction_non_alphanumeric': 0.1490186576205476, 'fraction_numerical': 0.011630724497213472, 'mean_word_length': 4.26530612244898, 'pattern_counts': {'":': 0, '<': 82, '<?xml version=': 0, '>': 82, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7201691', 'n_tokens_mistral': 1352, 'n_tokens_neox': 1277, 'n_words': 487}