Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

email

  • Loading branch information...
commit f7a25dc194feed974d1c548144aa22b5a753a62f 1 parent 8bc16e5
Kyung Bae Park authored April 15, 2012
9  app/views/notice_mailer/confirmation_to_sender.html.erb
@@ -6,7 +6,14 @@
6 6
   <body>
7 7
     <h1>Hello,</h1>
8 8
     <p>
9  
-      We got a DICOM file of <%= @study.name %>.<br/>
  9
+      
  10
+      <% if @study.status === 'DICOM File'%>
  11
+      	We got a DICOM file of <%= @study.name %>.<br/>
  12
+      <% else %>
  13
+      	We got your file, however it was not a DICOM file. Can you check and upload it again?
  14
+      <% end %>
  15
+      
  16
+      Thank you. 
10 17
     </p>
11 18
   </body>
12 19
 </html>
8  app/views/notice_mailer/notice_to_doc.html.erb
@@ -6,7 +6,13 @@
6 6
   <body>
7 7
     <h1>Hello Dr. Evil,</h1>
8 8
     <p>
9  
-      A new DICOM file of <%= @study.name %> has been uploaded. <br/>
  9
+    	<% if @study.status === 'DICOM File' %>
  10
+    	A new DICOM file of <%= @study.name %> has been uploaded. <br/>
  11
+    	You can check the file at <a href="http://blazing-dawn-4586.herokuapp.com/studies">the site</a>
  12
+    	<% else %>
  13
+    	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.
  14
+    	<% end %>
  15
+      Thank you.
10 16
     </p>
11 17
   </body>
12 18
 </html>
BIN  public/uploads/.DS_Store
Binary file not shown
BIN  public/uploads/tmp/.DS_Store
Binary file not shown

0 notes on commit f7a25dc

Please sign in to comment.
Something went wrong with that request. Please try again.