summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse/css/screen.css6
-rw-r--r--gentoobrowse/views/newebuilds.xml2
-rw-r--r--gentoobrowse/xslt/home.xslt26
3 files changed, 24 insertions, 10 deletions
diff --git a/gentoobrowse/css/screen.css b/gentoobrowse/css/screen.css
index db969c6..bb5dfa5 100644
--- a/gentoobrowse/css/screen.css
+++ b/gentoobrowse/css/screen.css
@@ -88,6 +88,12 @@ form.generalForm td input {
.tracked {
font-weight: bold;
}
+.syncdate {
+ font-size: larger;
+}
+.synctime {
+ font-size: smaller;
+}
#dotrack, #dountrack {
font-size: 8px;
margin: 0 10px;
diff --git a/gentoobrowse/views/newebuilds.xml b/gentoobrowse/views/newebuilds.xml
index 8bcc6e9..55da293 100644
--- a/gentoobrowse/views/newebuilds.xml
+++ b/gentoobrowse/views/newebuilds.xml
@@ -3,7 +3,7 @@
<project2:sqlrows name="newebuilds" datasource="postgres-web">
<sql>
SELECT description, moddate, p.name AS pkgname, c.name AS catname, e.version, e.firstseen sync,
- up.trackedsince IS NOT NULL AS tracked
+ up.trackedsince IS NOT NULL AS tracked, p.packageid
FROM ebuilds e, categories c, packages p LEFT OUTER JOIN user_packages up
ON up.userid = <param name="userID" />
AND up.packageid = p.packageid
diff --git a/gentoobrowse/xslt/home.xslt b/gentoobrowse/xslt/home.xslt
index df4e302..0b1584b 100644
--- a/gentoobrowse/xslt/home.xslt
+++ b/gentoobrowse/xslt/home.xslt
@@ -17,7 +17,10 @@
<table class="newebuilds">
<tr>
<xsl:for-each select="/gentoo/syncs/sync">
- <th><xsl:value-of select="synctime" /></th>
+ <th>
+ <span class="syncdate"><xsl:value-of select="substring-before(synctime, 'T')" /></span>
+ <span class="synctime"><xsl:value-of select="substring-after(synctime, 'T')" /></span>
+ </th>
</xsl:for-each>
</tr>
<tr>
@@ -33,14 +36,19 @@
</xsl:template>
<xsl:template match="/gentoo/newebuilds/ebuild">
<li>
- <a>
- <xsl:if test="tracked = 1">
- <xsl:attribute name="class">tracked</xsl:attribute>
+ <a>
+ <xsl:if test="tracked = 1">
+ <xsl:attribute name="class">tracked</xsl:attribute>
+ </xsl:if>
+ <xsl:attribute name="title">(updated <xsl:value-of select="moddate" />)</xsl:attribute>
+ <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>
+ v<xsl:value-of select="version" />
+ <xsl:if test="following-sibling::ebuild[1]/packageid != packageid">
+ <br/>
+ <xsl:value-of select="description" />
</xsl:if>
- <xsl:attribute name="title"><xsl:value-of select="description" /> (updated <xsl:value-of select="moddate" />)</xsl:attribute>
- <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" />-<xsl:value-of select="version" />
- </a>
- </li>
+ </li>
</xsl:template>
</xsl:stylesheet>