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.

Changes between Version 7 and Version 8 of Ticket #7190, comment 4


Ignore:
Timestamp:
12/05/11 13:34:30 (12 years ago)
Author:
atarkowska
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7190, comment 4

    v7 v8  
    99{{{ 
    1010{% 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 
     15or use context processor for setting "global" variable.   
     16 
     17 
     18{{{ 
     19{% load static %} 
    1120<img src="{{ STATIC_URL }}YOUR_APP/image/logo.jpg" /> 
    1221}}} 
     
    1524''' 
    1625 
    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" %}  
    1827 
    1928{{{ 
    2029 
    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" %}"/> 
    2231}}} 
    2332 
    2433'''http://host:port/static/common/javascript/jquery_1.4.2.js 
    2534''' 
    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.)

We're Hiring!