aboutsummaryrefslogtreecommitdiff
blob: 9fe1f92b125d99003a5f13bf2f2c2e72e6b5d015 (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
226
227
228
229
230
<?xml version="1.0" encoding="UTF-8"?>
<?python from genshi import HTML ?>
<?python import web.model as model ?>
<?python import web.lib.links as links ?>
<?python from web.lib.headers import lastmodified_rightcontent ?>
<?python
def absurl(path='',qs=''):
    if qs == '':
        qs = safeqs
    return links.absurl(path, qs)
def relurl(path='',qs=''):
    if qs == '':
        qs = safeqs
    return links.relurl(path, qs)
def full_cat_url(baseurl):
    qs_full_cat = safeqs.copy()
    qs_full_cat['full_cat'] = ''
    return relurl(baseurl,qs_full_cat)
def alpha_url(baseurl):
    qs_alpha = safeqs.copy()
    qs_alpha.pop('full_cat', None)
    return relurl(baseurl,qs_alpha)
?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/" xml:lang="en" lang="en" py:strip="">
  <py:match path="head" once="true">
    <head py:attrs="select('@*')">
      <title>
        Gentoo Packages ${pagetitle}
      </title>
      <link 
        rel="stylesheet" 
        type="text/css" 
        href="/media/style.css" />
      <link 
        rel="alternate" 
        type="application/atom+xml" 
        href="${absurl(mainrss)}" 
        title="Gentoo Packages" />
      <link 
        py:if="pagerss and mainrss != pagerss"
        rel="alternate" type="application/atom+xml" 
        href="${absurl(pagerss)}" 
        title="Gentoo Packages ${pagetitle}" />
      <link 
        rel="search" type="application/opensearchdescription+xml" 
        href="http://www.gentoo.org/search/www-gentoo-org.xml" 
        title="Gentoo Website" />
      <link 
        rel="search" type="application/opensearchdescription+xml" 
        href="http://www.gentoo.org/search/forums-gentoo-org.xml" 
        title="Gentoo Forums" />
      <link 
        rel="search" type="application/opensearchdescription+xml" 
        href="http://www.gentoo.org/search/bugs-gentoo-org.xml" 
        title="Gentoo Bugzilla" />
      <link 
        rel="search" type="application/opensearchdescription+xml" 
        href="http://www.gentoo.org/search/packages-gentoo-org.xml" 
        title="Gentoo Packages" />
    </head>
  </py:match>
  
  <py:match path="leftcontent" once="true">
    <div id="leftcontent">
        <div id="banner">
			<a href="/"><img src="/media/packages_gentoo_logo.jpg" alt="Gentoo Logo" /></a>
		</div>
        <div id="search">
            <form method="get" action="http://www.google.com/custom">
                <input type="submit" name="sa" value="Search" />
                <input type="text" name="q" size="16" maxlength="255" value="" />
                <input type="hidden" name="sitesearch" value="packages.gentoo.org" />
            </form>
        </div>
		<div py:for="day, pvs in daylist">
			<p>${day}</p>
			<ul>
				<li py:for="pv,pn in pvs"><a href="${relurl('/package/'+pn)}">${HTML(pv)}</a></li>
			</ul>
		</div>
    </div>
  </py:match>
  
  <py:match path="rightcontent" once="true">
    <div id="rightcontent">
      <p class="update">
        Last update:<br />${HTML(lastmodified_rightcontent(lastupdate))}
      </p>
      
      <div>
          <span class="left-legend">Legend</span>
          <ul class="legend left-bar-list" 
              py:if="not cherrypy.request.path_info.startswith('/arch/')">
              <li><span class="stable">+</span> - stable</li>
              <li><span class="unstable">~</span> - unstable</li>
              <li><span class="hardmask">M</span> - hardmask</li>
          </ul>

          <ul class="legend left-bar-list" 
              py:if="cherrypy.request.path_info.startswith('/arch/')"
              py:with="baseurl = '/'.join(cherrypy.request.path_info.split('/')[0:3])">
              <li><span class="stable">+</span> - <a href="${relurl(baseurl+'/stable')}">stable</a></li>
              <li><span class="unstable">~</span> - <a href="${relurl(baseurl+'/unstable')}">unstable</a></li>
              <li><span class="hardmask">M</span> - <a href="${relurl(baseurl+'/hardmask')}">hardmask</a></li>
          </ul>
      </div>

      <div py:with="baseurl = cherrypy.request.path_info">
          <span class="left-legend">Arches</span>
          <br />
          <a href="${relurl(baseurl,qs=safeqs_arches['common'])}">C</a>
          <a href="${relurl(baseurl,qs=safeqs_arches['exotic'])}">E</a>
          <a href="${relurl(baseurl,qs=safeqs_arches['all'])}">A</a>
          <a href="${relurl(baseurl,qs=safeqs_arches['fbsd'])}">F</a>
          <a href="${relurl(baseurl,qs=safeqs_arches['prefix'])}">P</a>
          <a href="${relurl(baseurl,qs=safeqs_arches['linux'])}">L</a>
          <ul class="platforms left-bar-list">
              <li><a href="${relurl('/')}">all</a></li>
              <li py:for="arch in sorted(arches)">
              <a href="${relurl('/arch/'+arch)}">${arch}</a>
              </li>
          </ul>
      </div>
      
      <div>
          <span class="left-legend">Links</span>
          <ul class="links left-bar-list">
              <li
              py:if="cherrypy.request.path_info.startswith('/category/') and 'full_cat' not in safeqs"
              py:with="baseurl = cherrypy.request.path_info"
              >
                <a href="${full_cat_url(baseurl)}">category-full</a>
              </li>
              <li
              py:if="cherrypy.request.path_info.startswith('/category/') and 'full_cat' in safeqs"
              py:with="baseurl = cherrypy.request.path_info"
              >
                <a href="${alpha_url(baseurl)}">category-latest</a>
              </li>
              <li><a href="${relurl('/categories/')}">categories</a></li>
              <li><a href="${relurl('/verbump/')}">version bumps</a></li>
              <li><a href="${relurl('/newpackage/')}">new packages</a></li>
              <li><a href="${relurl('/faq/')}">FAQ</a></li>
              <!--
              <li><a href="/category/">category</a></li>
              -->
              <li class="feed-list"><a href="${relurl(mainrss)}">All entries</a></li>
              <li class="feed-list" py:if="pagerss and mainrss != pagerss"><a href="${relurl(pagerss)}">${pagerss_reltitle}</a></li>
          </ul>
      </div>
    </div>
  </py:match>
  
  <py:match path="pkginfo" once="false">
  <table class="pkginfo">
      <tr>
          <td class="category"><a href="${relurl('/category/'+pkg.meta.atom.category)}">${pkg.meta.atom.category}</a></td>
          <td class="homepage">${HTML(pkg.homepage)}</td>
          <td class="license">${HTML(pkg.license)}</td>
		  <td class="changelog" ><a href="${pkg.changelog}">ChangeLog</a> <a href="${pkg.metadataxml}">Metadata</a></td>
          <td class="similar" >Similar</td>
          <td class="bugz" ><a href="${pkg.bugzilla}">Bugs</a></td>
          <td class="forums" ><a href="${pkg.forums}">Forums</a></td>
      </tr>
  </table>
  </py:match>

  <py:match path="footer">
  <div id="footer">
      Copyright 2007 Gentoo Foundation, Inc.
    </div> 
  </py:match>

  <py:match path="pkgarches">
      <table class="main">
        <tr class="d0 arch">
         <td class="emptycell"></td>
         <td class="d0 arch" py:for="arch in sorted(arches)">${arch}</td>
        </tr>
        <tr py:for="pkg_keywords in pkg.keywords">
            <td class="ebuild">${pkg_keywords.atom.fullver}</td>
            <div py:for="arch in sorted(arches)" py:strip="True">
                <td py:if="arch not in pkg_keywords" class="blank"></td>
                <td py:if="arch in pkg_keywords" class="${pkg_keywords[arch].name}">${pkg_keywords[arch].mode}</td>
            </div>
        </tr>
      </table>
  </py:match>
  
  <py:match path="centerpkgs">
    <div class="centerpkgs" py:for="pkg in center_pkgs">
        <p class="package"><a href="${relurl('/package/'+pkg.atom.key)}">${pkg.atom.cpvstr}</a></p>
        <p class="description">${pkg.meta.description}</p>
      <div class="changelogmsg">${HTML(pkg.meta.commitmsg)}</div>
	  <!-- <pkgarches> -->
      <div style="overflow-x: auto">
		  <table class="main">
        <tr class="d0 arch">
         <td class="emptycell"></td>
         <td class="d0 arch" py:for="arch in sorted(arches)">${arch}</td>
        </tr>
        <tr py:for="pkg_keywords in pkg.keywords">
            <td class="ebuild">${pkg_keywords.atom.fullver}</td>
            <div py:for="arch in sorted(arches)" py:strip="True">
                <td py:if="arch not in pkg_keywords" class="blank"></td>
                <td py:if="arch in pkg_keywords" class="${pkg_keywords[arch].name}">${pkg_keywords[arch].mode}</td>
            </div>
        </tr>
	</table>
	</div>
	  <!-- </pkgarches> -->
	  <!-- <pkginfo> -->
  <table class="pkginfo">
      <tr>
          <td class="category"><a href="${relurl('/category/'+pkg.meta.atom.category)}">${pkg.meta.atom.category}</a></td>
          <td class="homepage">${HTML(pkg.homepage)}</td>
          <td class="license">${HTML(pkg.license)}</td>
		  <td class="changelog" ><a href="${pkg.changelog}">ChangeLog</a> <a href="${pkg.metadataxml}">Metadata</a></td>
          <td class="similar" >Similar</td>
          <td class="bugz" ><a href="${pkg.bugzilla}">Bugs</a></td>
          <td class="forums" ><a href="${pkg.forums}">Forums</a></td>
      </tr>
  </table>
	  <!-- </pkginfo> -->
    </div>
  </py:match>
</html>