summaryrefslogtreecommitdiff
path: root/app/Helper/AppHelper.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Helper/AppHelper.php')
-rw-r--r--app/Helper/AppHelper.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/Helper/AppHelper.php b/app/Helper/AppHelper.php
index 3a0a2428..63ebac98 100644
--- a/app/Helper/AppHelper.php
+++ b/app/Helper/AppHelper.php
@@ -12,6 +12,16 @@ use Kanboard\Core\Base;
*/
class AppHelper extends Base
{
+ public function tooltipMarkdown($markdownText, $icon = 'fa-info-circle')
+ {
+ return '<span class="tooltip"><i class="fa '.$icon.'"></i><script type="text/template"><div class="markdown">'.$this->helper->text->markdown($markdownText).'</div></script></span>';
+ }
+
+ public function tooltipLink($label, $link)
+ {
+ return '<span class="tooltip" data-href="'.$link.'">'.$label.'</span>';
+ }
+
public function getToken()
{
return $this->token;