Source

pypi / templates / standard_template.pt

<?xml version="1.0" encoding="UTF-8"?>
<metal:macro define-macro="page"
             xmlns="http://www.w3.org/1999/xhtml"
             xmlns:tal="http://xml.zope.org/namespaces/tal"
             xmlns:metal="http://xml.zope.org/namespaces/metal">
  <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW" tal:condition="data/norobots"/>
      <meta content="text/html; charset=utf-8" http-equiv="content-type" />
      <base tal:attributes="href data/FULL_PATH_INFO"/>
      <title tal:content="string:${data/title} : Python Package Index" />
      <meta tal:attributes="content data/keywords" />
      <meta tal:attributes="content data/description" />
       <link rel="alternate" type="application/rss+xml" title="RSS: 40 latest updates"
            tal:attributes="href string:${app/config/url}?:action=rss"/>
       <link rel="alternate" type="application/rss+xml" title="RSS: 40 newest packages"
            tal:attributes="href string:${app/config/url}?:action=packages_rss"/>
       <link media="screen" tal:attributes="href string:${app/config/pydotorg}styles/screen-switcher-default.css" type="text/css" id="screen-switcher-stylesheet" rel="stylesheet" />
       <link media="screen" tal:attributes="href string:${app/config/pydotorg}styles/netscape4.css" type="text/css" rel="stylesheet" />
       <link media="print" tal:attributes="href string:${app/config/pydotorg}styles/print.css" type="text/css" rel="stylesheet" />
       <link media="screen" tal:attributes="href string:${app/config/pydotorg}styles/largestyles.css" type="text/css" rel="alternate stylesheet" title="large text" />
       <link media="screen" tal:attributes="href string:${app/config/pydotorg}styles/defaultfonts.css" type="text/css" rel="alternate stylesheet" title="default fonts" />
       <link rel="stylesheet" media="screen" href="/css/docutils.css" type="text/css"/>
       <link rel="stylesheet" media="screen" href="/css/pygments.css" type="text/css"/>

       <!-- allow pypi to override the standard pydotorg/docutils/etc. styles -->
       <link rel="stylesheet" href="/css/pypi.css" type="text/css"/>
       <link media="screen" rel="stylesheet" href="/css/pypi-screen.css" type="text/css"/>

       <metal:slot define-slot="head" />

       <style type="text/css">
       </style>
    </head>
    <body>
     <tal:x tal:condition="python:'testpypi' in app.config.url">
      <img src="/testing-site.png" style="z-index: 100; position: absolute; top: 0; left: 0; border: 0;" alt="Testing Site" />
      <img src="/testing-site-right.png" style="z-index: 100; position: absolute; top: 0; right: 0; border: 0;" alt="Testing Site" />
     </tal:x>

      <!--  Logo  -->
      <h1 id="logoheader">
       <a accesskey="1" href="http://www.python.org" id="logolink">
        <tal:x condition="python:data.get('is_py3k')">
          <img src="/python-3.png" alt="homepage" border="0" id="logo" />
        </tal:x>
        <tal:x condition="python:not data.get('is_py3k')">
          <img tal:attributes="src string:${app/config/pydotorg}images/python-logo.gif" alt="homepage" border="0" id="logo" />
        </tal:x>
       </a>
      </h1>
      <!--  Skip to Navigation  -->
      <div class="skiptonav"><a accesskey="2" href="#left-hand-navigation"><img tal:attributes="src string:${app/config/pydotorg}images/trans.gif" alt="skip to navigation" border="0" id="skiptonav" /></a></div>
      <div class="skiptonav"><a accesskey="3" href="#content-body"><img tal:attributes="src string:${app/config/pydotorg}images/trans.gif" alt="skip to content" border="0" id="skiptocontent" /></a></div>
      <!--  Utility Menu  -->

      <div id="utility-menu">
        <!--  Search Box  -->
        <div id="searchbox">
          <form tal:attributes="action app/url_path" id="searchform"
                method="get" name="searchform">
            <input type="hidden" name=":action" value="search" />
            <div id="search">
              <input class="input-text" id="term" name="term" />
              <input class="input-button" type="submit" name="submit"
                     value="search" id="submit" />
            </div>
          </form>
        </div>
