summaryrefslogtreecommitdiff
path: root/templates/standard_template.pt
blob: ac83c01251beeaf9209b12ab6e7839b9aa89ece0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<?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="http://pypi.python.org/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>
                  </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>

                  <li>
                    <a tal:attributes="href python:app.link_action('logout')">Logout</a>
                  </li>
		</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://www.xs4all.com/" title="Web and email hosting provided by xs4all, Netherlands">hosting by xs4all</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-2011, <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>