Changeset 2628


Ignore:
Timestamp:
12 Nov 2007, 10:58:15 (17 years ago)
Author:
Henrik Bettermann
Message:

configure and use statid directory on server

Location:
WAeUP_SRP
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/cps_custom/config_form.pt

    r2454 r2628  
    8282      <tr>
    8383        <th>
     84          <label>
     85            Static Directory on Server
     86          </label>
     87        </th>
     88        <td>
     89          <input name="static_dir" id="portal_session" value=""
     90                 tal:attributes="value pprops/static_dir" />
     91        </td>
     92      </tr>       
     93      <tr>
     94        <th>
    8495          <label for="portal_description"
    8596                 i18n:translate="label_portal_description">
  • WAeUP_SRP/base/skins/cps_custom/reconfig.py

    r2454 r2628  
    1717    description=form.get('description'),
    1818    session=form.get('session'),
     19    static_dir=form.get('static_dir'),
    1920    )
    2021
  • WAeUP_SRP/base/skins/waeup_design/header_lib_header.pt

    r1737 r2628  
    1818  <metal:block define-slot="base"></metal:block>
    1919  <link rel="stylesheet" type="text/css" media="all"
    20     tal:attributes="href string:${base_url}default.css" />
     20    tal:attributes="href string:${static_base_url}default.css" />
    2121  <link tal:condition="btool|nothing" rel="stylesheet" type="text/css"
    2222    media="all" tal:attributes="href string:${base_url}boxes.css" />
    2323  <tal:block replace="structure string:&lt;!--[if IE]&gt;" /><link
    2424    rel="stylesheet" type="text/css"
    25     tal:attributes="href string:${base_url}msie.css" /><tal:block
     25    tal:attributes="href string:${static_base_url}msie.css" /><tal:block
    2626    replace="structure string:&lt;![endif]--&gt;" />
    2727  <link rel="stylesheet" type="text/css" media="print"
    28     tal:attributes="href string:${base_url}default_print.css"/>
     28    tal:attributes="href string:${static_base_url}default_print.css"/>
    2929  <meta http-equiv="imagetoolbar" content="no" />
    3030  <metal:block define-slot="head_slot"></metal:block>
     
    3232  <link rel="stylesheet" type="text/css" media="all"
    3333    tal:condition="exists: here/custom.css"
    34     tal:attributes="href string:${base_url}custom.css;"/>
     34    tal:attributes="href string:${static_base_url}custom.css;"/>
    3535  <link rel="stylesheet" type="text/css" media="all"
    3636    tal:define="custom_css here/getCPSCustomCSS|nothing"
    3737    tal:condition="custom_css"
    38     tal:attributes="href string:${base_url}${custom_css}"/>
     38    tal:attributes="href string:${static_base_url}${custom_css}"/>
    3939  <metal:block define-slot="javascript_head_slot"></metal:block>
    4040  <script type="text/javascript"
    41     tal:attributes="src string:${base_url}functions.js"></script>
     41    tal:attributes="src string:${static_base_url}functions.js"></script>
    4242</metal:block>
  • WAeUP_SRP/base/skins/waeup_design/main_template.pt

    r2535 r2628  
    1111  context_url python:here.getContextUrl(utool=utool);
    1212  here_url here/absolute_url;
     13  static_dir here/portal_properties/static_dir;
     14  static_base_url string:${here/getBaseUrl}${static_dir};
    1315  base_url here/getBaseUrl;
    1416  member mtool/getAuthenticatedMember;
     
    4749        <metal:block fill-slot="style_slot">
    4850          <link rel="stylesheet" type="text/css" media="all"
    49                 tal:attributes="href string:${base_url}common.css" />
     51                tal:attributes="href string:${static_base_url}common.css" />
    5052          <link rel="stylesheet" type="text/css" media="all"
    51                 tal:attributes="href string:${base_url}${waeup_skin}/render.css" />
     53                tal:attributes="href string:${static_base_url}${waeup_skin}/render.css" />
    5254          <metal:block define-slot="style_slot" />
    5355        </metal:block>
     
    5860      <link rel="icon"
    5961            href="ng.png"
    60             tal:attributes="href string:${base_url}ng.png"
     62            tal:attributes="href string:${static_base_url}ng.png"
    6163            type="image/png" />
    6264      <link rel="shortcut icon"
    6365            href="icons/ng.png"
    64             tal:attributes="href string:${base_url}ng.png"
     66            tal:attributes="href string:${static_base_url}ng.png"
    6567            type="image/png" />
    6668    </head>
     
    8587            <td style="width: 20px;"></td>
    8688            <td valign="top" style="width: 120px; padding: 10px 10px 0 0; text-align: right;">
    87               <img tal:attributes="src string:${base_url}logo_left.jpg"  alt="Logo" />
     89              <img tal:attributes="src string:${static_base_url}logo_left.jpg"  alt="Logo" />
    8890            </td>
    8991            <td style="padding: 27px 0 0 0; text-align: left;" valign="top">
    90               <img tal:attributes="src string:${base_url}logo_right.gif" alt="Logo" />
     92              <img tal:attributes="src string:${static_base_url}logo_right.gif" alt="Logo" />
    9193            </td>
    9294            <td style="width: 20px;"></td>
  • WAeUP_SRP/base/skins/waeup_design/slip_template.pt

    r2271 r2628  
    1111  context_url python:here.getContextUrl(utool=utool);
    1212  here_url here/absolute_url;
    13   base_url here/getBaseUrl;
     13  base_url here/getBaseUrl; 
     14  static_dir here/portal_properties/static_dir;
     15  static_base_url string:${base_url}${static_dir}; 
    1416  member mtool/getAuthenticatedMember;
    1517  isAnon mtool/isAnonymousUser;
     
    4345        <metal:block fill-slot="style_slot">
    4446          <link rel="stylesheet" type="text/css" media="all"
    45                 tal:attributes="href string:${base_url}common.css" />
     47                tal:attributes="href string:${static_base_url}common.css" />
    4648          <metal:block define-slot="style_slot" />
    4749        </metal:block>
     
    5254      <link rel="icon"
    5355            href="ng.png"
    54             tal:attributes="href string:${base_url}ng.png"
     56            tal:attributes="href string:${static_base_url}ng.png"
    5557            type="image/png" />
    5658      <link rel="shortcut icon"
    5759            href="icons/ng.png"
    58             tal:attributes="href string:${base_url}ng.png"
     60            tal:attributes="href string:${static_base_url}ng.png"
    5961            type="image/png" />
    6062    </head>
     
    7779          <td style="width: 20px;" valign="top"></td>
    7880          <td valign="top" style="width: 80px; padding: 0.5em; text-align: right;">
    79             <img tal:attributes="src string:${base_url}logo_left.jpg"  alt="Logo"
     81            <img tal:attributes="src string:${static_base_url}logo_left.jpg"  alt="Logo"
    8082                     height="84" width="82" />
    8183          </td>
    8284          <td style="padding: 2em 0em 0em 0em; text-align: left;" valign="top">
    83             <img tal:attributes="src string:${base_url}logo_right.gif"
     85            <img tal:attributes="src string:${static_base_url}logo_right.gif"
    8486                     alt="Logo" height="51" width="234" />
    8587          </td>
  • WAeUP_SRP/fceokene/profiles/customized_files.txt

    r2527 r2628  
    33layouts/acco_hall.xml
    44vocabularies/cos.xml (edited by Issoufou)
     5vocabularies/levels.xml
  • WAeUP_SRP/fceokene/profiles/default/properties.xml

    r2466 r2628  
    55 <property name="enable_portal_joining" type="boolean">False</property>
    66 <property name="session" type="string">2006/2007</property>
     7 <property name="static_dir" type="string">static/</property>
    78</site>
  • WAeUP_SRP/fceokene/waeup_custom/main_template.pt

    r2535 r2628  
    1212  here_url here/absolute_url;
    1313  base_url here/getBaseUrl;
     14  static_dir here/portal_properties/static_dir;
     15  static_base_url string:${here/getBaseUrl}${static_dir};
    1416  member mtool/getAuthenticatedMember;
    1517  isAnon mtool/isAnonymousUser;
     
    4749        <metal:block fill-slot="style_slot">
    4850          <link rel="stylesheet" type="text/css" media="all"
    49                 tal:attributes="href string:${base_url}common.css" />
     51                tal:attributes="href string:${static_base_url}common.css" />
    5052          <link rel="stylesheet" type="text/css" media="all"
    51                 tal:attributes="href string:${base_url}${waeup_skin}/render.css" />
     53                tal:attributes="href string:${static_base_url}${waeup_skin}/render.css" />
    5254          <metal:block define-slot="style_slot" />
    5355        </metal:block>
     
    5860      <link rel="icon"
    5961            href="ng.png"
    60             tal:attributes="href string:${base_url}ng.png"
     62            tal:attributes="href string:${static_base_url}ng.png"
    6163            type="image/png" />
    6264      <link rel="shortcut icon"
    6365            href="icons/ng.png"
    64             tal:attributes="href string:${base_url}ng.png"
     66            tal:attributes="href string:${static_base_url}ng.png"
    6567            type="image/png" />
    6668    </head>
     
    8587            <td style="width: 20px;"></td>
    8688            <td style="width: 170px; text-align: center; padding-top: 0.5em;">
    87               <img tal:attributes="src string:${base_url}logo_left.jpg"  alt="Logo" />
     89              <img tal:attributes="src string:${static_base_url}logo_left.jpg"  alt="Logo" />
    8890            </td>
    8991            <td padding=0.5em><h1>Federal College of Education Okene<br />Kogi State, Nigeria</h1></td>
  • WAeUP_SRP/fceokene/waeup_custom/slip_template.pt

    r2277 r2628  
    1212  here_url here/absolute_url;
    1313  base_url here/getBaseUrl;
     14  static_dir here/portal_properties/static_dir;
     15  static_base_url string:${base_url}${static_dir};   
    1416  member mtool/getAuthenticatedMember;
    1517  isAnon mtool/isAnonymousUser;
     
    4345        <metal:block fill-slot="style_slot">
    4446          <link rel="stylesheet" type="text/css" media="all"
    45                 tal:attributes="href string:${base_url}common.css" />
     47                tal:attributes="href string:${static_base_url}common.css" />
    4648          <metal:block define-slot="style_slot" />
    4749        </metal:block>
     
    5254      <link rel="icon"
    5355            href="ng.png"
    54             tal:attributes="href string:${base_url}ng.png"
     56            tal:attributes="href string:${static_base_url}ng.png"
    5557            type="image/png" />
    5658      <link rel="shortcut icon"
    5759            href="icons/ng.png"
    58             tal:attributes="href string:${base_url}ng.png"
     60            tal:attributes="href string:${static_base_url}ng.png"
    5961            type="image/png" />
    6062    </head>
     
    7779          <td style="width: 20px;" valign="top"></td>
    7880          <td valign="top" style="width: 80px; padding: 0.5em; text-align: right;">
    79             <img tal:attributes="src string:${base_url}logo_left.jpg"  alt="Logo"
     81            <img tal:attributes="src string:${static_base_url}logo_left.jpg"  alt="Logo"
    8082                     height="84"  />
    8183          </td>
Note: See TracChangeset for help on using the changeset viewer.