-
+
- {{>mod_kanban/descriptionmodal}}
{{>mod_kanban/discussionmodal}}
{{>mod_kanban/historymodal}}
diff --git a/templates/descriptionmodal.mustache b/templates/descriptionmodal.mustache
index d4206be6..7eac0cfc 100644
--- a/templates/descriptionmodal.mustache
+++ b/templates/descriptionmodal.mustache
@@ -26,27 +26,36 @@
"duedate": 123456789
}
}}
-
-
-
-
-
- {{{description}}}
- {{#duedate}}
-
- {{#str}} due, mod_kanban {{/str}}: {{#userdate}} {{duedate}}, {{#str}} strftimedate, core_langconfig {{/str}} {{/userdate}}
- {{/duedate}}
-
-
-
+
\ No newline at end of file
+
+ {{#duedate}}
+
+ {{#str}} due, mod_kanban {{/str}}: {{#userdate}} {{duedate}}, {{#str}} strftimedatetime, core_langconfig {{/str}} {{/userdate}}
+ {{/duedate}}
+
+ {{#hasassignees}}
+
+ {{#str}} assignees, mod_kanban {{/str}}:
+
+ {{#assignees}}
+ {{>mod_kanban/user}}
+ {{/assignees}}
+
+ {{/hasassignees}}
+
+
+ {{#hasattachment}}
+
+
{{#str}} attachments, mod_kanban {{/str}}:
+ {{>mod_kanban/attachmentitems}}
+ {{/hasattachment}}
+
+
+{{#js}}
+require(['mod_kanban/cardnumber'], function(cardnumber) {
+ cardnumber.init('mod_kanban_description_{{uniqid}}');
+});
+{{/js}}
diff --git a/tests/numberfilter_test.php b/tests/numberfilter_test.php
new file mode 100644
index 00000000..c3e6b005
--- /dev/null
+++ b/tests/numberfilter_test.php
@@ -0,0 +1,46 @@
+.
+
+namespace mod_kanban;
+
+/**
+ * Tests for Kanban board number filter
+ *
+ * @package mod_kanban
+ * @category test
+ * @copyright 2024 ISB Bayern
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ * @covers \mod_kanban\numberfilter
+ */
+final class numberfilter_test extends \advanced_testcase {
+ /**
+ * Test number filter
+ */
+ public function test_filter(): void {
+ $text = 'This is a test #1234 and #5678';
+ $expected = 'This is a test
#1234' .
+ ' and
#5678';
+ $this->assertEquals($expected, numberfilter::filter($text));
+ }
+
+ /**
+ * Test number filter without numbers
+ */
+ public function test_filter_without_numbers(): void {
+ $text = 'This is a test without numbers';
+ $this->assertEquals($text, numberfilter::filter($text));
+ }
+}
diff --git a/version.php b/version.php
index a788d7f0..cc13d812 100644
--- a/version.php
+++ b/version.php
@@ -26,7 +26,7 @@
$plugin->component = 'mod_kanban';
$plugin->release = '0.2.6';
-$plugin->version = 2024121601;
+$plugin->version = 2024121603;
$plugin->requires = 2022112800;
$plugin->supported = [401, 405];
$plugin->maturity = MATURITY_STABLE;