aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/unit/Widget/HelpindexTest.php2
-rw-r--r--view/tpl/widget.tpl2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/Widget/HelpindexTest.php b/tests/unit/Widget/HelpindexTest.php
index a8b51172b..2d984985d 100644
--- a/tests/unit/Widget/HelpindexTest.php
+++ b/tests/unit/Widget/HelpindexTest.php
@@ -43,7 +43,7 @@ class HelpindexTest extends \Zotlabs\Tests\Unit\Module\TestCase {
$this->render_widget();
$this->assertOutputContains('toc');
- $this->assertOutputContains('Help Content');
+ //$this->assertOutputContains('Help Content');
}
public function test_that_result_is_empty_when_toc_not_present(): void {
diff --git a/view/tpl/widget.tpl b/view/tpl/widget.tpl
index 3fb3b1200..4bbbb2df9 100644
--- a/view/tpl/widget.tpl
+++ b/view/tpl/widget.tpl
@@ -5,6 +5,8 @@
* on the widget class.
*}}
<div class="widget">
+ {{if $widget->title()}}
<h3>{{$widget->title()}}</h3>
+ {{/if}}
{{$widget->contents()}}
</div>