summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-08 18:41:44 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-08 18:41:44 +0000
commit4f664d68a113dd497d9ecb4b545bcb242a2865dd (patch)
treeba9a335a71ff107793a0215399ccaccda8bc7614
parentAdd a route that works with the signup email (diff)
downloadgentoobrowse-4f664d68a113dd497d9ecb4b545bcb242a2865dd.tar.bz2
gentoobrowse-4f664d68a113dd497d9ecb4b545bcb242a2865dd.tar.xz
gentoobrowse-4f664d68a113dd497d9ecb4b545bcb242a2865dd.zip
Gracefully handle the case where a use flag has no descriptiongentoobrowse-2.0.2.1
-rw-r--r--gentoobrowse/css/general.css4
-rw-r--r--gentoobrowse/xslt/package.xslt4
2 files changed, 8 insertions, 0 deletions
diff --git a/gentoobrowse/css/general.css b/gentoobrowse/css/general.css
index 4ca752c..8b08964 100644
--- a/gentoobrowse/css/general.css
+++ b/gentoobrowse/css/general.css
@@ -1085,3 +1085,7 @@ form#search input[type=search] {
font-size: 9px;
font-weight: lighter;
}
+
+dd.missing {
+ color: silver;
+}
diff --git a/gentoobrowse/xslt/package.xslt b/gentoobrowse/xslt/package.xslt
index 6cc68e9..a93c5c7 100644
--- a/gentoobrowse/xslt/package.xslt
+++ b/gentoobrowse/xslt/package.xslt
@@ -172,6 +172,10 @@
</xsl:if>
</dt>
<dd>
+ <xsl:if test="description = ''">
+ <xsl:attribute name="class">missing</xsl:attribute>
+ <xsl:text>Missing description</xsl:text>
+ </xsl:if>
<xsl:value-of select="description" />
</dd>
</xsl:template>