Skip to content
This repository was archived by the owner on Nov 22, 2019. It is now read-only.

Commit 26f895a

Browse files
committed
Namespace/package index blocks show empty
On the frontpage there are blocks that contain Namespaces or Packages so that you can easily go there. These blocks were incorrectly filled due to an error with the population of the XML and the way the XSL worked. This commit fixes that. Related to phpDocumentor/phpDocumentor#1158
1 parent 4f72d23 commit 26f895a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.xsl

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<div class="row">
1616
<div class="span7">
17-
<xsl:if test="count(/project/namespace[@name != 'default' and @name != '']) > 0">
17+
<xsl:if test="count(/project/namespace[@name != 'default' and @name != 'global' and @name != '']) > 0">
1818
<div class="well">
1919
<ul class="nav nav-list">
2020
<li class="nav-header">Namespaces</li>
@@ -25,7 +25,7 @@
2525
</div>
2626
</xsl:if>
2727

28-
<xsl:if test="count(/project/package[@name != '' and @name != 'default']) > 0">
28+
<xsl:if test="count(/project/package[@name != '' and @name != 'default']) > 0 or count(/project/namespace[@name != 'default' and @name != 'global' and @name != '']) = 0">
2929
<div class="well">
3030
<ul class="nav nav-list">
3131
<li class="nav-header">Packages</li>

0 commit comments

Comments
 (0)