From: Diane Trout Date: Tue, 17 Dec 2013 19:13:24 +0000 (-0800) Subject: Update templates to consistently use {% static %} instead of hard coding paths X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=ed8fd4c8cb510fc652ce1d0e096da6367543ca9a Update templates to consistently use {% static %} instead of hard coding paths Also import a few media files that were missing. --- diff --git a/htsworkflow/frontend/static/css/dashboard.css b/htsworkflow/frontend/static/css/dashboard.css new file mode 100644 index 0000000..05808bc --- /dev/null +++ b/htsworkflow/frontend/static/css/dashboard.css @@ -0,0 +1,30 @@ +/* DASHBOARD */ + +.dashboard .module table th { + width: 100%; +} + +.dashboard .module table td { + white-space: nowrap; +} + +.dashboard .module table td a { + display: block; + padding-right: .6em; +} + +/* RECENT ACTIONS MODULE */ + +.module ul.actionlist { + margin-left: 0; +} + +ul.actionlist li { + list-style-type: none; +} + +ul.actionlist li { + overflow: hidden; + text-overflow: ellipsis; + -o-text-overflow: ellipsis; +} diff --git a/htsworkflow/frontend/static/img/dna80.png b/htsworkflow/frontend/static/img/dna80.png new file mode 100644 index 0000000..845c255 Binary files /dev/null and b/htsworkflow/frontend/static/img/dna80.png differ diff --git a/htsworkflow/frontend/templates/base.html b/htsworkflow/frontend/templates/base.html index 3365689..0325a84 100644 --- a/htsworkflow/frontend/templates/base.html +++ b/htsworkflow/frontend/templates/base.html @@ -22,7 +22,7 @@ {% block extrastyle %}{% endblock %} {% block extrahead %}{% endblock %} {% block blockbots %}{% endblock %} - + {% endblock %} diff --git a/htsworkflow/frontend/templates/base_site.html b/htsworkflow/frontend/templates/base_site.html index 7381f62..1c02752 100644 --- a/htsworkflow/frontend/templates/base_site.html +++ b/htsworkflow/frontend/templates/base_site.html @@ -1,7 +1,8 @@ {% extends "base.html" %} +{% load staticfiles %} {% load i18n %} - + {% block title %}{{ sitename }}{% endblock %} diff --git a/htsworkflow/frontend/templates/experiments/flowcell_detail.html b/htsworkflow/frontend/templates/experiments/flowcell_detail.html index d958bf1..64da7e2 100644 --- a/htsworkflow/frontend/templates/experiments/flowcell_detail.html +++ b/htsworkflow/frontend/templates/experiments/flowcell_detail.html @@ -1,9 +1,10 @@ {% extends "base_site.html" %} +{% load staticfiles %} {% load humanize i18n %} {% block extrahead %} - - + + {% block additional_javascript %} {% endblock %} @@ -41,7 +42,7 @@ {% if user.is_staff %} + src="{% static "admin/img/icon_changelink.gif" %}"/> {% endif %} diff --git a/htsworkflow/frontend/templates/experiments/flowcell_header.html b/htsworkflow/frontend/templates/experiments/flowcell_header.html index f71ae0f..f0cb470 100644 --- a/htsworkflow/frontend/templates/experiments/flowcell_header.html +++ b/htsworkflow/frontend/templates/experiments/flowcell_header.html @@ -1,7 +1,8 @@ +{% load staticfiles %}

About this Flowcell

Flowcell: - {{flowcell.flowcell_id}}{% if user.is_staff %}Edit{% endif%} + {{flowcell.flowcell_id}}{% if user.is_staff %}Edit{% endif%}
- - + + {% block additional_javascript %} {% endblock %} diff --git a/htsworkflow/frontend/templates/experiments/sequencer.html b/htsworkflow/frontend/templates/experiments/sequencer.html index b79aa38..411288c 100644 --- a/htsworkflow/frontend/templates/experiments/sequencer.html +++ b/htsworkflow/frontend/templates/experiments/sequencer.html @@ -1,9 +1,10 @@ {% extends "base_site.html" %} {% load humanize i18n %} +{% load staticfiles %} {% block extrahead %} - - + + {% block additional_javascript %} {% endblock %} diff --git a/htsworkflow/frontend/templates/sample_header.html b/htsworkflow/frontend/templates/sample_header.html index ed24bbd..a198cef 100644 --- a/htsworkflow/frontend/templates/sample_header.html +++ b/htsworkflow/frontend/templates/sample_header.html @@ -1,3 +1,4 @@ +{% load staticfiles %}
@@ -5,7 +6,7 @@

Library Name

Library ID: {{ lib.id }} - {% if user.is_staff %}Edit{% endif %} + {% if user.is_staff %}Edit{% endif %}
Name: {{ lib.library_name }} diff --git a/htsworkflow/frontend/templates/samples/library_detail.html b/htsworkflow/frontend/templates/samples/library_detail.html index 3214df6..65747dc 100644 --- a/htsworkflow/frontend/templates/samples/library_detail.html +++ b/htsworkflow/frontend/templates/samples/library_detail.html @@ -1,9 +1,10 @@ {% extends "base_site.html" %} +{% load staticfiles %} {% load humanize i18n %} {% block extrahead %} - - + + {% block additional_javascript %} {% endblock %} @@ -33,7 +34,7 @@ {{ result.run_date|date}} {{ result.cycle }} - {{ result.flowcell_id }}{% if user.is_staff %}Edit{% endif%} + {{ result.flowcell_id }}{% if user.is_staff %}Edit{% endif%} {{ result.lane.lane_number }} Summary {{ result.result_label }} @@ -143,7 +144,7 @@ {% if user.is_staff %} Edit + src="{% static "admin/img/icon_changelink.gif" %}" alt="Edit"/> {% endif%} diff --git a/htsworkflow/frontend/templates/samples/library_index.html b/htsworkflow/frontend/templates/samples/library_index.html index c37635d..6ee9750 100644 --- a/htsworkflow/frontend/templates/samples/library_index.html +++ b/htsworkflow/frontend/templates/samples/library_index.html @@ -1,12 +1,13 @@ {% extends "base_site.html" %} {% load admin_list i18n %} +{% load staticfiles %} {% block extrahead %} - + {% block additional_javascript %} - - + + + + {% block additional_javascript %} {% endblock %}