* Fixed urls for result_fc_cnm_eland_lane and summaryhtm_fc_cnm functions.
[htsworkflow.git] / htsworkflow / frontend / urls.py
index 95552bd65f86d20d635d8102dac1a4ecf4d42077..f5f014c02341fa5229f8b71850eb5f4c7a60bddc 100644 (file)
@@ -8,6 +8,8 @@ admin.autodiscover()
 #databrowse.site.register(Library)
 #databrowse.site.register(FlowCell)
 
+from htsworkflow.frontend import settings
+
 urlpatterns = patterns('',
     # Base:
     (r'^eland_config/', include('htsworkflow.frontend.eland_config.urls')),
@@ -18,8 +20,31 @@ urlpatterns = patterns('',
     # AnalysTrack:
     #(r'^analysis/', include('htsworkflow.frontend.analysis.urls')),
     # Report Views:
-    # (r'^reports/', include('gaworkflow.frontend....urls')),
+    (r'^inventory/', include('htsworkflow.frontend.inventory.urls')),
+    (r'^reports/', include('htsworkflow.frontend.reports.urls')),
+    # Library browser
+    (r'^library/$', 'htsworkflow.frontend.samples.views.library'),
+    (r'^library/(?P<lib_id>\w+)/$', 
+      'htsworkflow.frontend.samples.views.library_to_flowcells'),
+    # library id to admin url
+    (r'^library_id_to_admin_url/(?P<lib_id>\w+)/$',
+     'htsworkflow.frontend.samples.views.library_id_to_admin_url'),
+    # Raw result files
+    (r'^results/(?P<flowcell_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/summary/',
+      'htsworkflow.frontend.samples.views.summaryhtm_fc_cnm'),
+    (r'^results/(?P<flowcell_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/eland_result/(?P<lane>[1-8])',
+      'htsworkflow.frontend.samples.views.result_fc_cnm_eland_lane'),
+    (r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])/ucsc',
+      'htsworkflow.frontend.samples.views.bedfile_fc_cnm_eland_lane_ucsc'),
+    (r'^results/(?P<fc_id>\w+)/(?P<cnm>C[1-9]-[0-9]+)/bedfile/(?P<lane>[1-8])',
+      'htsworkflow.frontend.samples.views.bedfile_fc_cnm_eland_lane'),
     
     # databrowser
     #(r'^databrowse/(.*)', databrowse.site.root)
 )
+
+if settings.DEBUG:
+  urlpatterns += patterns('',
+      (r'^static/(?P<path>.*)$', 'django.views.static.serve', 
+        {'document_root': settings.MEDIA_ROOT}),
+  )