projects
/
htsworkflow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update templates to consistently use {% static %} instead of hard coding paths
[htsworkflow.git]
/
htsworkflow
/
frontend
/
templates
/
sample_header.html
diff --git
a/htsworkflow/frontend/templates/sample_header.html
b/htsworkflow/frontend/templates/sample_header.html
index ed24bbde1e21b3e8d2c4267fdcd2c20920dd4b98..a198cef383aa91e5b0a19c5ebd68413c3da928e4 100644
(file)
--- a/
htsworkflow/frontend/templates/sample_header.html
+++ b/
htsworkflow/frontend/templates/sample_header.html
@@
-1,3
+1,4
@@
+{% load staticfiles %}
<div id="librarydetail"
about="{{lib.get_absolute_url}}"
typeof="libns:Library">
<div id="librarydetail"
about="{{lib.get_absolute_url}}"
typeof="libns:Library">
@@
-5,7
+6,7
@@
<h2>Library Name</h2>
<b>Library ID</b>:
<a href="{{lib.get_absolute_url}}"><span property="libns:library_id">{{ lib.id }}</span></a>
<h2>Library Name</h2>
<b>Library ID</b>:
<a href="{{lib.get_absolute_url}}"><span property="libns:library_id">{{ lib.id }}</span></a>
- {% if user.is_staff %}<a href="{{lib.get_admin_url}}"><img class="icon_button" src="
/media/img/admin/icon_changelink.gif
" alt="Edit"/></a>{% endif %}
+ {% if user.is_staff %}<a href="{{lib.get_admin_url}}"><img class="icon_button" src="
{% static "admin/img/icon_changelink.gif" %}
" alt="Edit"/></a>{% endif %}
<br />
<b>Name</b>:
<span property="libns:name">{{ lib.library_name }}</span>
<br />
<b>Name</b>:
<span property="libns:name">{{ lib.library_name }}</span>