Source

pypi / templates / standard_template.pt

Full commit
micktwomey 26ea158 
micktwomey 87d244c 
martin.von.loewi… 88309dd 
jlg 67f3b41 



martin.von.loewi… a7606ce 
jlg 67f3b41 
martin.von.loewi… f0df493 
richard 7da20d7 
richard 02b176d 

Richard Jones 41ff2ec 

Richard Jones fa2e83a 
Richard Jones 41ff2ec 
martin.von.loewi… 88309dd 





Richard Jones 756d3fb 
martin.von.loewi… 88309dd 
richard b935ebe 
Richard Jones f330b98 
Richard Jones 9eb3932 
richard b935ebe 
martin.von.loewi… 88309dd 

martin.von.loewi… 8c8fe02 
martin.von.loewi… 88309dd 
jlg 67f3b41 

Richard Jones cfe17b6 
Richard Jones f6a9bf5 

Richard Jones cfe17b6 
Richard Jones fa2e83a 
jlg 67f3b41 

richard 974e719 

martin.von.loewi… 9193331 
richard 974e719 




jlg 67f3b41 

martin.von.loewi… 992f0d5 

jlg 67f3b41 
richard 2149f45 
jlg 67f3b41 


richard 512f2ee 
Donald Stufft 5ccc295 
richard 512f2ee 
jlg 67f3b41 
richard 512f2ee 


jlg 67f3b41 





martin.von.loewi… 88309dd 
jlg 67f3b41 

martin.von.loewi… 88309dd 
jlg 67f3b41 
martin.von.loewi… 1d6e746 
martin.von.loewi… 88309dd 
jlg 8814816 
martin.von.loewi… 88309dd 
jlg 8814816 


richard e6be0c6 
Richard Jones 9220b42 
Richard Jones 973e492 
Richard Jones 9220b42 
Richard Jones d7c3cdc 

Richard Jones 9220b42 

jlg 8814816 
jlg 67f3b41 
richard 2149f45 

martin.von.loewi… 88309dd 
richard 2149f45 
jlg 67f3b41 



martin.von.loewi… 88309dd 
richard 2149f45 
jlg 67f3b41 
martin.von.loewi… 4e2c334 

jlg 67f3b41 



martin.von.loewi… 88309dd 
jlg 67f3b41 



richard 2149f45 
jlg 67f3b41 
martin.von.loewi… 1d6e746 
Richard Jones 64a53c7 




jlg 67f3b41 
martin.von.loewi… 88309dd 
Richard Jones 64a53c7 

jlg 67f3b41 
martin.von.loewi… 88309dd 
jlg 67f3b41 
richard 2149f45 
tarek.ziade 4088693 
richard 2149f45 
tarek.ziade 4088693 
martin.von.loewi… 88309dd 









Richard Jones f50bff7 
martin.von.loewi… 88309dd 










Richard Jones d41982d 
martin.von.loewi… a0a851d 
richard 2149f45 
martin.von.loewi… 88309dd 














richard 2149f45 
martin.von.loewi… 88309dd 
richard d2bc2b5 
martin.von.loewi… 88309dd 
tarek.ziade 4088693 


richard 2149f45 
martin.von.loewi… 88309dd 










richard 2149f45 

jlg 67f3b41 
richard 974e719 
jlg 67f3b41 

martin.von.loewi… 88309dd 
jlg 67f3b41 
martin.von.loewi… 88309dd 
jlg 67f3b41 
martin.von.loewi… 88309dd 
jlg 67f3b41 





Richard Jones fa2e83a 
martin.von.loewi… 48c3bcf 
jlg 67f3b41 
Richard Jones fa2e83a 
jlg 67f3b41 






richard 2149f45 
<?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" autofocus="autofocus">
            <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="https://bitbucket.org/pypa/pypi/issues">PyPI Bug Reports</a></li>
        <li><a href="http://www.python.org/sigs/distutils-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>