(no commit message)
authorRami Rauch <rrauch@stanford.edu>
Thu, 28 Aug 2008 21:19:03 +0000 (21:19 +0000)
committerRami Rauch <rrauch@stanford.edu>
Thu, 28 Aug 2008 21:19:03 +0000 (21:19 +0000)
htswfrontend/htswfrontend/exp_track/models.py

index e31041e81c16072e6ee48ab0c5f7afd5ed7ac199..4ed77062cbbd4d3134e313aa735dbf0683ecd483 100755 (executable)
@@ -124,7 +124,18 @@ class DataRun(models.Model):
 
 
   def main_status(self):
-    return self.run_status
+    str = '<div'
+    if self.run_status >= 5:
+      str += ' style="color:green">'
+      str += '<b>'+self.RUN_STATUS_CHOICES[self.run_status][1]+'</b>'
+      str += '<br/><br/><span style="color:red;font-size:80%;">New!</span>'
+      str +='<br/><a target=_balnk href="http://m304-apple-server.stanford.edu/'+self.fcid.flowcell_id+'_QC/'+self.fcid.flowcell_id+'_'+self.run_folder+'_QC_Summary.html" title="View QC Summaries of this run ..." ">View QC Page</a>'
+    else:
+      str += '>'+self.RUN_STATUS_CHOICES[self.run_status][1]
+
+    str += '</div>'
+    return str
+  main_status.allow_tags = True
 
   main_status.allow_tags = True
   
@@ -139,7 +150,8 @@ class DataRun(models.Model):
     str += '</div>'
     str += '<div><a title="open Flowcell record" href="/admin/exp_track/flowcell/'+self.fcid.id.__str__()+'/" target=_self>Edit Flowcell record</a>'
     str += '<span style="color:red;font-size:80%;margin-left:15px;margin-right:3px">New!</span>'
-    str +='<a target=_balnk href="/exp_track/'+self.fcid.flowcell_id+'" title="View XLS like sheet for this Flowcell LOG..." ">View LOG Page</a></div>'
+    str +='<a target=_balnk href="/exp_track/'+self.fcid.flowcell_id+'" title="View XLS like sheet for this Flowcell LOG ..." ">GA LOG Page</a>'
+    str += '</div>'
     str += '</div>'    
     return str
   Flowcell_Info.allow_tags = True
@@ -147,5 +159,5 @@ class DataRun(models.Model):
   class Admin:
     search_fields = ['run_folder','run_note','config_params','=fcid__lane_1_library__library_id','=fcid__lane_2_library__library_id','=fcid__lane_3_library__library_id','=fcid__lane_4_library__library_id','=fcid__lane_5_library__library_id','=fcid__lane_6_library__library_id','=fcid__lane_7_library__library_id','=fcid__lane_8_library__library_id']
 
-    list_display = ('run_folder','Flowcell_Info','run_start_time','run_status','run_note')
+    list_display = ('run_folder','Flowcell_Info','run_start_time','main_status','run_note')
     list_filter = ('run_status','run_start_time')