aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-05-02 19:24:13 +0000
committerMario <mario@mariovavti.com>2024-05-02 19:24:13 +0000
commit07696d4bd144be03819122bfa2c78cd8aa3d4770 (patch)
tree5842447e5379ed91221ba78007f861cd08efe91e
parent52e97fe1150e5b1c4e4b6739d2fd54b604d8981b (diff)
downloadvolse-hubzilla-07696d4bd144be03819122bfa2c78cd8aa3d4770.tar.gz
volse-hubzilla-07696d4bd144be03819122bfa2c78cd8aa3d4770.tar.bz2
volse-hubzilla-07696d4bd144be03819122bfa2c78cd8aa3d4770.zip
fix the test - we do not use a title anymore since it does not make much sense in combination of the sub titles
-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>