summaryrefslogtreecommitdiff
path: root/gentoobrowse/base.xslt
blob: bc6e7a8e037a1442abcfbec53d5c9798df4f8cbe (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
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:project2="http://project2.randomdan.homeip.net/" exclude-result-prefixes="project2" >
  <xsl:output  encoding="utf-8"  method="html" media-type="text/html" indent="yes"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
  <xsl:template match="/gentoo">
	<html>
		<head>
			<link rel="stylesheet" href="/style.css" type="text/css" />
			<link rel="shortcut icon" href="/images/glogo-small.png" type="image/png" />
			<xsl:call-template name="head" />
		</head>
		<body>
			<h1>Gentoo Browse</h1>
			<div class="tabs">
				<a href="/">Home</a> |
				<a href="/categories">Browse</a> |
				<a href="/search">Search</a> |
				<xsl:if test="count(/gentoo/project2:session/project2:var[@name='loggedInUserID']) = 0">
					<a href="/login">Login</a>
				</xsl:if>
				<xsl:if test="count(/gentoo/project2:session/project2:var[@name='loggedInUserID']) &gt; 0">
					<a href="/accountHome">My Account</a>
				</xsl:if>
			</div>
			<table width="100%">
				<tr>
					<td class="colLeft">
						<h2>News</h2>
					</td>
					<td class="content">
						<xsl:call-template name="content" />
					</td>
				</tr>
			</table>
			<div class="trademark">
				This website is not an official Gentoo website.
				The name "Gentoo" and the "g" logo are trademarks of the Gentoo Foundation, Inc.
			</div>
			<div class="poweredby">
				Powered by
				<a href="http://www.gentoo.org/">Gentoo</a>
				|
				<a href="http://www.postgresql.org/">PostgreSQL</a>
				|
				<a href="http://httpd.apache.org/">Apache</a>
				|
				<a href="http://www.fastcgi.com/drupal/">FastCGI</a>
				|
				<a href="http://www.w3.org/TR/xslt">XSLT</a>
				|
				<a href="http://project2.randomdan.homeip.net">Project2</a>
			</div>
		</body>
	</html>
  </xsl:template>
  <xsl:template name="head">
	<title>Gentoo Browse</title>
  </xsl:template>
  <xsl:template name="content">
  </xsl:template>
  <xsl:template match="package">
  	<li>
		<a>
			<xsl:attribute name="href">
				/package/<xsl:value-of select="catname" />/<xsl:value-of select="pkgname" />
			</xsl:attribute>
			<xsl:value-of select="catname" />/<xsl:value-of select="pkgname" />
		</a> - <xsl:value-of select="description" />
	</li>
  </xsl:template>
</xsl:stylesheet>