Changeset 5741

Show
Ignore:
Timestamp:
11/20/08 19:44:06 (2 months ago)
Author:
mramm
Message:

Update to use the tg.flash and tg.flash_status variables that are automatically added.

Update to use the url function from turbogears everywhere so quickstart templates do the right thing with SCRIPT_NAME when mounted outside the root of a site.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • projects/tg.devtools/trunk/devtools/templates/crud/master.html_tmpl

    r4653 r5741  
    55      xmlns:xi="http://www.w3.org/2001/XInclude" 
    66      py:strip=""> 
    7 <?python 
    8 import tg 
    9 tg_flash = tg.get_flash() 
    10 ?> 
     7       
    118<head py:match="head" py:attrs="select('@*')"> 
    129    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> 
    1310    <title py:replace="''">Your title goes here</title> 
    1411    <meta py:replace="select('*')"/> 
    15     <link rel="stylesheet" type="text/css" media="screen" href="/css/style.css" /> 
     12    <link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/style.css')}" /> 
    1613</head> 
    1714 
    1815<body py:match="body" py:attrs="select('@*')"> 
    1916  <div id="main_content"> 
    20     <div id="status_block" py:if="tg_flash" class="flash" py:content="tg_flash"></div> 
     17    <div id="status_block" py:if="tg.flash" class="flash" py:content="tg.flash"></div> 
    2118    <div py:replace="select('*|text()')"/> 
    2219    <!-- End of main_content --> 
  • projects/tg.devtools/trunk/devtools/templates/turbogears/+package+/templates/footer.html

    r5130 r5741  
    55<div id="footer">  
    66  <div class="flogo"> 
    7     <img src="/images/under_the_hood_blue.png" alt="TurboGears" /> 
     7    <img src="${tg.url('/images/under_the_hood_blue.png')}" alt="TurboGears" /> 
    88    <p><a href="http://www.turbogears.org/2.0/">Powered by TurboGears 2</a></p> 
    99  </div> 
  • projects/tg.devtools/trunk/devtools/templates/turbogears/+package+/templates/header.html

    r5144 r5741  
    55  <div id="header"> 
    66    <div class="alogo"> 
    7       <img src="/images/logo.png" alt="TG2!"/> 
     7      <img src='${tg.url("/images/logo.png")}' alt="TG2!"/> 
    88    </div> 
    99    <div class="headtext"> 
  • projects/tg.devtools/trunk/devtools/templates/turbogears/+package+/templates/master.html

    r5638 r5741  
    55      xmlns:xi="http://www.w3.org/2001/XInclude" 
    66      py:strip=""> 
    7 <?python 
    8 import tg 
    9 tg_flash = tg.get_flash() 
    10 tg_status = tg.get_status()  
    11 ?> 
    127<head py:match="head" py:attrs="select('@*')"> 
    138    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> 
    149    <title py:replace="''">Your title goes here</title> 
    1510    <meta py:replace="select('*')"/> 
    16     <link rel="stylesheet" type="text/css" media="screen" href="/css/style.css" /> 
     11    <link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/style.css')}" /> 
    1712</head> 
    1813 
     
    2015  ${header()} 
    2116  <div id="main_content"> 
    22     <div id="${tg_status}" py:if="tg_flash" class="flash" 
    23      py:content="tg_flash"> 
     17    <div id="${tg.flash_status}" py:if="tg.flash" class="flash" 
     18     py:content="tg.flash"> 
    2419    </div>  
    2520    <div py:replace="select('*|text()')"/>