Permalink
Browse files

email

  • Loading branch information...
kyungbae committed Apr 15, 2012
1 parent 8bc16e5 commit f7a25dc194feed974d1c548144aa22b5a753a62f
@@ -6,7 +6,14 @@
<body>
<h1>Hello,</h1>
<p>
- We got a DICOM file of <%= @study.name %>.<br/>
+
+ <% if @study.status === 'DICOM File'%>
+ We got a DICOM file of <%= @study.name %>.<br/>
+ <% else %>
+ We got your file, however it was not a DICOM file. Can you check and upload it again?
+ <% end %>
+
+ Thank you.
</p>
</body>
</html>
@@ -6,7 +6,13 @@
<body>
<h1>Hello Dr. Evil,</h1>
<p>
- A new DICOM file of <%= @study.name %> has been uploaded. <br/>
+ <% if @study.status === 'DICOM File' %>
+ A new DICOM file of <%= @study.name %> has been uploaded. <br/>
+ You can check the file at <a href="http://blazing-dawn-4586.herokuapp.com/studies">the site</a>
+ <% else %>
+ A new file has been uploaded, but it is not a DICOM file. We sent email to the sender to upload a correct DICOM file.
+ <% end %>
+ Thank you.
</p>
</body>
</html>
View
Binary file not shown.
Binary file not shown.

0 comments on commit f7a25dc

Please sign in to comment.