app/soc/templates/soc/base.html
changeset 79 58001ec7720c
child 83 3f4f7c540b75
equal deleted inserted replaced
78:206e6eeed6c4 79:58001ec7720c
       
     1 {% comment %}
       
     2 Licensed under the Apache License, Version 2.0 (the "License");
       
     3 you may not use this file except in compliance with the License.
       
     4 You may obtain a copy of the License at
       
     5 
       
     6   http://www.apache.org/licenses/LICENSE-2.0
       
     7 
       
     8 Unless required by applicable law or agreed to in writing, software
       
     9 distributed under the License is distributed on an "AS IS" BASIS,
       
    10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    11 See the License for the specific language governing permissions and
       
    12 limitations under the License.
       
    13 {% endcomment %}
       
    14 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
       
    15 <html>
       
    16  <head>
       
    17   <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
       
    18 	{% block stylesheet %}
       
    19   <link rel="stylesheet" href="/soc/content/css/soc.css" type="text/css"/>
       
    20 	{% endblock %}
       
    21   <title>{% block page_title %}Google Open Source Programs{% endblock %}</title>
       
    22 	{% block scripts %}{% endblock %}
       
    23 
       
    24  </head>
       
    25 
       
    26  <body>
       
    27 
       
    28   <div id="login">
       
    29 	{% block login_links %}
       
    30    <a href="http://code.google.com/p/soc/issues/list">Report bugs</a> | 
       
    31    <a href="/">Sign in</a>
       
    32 	{% endblock %}
       
    33   </div>
       
    34 
       
    35   <div id="header">
       
    36    <div id="logo">
       
    37 	{% block logo %}
       
    38 <a href="/"><img src="/soc/content/images/gospo-logo.gif" alt="Google Open Source Programs"/></a>
       
    39    <span title=" TODO: logo updated in site sponsor interface " class="popup">
       
    40 <small>*</small>
       
    41    </span>
       
    42 	{% endblock %}
       
    43    </div>
       
    44 
       
    45    <div id="title">
       
    46 	{% block header_title %}Google Open Source Programs{% endblock %}
       
    47    </div>
       
    48   </div>
       
    49 
       
    50   <div id="side" dir="ltr">
       
    51    <div id="menu">
       
    52 {% block sidebar_menu %}	
       
    53     <ul>
       
    54      <li>
       
    55 <a class="selected" href="/">Google Open Source Programs</a>
       
    56       <ul>
       
    57        <li>
       
    58 <a href="/user/linkname/profile">User (Sign In)</a>
       
    59    <span title=" No Profile or Roles sidebar menu items until user signs in " class="popup">
       
    60 <small>*</small>
       
    61    </span>
       
    62 
       
    63        </li>
       
    64       </ul>
       
    65       <ul>
       
    66        <li>
       
    67 <a href="/program/gsoc2009/home">Google Summer of Code</a>
       
    68         <ul>
       
    69          <li>
       
    70 <a href="/program/gsoc2009/community">Community</a>
       
    71          </li>
       
    72          <li>
       
    73 <a href="/program/gsoc2009/docs/faqs">Program FAQs</a>
       
    74          </li>
       
    75          <li>
       
    76 <a href="/program/gsoc2009/docs/tos">Terms of Service</a>
       
    77          </li>
       
    78         </ul>
       
    79        </li>
       
    80        <li>
       
    81 <a href="/program/ghop2008/home">Google Highly Open Participation</a>
       
    82         <ul>
       
    83          <li>
       
    84 <a href="/program/ghop2008/community">Community</a>
       
    85          </li>
       
    86          <li>
       
    87 <a href="/program/ghop2008/docs/faqs">Program FAQs</a>
       
    88          </li>
       
    89          <li>
       
    90 <a href="/program/ghop2008/docs/rules">Contest Rules</a>
       
    91          </li>
       
    92         </ul>
       
    93        </li>
       
    94       </ul>
       
    95      </li>
       
    96     </ul>
       
    97 {% endblock %}
       
    98    </div>
       
    99 
       
   100    <div id="search">
       
   101 	{% block sidebar_search_field %}
       
   102     <form id="searchbox_015986126177484454297:pfmwlvdl42y" action="http://www.google.com/cse">
       
   103      <input type="hidden" name="cx" value="015986126177484454297:pfmwlvdl42y" />
       
   104      <input type="hidden" name="cof" value="FORID:0" />
       
   105      <div class="header">
       
   106 Search Google Open Source:
       
   107      </div>
       
   108      <input name="q" type="text" size="20" />
       
   109      <input type="submit" name="sa" value="Search" />
       
   110      <br/>
       
   111     </form>
       
   112     <script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_015986126177484454297:pfmwlvdl42y">
       
   113     </script></form>
       
   114 	{% endblock %}
       
   115    </div>
       
   116 
       
   117    <div id="badge">
       
   118 	{% block badge %}
       
   119 <a href="http://code.google.com/p/soc/" target="_blank">Powered by Melange</a>
       
   120    <span title=" TODO: need a Melange logo " class="popup">
       
   121 <small>*</small>
       
   122    </span>
       
   123 	{% endblock %}
       
   124    </div>
       
   125   </div>
       
   126 
       
   127   <div id="body">
       
   128 	
       
   129    <div style="line-height: 140%;">
       
   130 	{% block body %}
       
   131 <p class="todo">
       
   132 This is generic HTML that can be configured via the site administration
       
   133 interface.  It is unclear if the site admin can be trusted and allowed to enter
       
   134 any arbitrary HTML (more flexible and powerful) or if only a whitelist of "safe"
       
   135 HTML tags should be permitted (to prevent XSS, etc.).
       
   136 (<a href="http://www.feedparser.org/"><code>feedparser</code></a> is useful for
       
   137 this and is written in Python, should whitelisting be necessary.)
       
   138 </p>
       
   139 <p>
       
   140 Welcome to Google Open Source Programs, the home of
       
   141 <a href="/program/gsoc2009/home">Google Summer of Code</a>
       
   142 and the
       
   143 <a href="/program/ghop2008/home">Google Highly Open Participation</a> contest.
       
   144 </p>
       
   145 <p class="todo">
       
   146 The site administration interface will provide a mechanism to select a feed to
       
   147 be displayed here.
       
   148 </p>
       
   149 	{% endblock %}
       
   150    </div>
       
   151 
       
   152 	
       
   153    <div id="footer" dir="ltr">
       
   154     <div class="text">
       
   155 	{% block footer %}
       
   156 &copy;2008 Google -
       
   157 <a href="http://www.google.com/">Google Home</a> -
       
   158 <a href="http://www.google.com/privacy.html">Privacy Policy</a>
       
   159 	{% endblock %}
       
   160     </div>
       
   161    </div>
       
   162   </div>
       
   163 
       
   164 {% block google_analytics %}
       
   165   <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
       
   166   </script>
       
   167 
       
   168   <script type="text/javascript">
       
   169 _uacct="UA-4291635-1"; // code.google.com site-wide tracking
       
   170 _uanchor=1;
       
   171 _uff=0;
       
   172 urchinTracker();
       
   173   </script>
       
   174 {% endblock %}
       
   175  </body>
       
   176 </html>