Task #7369 (closed)
Adding "static" cutom tag to builtins
Reported by: | atarkowska | Owned by: | atarkowska |
---|---|---|---|
Priority: | critical | Milestone: | OMERO-4.4 |
Component: | Web | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2011-12-13 (4) |
Description
django.template.base.add_to_builtins function allows to add custom tag to public built in tags. Custom tag will use python urlparse.urljoin to construct a full (“absolute”) URL by combining a “base URL” (base) with another URL (url).
Change History (6)
comment:1 Changed 12 years ago by atarkowska
- Status changed from new to accepted
comment:2 Changed 12 years ago by atarkowska
- Summary changed from Adding cutom tag to builtins to Adding "static" cutom tag to builtins
comment:3 Changed 12 years ago by atarkowska
- Remaining Time changed from 0.5 to 0
- Resolution set to fixed
- Status changed from accepted to closed
comment:4 Changed 12 years ago by atarkowska
- Component changed from General to Web
- Priority changed from minor to critical
comment:5 Changed 12 years ago by Aleksandra Tarkowska <atarkowska@…>
(In [976df64a3c10d20e4aa92f2d3b59da27745c8487/ome.git]) adding custom template tag 'static' to built in tags
see #7369, that change allows to remove custom processors
comment:6 Changed 12 years ago by Aleksandra Tarkowska <atarkowska@…>
(In [9f42c6e5e8a037048a8a88b88eafe063b222d31f/ome.git]) adding custom template tag 'static' to built in tags
see #7369, that change allows to remove custom processors
New built in custom tag {% static "YOUR_APP/path_to_media" %}
http://host:port/static/common/javascript/jquery_1.4.2.js