Skip to content

Commit

Permalink
fixed htmlemails
Browse files Browse the repository at this point in the history
  • Loading branch information
gedankenstuecke committed Dec 18, 2015
1 parent 0370caa commit 4866680
Show file tree
Hide file tree
Showing 24 changed files with 138 additions and 132 deletions.
6 changes: 3 additions & 3 deletions app/views/user_mailer/dump.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi <%=@user.name%>,</h1>
<b>Hi <%=@user.name%>,</b>
<p>
the data dump (including all the genotyping files and the associated
phenotypes) you requested for download from openSNP are now available in
a zipped format.
<b><a href="<%="http://"+ActionMailer::Base.default_url_options[:host]+@link%>"Go and download them!</a></b>
</p>
<p>
--
--<br/>
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("SBG_logo.png") %>
<%= image_tag("http://"+ActionMailer::Base.default_url_options[:host]+"/assets/SBG_logo.png") %>
</a>
</p>
</body>
Expand Down
20 changes: 10 additions & 10 deletions app/views/user_mailer/duplicate_file.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi <%=@user.name%>,</h1>
<b>Hi <%=@user.name%>,</b>
<p>
You have recently uploaded a genotyping to our repository, but it looks
like we have stored the same file already!</br>
Expand All @@ -14,19 +14,19 @@
</p>
<p>
If there is no genotyping listed in your user-account, please contact us!</br>
If you need help you can read the FAQ <%=faq_url()%> or contact us by replying to this mail.
If you need help <a href="<%=faq_url()%>">you can read the FAQ</a> or contact us by replying to this mail.
</p>
<p>
Cheers,
your openSNP-team.
</p>
--
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("SBG_logo.png") %>
</a>
--<br/>
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("http://"+ActionMailer::Base.default_url_options[:host]+"/assets/SBG_logo.png") %>
</a>
</body>
</html>
20 changes: 10 additions & 10 deletions app/views/user_mailer/file_has_mails.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi <%=@user.name%>,</h1>
<b>Hi <%=@user.name%>,</b>
<p>
You have recently uploaded a genotyping to our repository, but it looks like it contains email addresses.
Some users have uploaded files with email addresses of strangers in the past, which we obviously cannot allow.
Therefore we have deleted your genotyping.
The easiest way to fix this is to find out why your file contains email addresses, to remove these, and to re-upload it.
</p>
<p>
If you need help you can read the FAQ <%=faq_url()%> or contact us by replying to this mail.
If you need help <a href="<%=faq_url()%>">you can read the FAQ</a> or contact us by replying to this mail.
</p>
<p>
Cheers,
your openSNP-team.
</p>
--
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("SBG_logo.png") %>
</a>
--<br/>
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("http://"+ActionMailer::Base.default_url_options[:host]+"/assets/SBG_logo.png") %>
</a>
</body>
</html>
18 changes: 9 additions & 9 deletions app/views/user_mailer/finished_parsing.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi <%=@user.name%>,</h1>
<b>Hi <%=@user.name%>,</b>
<p>
I just finished parsing your <%= @vendor %> file. I found a total of
<%= @stats[:rows_without_comments] %> rows (exclusive comments) in it and was
Expand All @@ -17,13 +17,13 @@
Cheers,</br>
The OpenSNP Parser
</p>
--
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("SBG_logo.png") %>
</a>
--<br/>
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("http://"+ActionMailer::Base.default_url_options[:host]+"/assets/SBG_logo.png") %>
</a>
</body>
</html>
18 changes: 9 additions & 9 deletions app/views/user_mailer/fitbit_dump.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi <%=@user.name%>,</h1>
<b>Hi <%=@user.name%>,</b>
<p>
the Fitbit data you requested for
<a href="<%="http://"+ActionMailer::Base.default_url_options[:host]+@link%>">
Expand All @@ -18,13 +18,13 @@
Cheers,</br>
your openSNP team
</p>
--
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("SBG_logo.png") %>
</a>
--<br/>
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("http://"+ActionMailer::Base.default_url_options[:host]+"/assets/SBG_logo.png") %>
</a>
</body>
</html>
18 changes: 9 additions & 9 deletions app/views/user_mailer/genotyping_results.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi,</h1>
<b>Hi,</b>
<p>
the genetic data for the variation <%=@variation%> for <%=@phenotype_name%> you requested
<a href="<%="http://"+ActionMailer::Base.default_url_options[:host]+@link%>">
Expand All @@ -18,13 +18,13 @@
Cheers,</br>
your openSNP team
</p>
--
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("SBG_logo.png") %>
</a>
--<br/>
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("http://"+ActionMailer::Base.default_url_options[:host]+"/assets/SBG_logo.png") %>
</a>
</body>
</html>
12 changes: 6 additions & 6 deletions app/views/user_mailer/new_message.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi <%=@user.name%>,</h1>
<b>Hi <%=@user.name%>,</b>
<p>
you just got a new message from <%=User.find_by_id(@message.from_id).name%> with the following subject: <b><%=@message.subject%></b>
Below you find the text of the message:
</p>
<p>
<blockquote>
--- SNIP ---

<br/>
<%= @message.body %>

