[Telepathy-commits] [telepathy-spec/master] Don't show empty sections
Davyd Madeley
davyd at madeley.id.au
Mon Mar 23 12:29:17 PDT 2009
---
doc/templates/interface.html | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/doc/templates/interface.html b/doc/templates/interface.html
index 5d4513a..caa5788 100644
--- a/doc/templates/interface.html
+++ b/doc/templates/interface.html
@@ -14,6 +14,7 @@
</div>
<div class="main">
+ #if $interface.methods
<div id="methods" class="outset method">
<h1>Methods</h1>
#for $method in $interface.methods.values()
@@ -38,7 +39,9 @@
</div>
#end for
</div>
-
+ #end if
+
+ #if $interface.signals
<div id="signals" class="outset signal">
<h1>Signals</h1>
#for $signal in $interface.signals.values()
@@ -55,7 +58,9 @@
</div>
#end for
</div>
+ #end if
+ #if $interface.properties
<div id="properties" class="outset property">
<h1>Properties</h1>
#for $property in $interface.properties.values()
@@ -65,5 +70,6 @@
#end for
</div>
</div>
+ #end if
</body>
</html>
--
1.5.6.5
More information about the telepathy-commits
mailing list