thirdparty/google_appengine/google/appengine/ext/admin/templates/base.html
changeset 109 620f9b141567
child 149 f2e327a7c5de
equal deleted inserted replaced
108:261778de26ff 109:620f9b141567
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
       
     2 <html xmlns="http://www.w3.org/1999/xhtml">
       
     3   <head>
       
     4     <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
       
     5     <title>{% block title %}{% endblock %}</title>
       
     6     <style type="text/css">{% include "css/base.css" %}</style>
       
     7     <style type="text/css">{% include "css/ae.css" %}</style>
       
     8     <style type="text/css">{% include "css/nav.css" %}</style>
       
     9     {% block head %}{% endblock %}
       
    10   </head>
       
    11   <body {% block bodyattributes %}{% endblock %}>
       
    12     <div class="g-doc-1024">
       
    13     
       
    14     <div id="hd" class="g-section">
       
    15 
       
    16       <div class="g-section">
       
    17         <img id="ae-logo" src="./images/google.gif" width="153" height="47"
       
    18          alt="Google App Engine"/>
       
    19       </div>
       
    20       
       
    21       <div id="ae-appbar-lrg" class="g-section">
       
    22         <h1>Development Console</h1>
       
    23       </div>
       
    24       
       
    25     </div>
       
    26     
       
    27     
       
    28     <div id="bd" class="g-section">
       
    29     
       
    30       <div class="g-section g-tpl-160">
       
    31     
       
    32         <div id="ae-lhs-nav" class="g-unit g-first">
       
    33     
       
    34           <div id="ae-nav" class="g-c">
       
    35         
       
    36             <ul id="menu">
       
    37               <li><a href="{{ datastore_path }}">Datastore Viewer</a></li>
       
    38               <li><a href="{{ interactive_path }}">Interactive Console</a></li>
       
    39             </ul>
       
    40         
       
    41           </div>
       
    42         
       
    43         </div>
       
    44         
       
    45         <div id="ae-content" class="g-unit">
       
    46           {% block body %}{% endblock %}
       
    47         </div>
       
    48     
       
    49     </div>
       
    50     
       
    51         <div id="ft">
       
    52           <p>
       
    53             &copy;2008 Google
       
    54           </p>
       
    55         </div>
       
    56     {% block final %}{% endblock %}
       
    57     </div>
       
    58     <script type="text/javascript">
       
    59     //<![CDATA[
       
    60 
       
    61     function walk(element, condition, operation) {
       
    62       if (!element) return;
       
    63       if (condition(element)) {
       
    64         operation(element);
       
    65         return;
       
    66       }
       
    67       for (var e = element.firstChild; e != null; e = e.nextSibling) {
       
    68         walk(e, condition, operation);
       
    69       }
       
    70     }
       
    71 
       
    72     function isCurrentLink(e) {
       
    73       if (e.tagName != "A") return false;
       
    74       re = new RegExp("^" + e.href + ".*(\\?.*)?$");
       
    75       return re.test(window.location.href);
       
    76     }
       
    77 
       
    78     function makeSelected(e) {
       
    79       e.className = "ae-nav-selected";
       
    80     }
       
    81     
       
    82     walk(document.getElementById("menu"), isCurrentLink, makeSelected);
       
    83 
       
    84     //]]>
       
    85     </script>
       
    86   </body>
       
    87 </html>