<br/>
--- SNAP ---
</blockquote>
</p>
<p>
<b>
PLEASE DO NOT ANSWER THIS MAIL DIRECTLY. You can read and reply to this message by clicking this link: <%= message_url(@message) %>
PLEASE DO NOT ANSWER THIS MAIL DIRECTLY. <a href="<%= message_url(@message) %>"You can read and reply to this message by clicking this link</a>.
</b>
</p>
<p>
Cheers,</br>
your openSNP team
</p>
--
--</br>
You receive this email because you enabled the message-notification-settings. To change your notification-settings you can visit <%=edit_user_url(@user)%>#notifications</br></br>
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("SBG_logo.png") %>
<%= image_tag("http://"+ActionMailer::Base.default_url_options[:host]+"/assets/SBG_logo.png") %>
</a>
</body>
</html>
1 change: 1 addition & 0 deletions app/views/user_mailer/new_message.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ you just got a new message from <%=User.find_by_id(@message.from_id).name%> with
Below you find the text of the message:

--- SNIP ---
<br/>

<%= @message.body %>

Expand Down
6 changes: 3 additions & 3 deletions app/views/user_mailer/new_phenotype.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi <%=@user.name%>,</h1>
<b>Hi <%=@user.name%>,</b>
<p>
The new phenotype "<%=@phenotype.characteristic%>" was just entered on openSNP.
<a href="<%=phenotype_url(@phenotype)%>"If you want to, you can enter your variation for this phenotype</a>
Expand All @@ -13,14 +13,14 @@ The new phenotype "<%=@phenotype.characteristic%>" was just entered on openSNP.
Cheers,</br>
your openSNP team
</p>
--
--<br/>
You receive this email because you enabled the phenotype-notification-settings. To change your notification-settings you can visit <%=edit_user_url(@user)%>#notifications<br/><br/>
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("SBG_logo.png") %>
<%= image_tag("http://"+ActionMailer::Base.default_url_options[:host]+"/assets/SBG_logo.png") %>
</a>
</body>
</html>
Expand Down
12 changes: 6 additions & 6 deletions app/views/user_mailer/new_phenotype_comment.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi <%=@user.name%>,</h1>
<b>Hi <%=@user.name%>,</b>
<p>
<%=@phenotype_comment.user.name%> just replied to a phenotype comment on the Phenotype <%=@phenotype_comment.phenotype.characteristic%> from you.
This is the text of the reply:
</p>
<p>
<blockquote>
--- SNIP ---

<br/>
<%=@phenotype_comment.comment_text%>

<br/>
--- SNAP ---
</blockquote>
</p>
<p>
<b>
PLEASE DO NOT ANSWER THIS MAIL DIRECTLY. You can read and reply to this comment by clicking this link: <%= phenotype_url(@phenotype_comment.phenotype) %>
PLEASE DO NOT ANSWER THIS MAIL DIRECTLY. <a href="<%= phenotype_url(@phenotype_comment.phenotype) %>">You can read and reply to this comment by clicking this link</a>.
</b>
</p>
<p>
Cheers,</br>
your openSNP team
</p>
--
--<br/>
You receive this email because you enabled the phenotype-notification-settings. To change your notification-settings you can visit <%=edit_user_url(@user)%>#notifications</br></br>
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("SBG_logo.png") %>
<%= image_tag("http://"+ActionMailer::Base.default_url_options[:host]+"/assets/SBG_logo.png") %>
</a>
</body>
</html>
1 change: 1 addition & 0 deletions app/views/user_mailer/new_phenotype_comment.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Hello <%=@user.name%>,
This is the text of the reply:

--- SNIP ---
<br/>

<%=@phenotype_comment.comment_text%>

Expand Down
12 changes: 6 additions & 6 deletions app/views/user_mailer/new_picture_phenotype_comment.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi <%=@user.name%>,</h1>
<b>Hi <%=@user.name%>,</b>
<p>
<%=@phenotype_comment.user.name%> just replied to a phenotype comment on the Picture Phenotype <%=@phenotype_comment.picture_phenotype.characteristic%> from you.
This is the text of the reply:
</p>
<p>
<blockquote>
--- SNIP ---

<br/>
<%=@phenotype_comment.comment_text%>
<br/>
--- SNAP ---
</blockquote>
</p>
<p>
<b>
You can read and reply to this comment by clicking this link: <%=picture_phenotype_url(@phenotype_comment.picture_phenotype)%>#comments
<a href="<%=picture_phenotype_url(@phenotype_comment.picture_phenotype)%>#comments">You can read and reply to this comment by clicking this link.</a>
</b>
</p>
<p>
Cheers,</br>
your openSNP team
</p>
--
--<br/>
You receive this email because you enabled the phenotype-notification-settings. To change your notification-settings you can visit <%=edit_user_url(@user)%>#notifications</br></br>
openSNP thanks <a href="https://www.sbgenomics.com/">Seven Bridges</a>
and its biomedical data analysis platform –
along with <a href="patreon.com/openSNP">our Patreons</a> for supporting our
hosting costs.</br>
<a href="https://www.sbgenomics.com">
<%= image_tag("SBG_logo.png") %>
<%= image_tag("http://"+ActionMailer::Base.default_url_options[:host]+"/assets/SBG_logo.png") %>
</a>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Hello <%=@user.name%>,
This is the text of the reply:

--- SNIP ---
<br/>

<%=@phenotype_comment.comment_text%>
Expand Down
Loading

0 comments on commit 4866680

Please sign in to comment.