mode changes

This commit is contained in:
Dennis Eichhorn 2021-02-20 10:59:06 +01:00
parent 8641c179de
commit dfcb595da3
11 changed files with 6 additions and 1 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
Docs/Dev/en/SUMMARY.md Normal file
View File

0
Docs/Dev/en/structure.md Normal file
View File

View File

@ -247,6 +247,11 @@ class KanbanCard implements \JsonSerializable
$this->ref = $ref;
}
public function getCommentCount() : int
{
return \count($this->comments);
}
/**
* Get the comments
*

0
Models/NullKanbanBoard.php Normal file → Executable file
View File

0
Theme/Backend/Lang/de.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/en.lang.php Normal file → Executable file
View File

View File

@ -15,7 +15,7 @@ $columns = $board->getColumns();
$url = \phpOMS\Uri\UriFactory::build('{/prefix}kanban/card?{?}&id=' . $card->getId());
?>
<section id="kanban-card-<?= $this->printHtml($i . '-' . $j); ?>" class="portlet" draggable="true">
<div class="portlet-head"><a href="<?= $url; ?>"><?= $this->printHtml($card->name); ?></a></div>
<div class="portlet-head"><a href="<?= $url; ?>"><?= $this->printHtml($card->name); ?></a><span class="floatRight tag"><?= $card->getCommentCount(); ?></span></div>
<div class="portlet-body">
<article><?= $card->description; ?></article>
</div>

0
tests/Autoloader.php Normal file → Executable file
View File

0
tests/Bootstrap.php Normal file → Executable file
View File

0
tests/phpunit_default.xml Normal file → Executable file
View File