Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
- Timestamp:
-
12/05/11 13:34:30 (12 years ago)
- Author:
-
atarkowska
- Comment:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v7
|
v8
|
|
9 | 9 | {{{ |
10 | 10 | {% load static %} |
| 11 | <link rel="stylesheet" href="{% get_static_prefix %}YOUR_APP/css/layout.css" type="text/css" /> |
| 12 | }}} |
| 13 | '''WARNING''': In every inherited template any code outside blocks redefinitions is not executed. So in this case {% load webclient_tags %} has to be called inside each block. |
| 14 | |
| 15 | or use context processor for setting "global" variable. |
| 16 | |
| 17 | |
| 18 | {{{ |
| 19 | {% load static %} |
11 | 20 | <img src="{{ STATIC_URL }}YOUR_APP/image/logo.jpg" /> |
12 | 21 | }}} |
… |
… |
|
15 | 24 | ''' |
16 | 25 | |
17 | | - CUSTOMISATION: In order to refer to the existing static files which are common for every OMERO.web apps |
| 26 | - CUSTOMISATION: In order to refer to the existing static files which are served from OMERO.web app you need to add static tag {% static "YOUR_APP/path_to_media" %} |
18 | 27 | |
19 | 28 | {{{ |
20 | 29 | |
21 | | <script type="text/javascript" src="{{ STATIC_COMMON_PREFIX }}javascript/jquery_1.4.2.js"/> |
| 30 | <script type="text/javascript" src="{% static "common/javascript/jquery_1.4.2.js" %}"/> |
22 | 31 | }}} |
23 | 32 | |
24 | 33 | '''http://host:port/static/common/javascript/jquery_1.4.2.js |
25 | 34 | ''' |
26 | | |
27 | | - CUSTOMISATION: In order to refer to the existing static files which are specific for the existing app use custom tag |
28 | | |
29 | | {{{ |
30 | | {% load webclient_tags %} |
31 | | <link rel="stylesheet" href="{% get_static_webclient_prefix %}css/layout.css" type="text/css" /> |
32 | | }}} |
33 | | |
34 | | '''WARNING''': In every inherited template any code outside blocks redefinitions is not executed. So in this case {% load webclient_tags %} has to be called inside each block. |
35 | | |
36 | | or use context processor for setting "global" variable. |
37 | | |
38 | | {{{ |
39 | | <link rel="stylesheet" href="{{ STATIC_WEBCLIENT_PREFIX }}css/layout.css" type="text/css" /> |
40 | | }}} |
41 | | |
42 | | '''http://host:port/static/webclient/css/layout.css |
43 | | ''' |
1.3.13-PRO © 2008-2011
Agilo Software all
rights reserved
(this page was served in: 0.25949 sec.)