Apparently I should've rendered the emails in plain text.
authorDiane Trout <diane@caltech.edu>
Fri, 11 Sep 2009 01:41:12 +0000 (01:41 +0000)
committerDiane Trout <diane@caltech.edu>
Fri, 11 Sep 2009 01:41:12 +0000 (01:41 +0000)
Also lorian wanted to include the cluster estimate in the email.

htsworkflow/frontend/experiments/views.py
htsworkflow/frontend/templates/experiments/email_preview.html
htsworkflow/frontend/templates/experiments/started_email.txt [new file with mode: 0644]

index a6cd2412efdf9fd2bc6a4da681e6117a290a9d6e..3505a3bf594e7cfbd0b50afce09f6374e504280d 100755 (executable)
@@ -66,7 +66,7 @@ def startedEmail(request, pk):
     flowcell_users = getUsersForFlowcell(fc)
     estimate_low, estimate_high = estimateFlowcellDuration(fc)
     email_verify = get_template('experiments/email_preview.html')
-    email_template = get_template('experiments/started_email.html')
+    email_template = get_template('experiments/started_email.txt')
     sender = settings.NOTIFICATION_SENDER
 
     warnings = []
index 6cbc065ac73b6ec038c67f6fde8d35432b1f5373..cef7d0651aefa687e89217c674c1989feaef1d20 100644 (file)
@@ -15,7 +15,9 @@ email address <br/>
 <b>From:</b> {{ from }}<br/>
 <b>To:</b> {{ to }}<br/>
 <b>Subject:</b> {{ subject }}<br/>
+<pre>
 {{ body }}
+</pre>
 {% endfor %}<hr/>
 <form method="get">
 <label for="bcc">BCC {% for m in site_managers %}{{ m }} {% endfor %}</label>
diff --git a/htsworkflow/frontend/templates/experiments/started_email.txt b/htsworkflow/frontend/templates/experiments/started_email.txt
new file mode 100644 (file)
index 0000000..5a2c1ca
--- /dev/null
@@ -0,0 +1,16 @@
+The following libraries are on the flowcell {{ flowcell.flowcell_id }}
+which is a {{ flowcell.read_length }} base pair {% if flowcell.paired_end %}paired end{% else %}single ended{% endif %} flowcell.
+
+Lane : (Library Id) Library Name (Cluster Estimate)
+{% for lane in lanes %}
+Lane #{{ lane.lane_number }} : ({{ lane.library.library_id }}) {{ lane.library.library_name }} ({{ lane.cluster_estimate }})
+     http://jumpgate.caltech.edu/library/{{ lane.library.library_id }}
+{% endfor %}
+
+The raw data should be available at the following link when
+the pipeline finishes, probably in about
+{{ finish_low.days }} to {{ finish_high.days }} days after the flowcell is started.
+
+http://jumpgate.caltech.edu/runfolders/cellcenter/
+
+- Jumpgate