<!-- XXX: reinstate this       <div id="screen-switcher"></div> -->
      </div>
      <div id="left-hand-navigation">

        <!--  Main Menu NEED LEVEL TWO HEADER AND FOOTER -->
        <div id="menu">
          <ul class="level-one">
            <li class="selected">
              <a class="selected" tal:attributes="href app/url_path">Package Index</a>

              <ul class="level-two">

                <tal:for-nav repeat="link app/navlinks_html">
                  <span tal:replace="structure link"/>
                </tal:for-nav>
		<li><a href="/pypi?:action=browse&amp;c=533&amp;show=all">Python 3 Packages</a></li>
        <li><a href="http://wiki.python.org/moin/CheeseShopTutorial">PyPI Tutorial</a></li>
        <li><a href="/security">PyPI Security</a></li>
        <li><a href="http://sourceforge.net/tracker/?group_id=66150&amp;atid=513504">PyPI Support</a></li>
        <li><a href="http://sourceforge.net/tracker/?group_id=66150&amp;atid=513503">PyPI Bug Reports</a></li>
        <li><a href="http://www.python.org/sigs/catalog-sig/">PyPI Discussion</a></li>
        <li><a href="http://wiki.python.org/moin/CheeseShopDev">PyPI Developer Info</a></li>
       </ul>

            </li>




            <li class=""><a href="http://www.python.org/about" class="" title="About The Python Language">About</a>
            </li><li class=""><a href="http://www.python.org/news" class="" title="">News</a>
            </li><li class=""><a href="http://www.python.org/doc" class="" title="">Documentation</a>
            </li><li class=""><a href="http://www.python.org/download" title="">Download</a>


            </li><li class=""><a href="http://www.python.org/community" class="" title="">Community</a>
            </li><li class=""><a href="http://www.python.org/psf" class="" title="Python Software Foundation">Foundation</a>
            </li><li class=""><a href="http://www.python.org/dev" class="" title="Python Core Language Development">Core Development</a>
            </li><li class=""><a href="http://www.python.org/links" class="" title="">Links</a>
          </li>
          </ul>
        </div>

      </div>
      <div id="content-body">
        <div id="body-main">
          <div id="content">

            <div id="breadcrumb">
              <a tal:attributes="href app/url_path">Package Index</a>
              <tal:block condition="exists:data/name">
                <span class="breadcrumb-separator">&gt;</span>
                <a tal:content="data/name"
                   tal:attributes="href python:app.packageURL(data['name'], None)"></a>
              </tal:block>
              <tal:block condition="exists:data/version">
                <span class="breadcrumb-separator">&gt;</span>
                <a tal:content="data/version"
                   tal:attributes="href python:app.packageURL(data['name'], data['version'])"></a>
              </tal:block>

            </div>

            <div id="document-floating">

            <div id="document-navigation" style="overflow-y: auto; max-height: 15em; overflow-x: hidden;">
		<tal:if-not-user condition="not: app/loggedin">
                  <h4>Not Logged In</h4>

                  <ul>
		    <li tal:condition="app/username"><a tal:attributes="href python:app.link_action('clear_auth')">Clear Basic Auth</a></li>
                    <li><a tal:attributes="href python: app.link_action('login')">Login</a></li>
                    <li><a tal:attributes="href python: app.link_action('register_form')">Register</a></li>
                    <li><a tal:attributes="href python: app.link_action('forgotten_password_form')">Lost Login?</a></li>
		    <li>Use <a tal:attributes="href string:${app/url_path}?:action=openid">OpenID</a>
                      <tal:block tal:repeat="prov data/providers">
                        <a style="border: none;" tal:attributes="href prov/login"><img width="16" height="16" tal:attributes="src prov/favicon; title prov/title; alt prov/title"/></a>
                      </tal:block>
                    </li>
                  </ul>

		</tal:if-not-user>

		<tal:if-user condition="app/loggedin">

                  <h4>Welcome <span tal:replace="app/username"/></h4>
                  <li>
                    <a tal:attributes="href python:app.link_action('user_form')">Your details</a>
                    (<a tal:attributes="href python:app.link_action('logout')">Logout</a>)
                  </li>

                  <tal:let define="packages python:app.store.user_packages(app.username)">
                    <tal:if-packages condition="packages">
                      <li>
			Your packages:
                      </li>
                      <ul>
			<li>
                          <tal:block repeat="pkg_info packages">
                            <a tal:attributes="href python: app.link_action('pkg_edit', name=pkg_info[0])"
                               tal:content="python:pkg_info[0]">package</a><br />
                          </tal:block>
			</li>
                      </ul>
                    </tal:if-packages>
                  </tal:let>

		</tal:if-user>

            </div>
        </div>
        <tal:block condition="data/project_url | nothing">
         <div style="clear:both"></div>

	      <div id="document-project-url" class="floating-box">
		<h4>Project Links</h4>
		<ul>
		  <tal:block tal:repeat="project data/project_url">
          <li>
            <a tal:content="python:project[0]" tal:attributes="href python:project[1]"></a>
		    </li>
		  </tal:block>
		</ul>
	      </div>
	    </tal:block>


            <div class="section">
              <h1><tal:x replace="data/title" /></h1>

              <metal:slot define-slot="body">

                This template has not replaced its body slot.

              </metal:slot>

            </div>


          </div>
          <div id="footer"><div id="credits">
            <a href="http://www.python.org/about/website">Website maintained by the Python community</a><br />
            <a href="http://osuosl.org/" title="Web and email hosting provided by OSU OSL">hosting by OSU OSL</a> /
            <a href="http://www.timparkin.co.uk/" title="Design by Tim Parkin, Yorkshire man, photographer and developer">design by Tim Parkin</a>
          </div>
          Copyright © 1990-2013, <a href="http://www.python.org/psf">Python Software Foundation</a><br />
          <a href="http://www.python.org/about/legal">Legal Statements</a>

          </div>
        </div>
      </div>
    </body>
  </html>
</metal:macro>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.