File tree 5 files changed +24
-7
lines changed
5 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ Improvements:
3
3
4
4
* unit test updates
5
5
* code cleanup
6
- * Add Wiki entry to views switcher, fixes issue #61.
6
+ * Add Wiki entry to views switcher
7
+ * only load nested vendor on detail page
7
8
8
9
Bug fixes:
9
10
10
- * Fix https://github.com/funktechno/kanboard-plugin-wiki/issues/
11
+ * Fix https://github.com/funktechno/kanboard-plugin-wiki/issues/61
12
+ * Fix https://github.com/funktechno/kanboard-plugin-wiki/issues/11
11
13
12
14
Version 0.3.6
13
15
Improvements:
Original file line number Diff line number Diff line change @@ -28,6 +28,19 @@ public function getWikipages($project_id)
28
28
// return $this->wikiModel->getWikipages($project['id']);
29
29
// return $this->db->table(self::WIKITABLE)->eq('project_id', $project_id)->desc('order')->findAll();
30
30
}
31
+ /**
32
+ * Add a Javascript asset
33
+ *
34
+ * @param string $filename Filename
35
+ * @param bool $async
36
+ * @return string
37
+ */
38
+ public function js ($ filename , $ async = false )
39
+ {
40
+ $ dir = dirname (__DIR__ ,2 );
41
+ $ filepath = $ dir .'/ ' .$ filename ;
42
+ return '<script ' .($ async ? 'async ' : '' ).' defer type="text/javascript" src=" ' .$ this ->helper ->url ->dir ()."plugins " .$ filename .'? ' .filemtime ($ filepath ).'"></script> ' ;
43
+ }
31
44
/**
32
45
* render wiki page html children recursively
33
46
* @param mixed $children
Original file line number Diff line number Diff line change 1
1
plugin =Wiki
2
- version =0.3.6
2
+ version =0.3.7
3
3
all :
4
4
@ echo " Build archive for plugin ${plugin} version=${version} "
5
5
@ git archive HEAD --prefix=${plugin} / --format=zip -o ${plugin} -${version} .zip
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ public function initialize()
49
49
$ this ->template ->setTemplateOverride ('file_viewer/show ' , 'wiki:file_viewer/show ' );
50
50
51
51
$ this ->hook ->on ('template:layout:css ' , array ('template ' => 'plugins/Wiki/Asset/css/wiki.css ' ));
52
- $ this ->hook ->on ('template:layout:js ' , array ('template ' => 'plugins/Wiki/Asset/vendor/jquery-sortable/jquery-sortable.js ' ));
53
- $ this ->hook ->on ('template:layout:js ' , array ('template ' => 'plugins/Wiki/Asset/Javascript/wiki.js ' ));
52
+ // $this->hook->on('template:layout:js', array('template' => 'plugins/Wiki/Asset/vendor/jquery-sortable/jquery-sortable.js'));
53
+ // $this->hook->on('template:layout:js', array('template' => 'plugins/Wiki/Asset/Javascript/wiki.js'));
54
54
55
55
56
56
// $this->template->setTemplateOverride('wiki', 'wiki:wiki/layout');
@@ -98,7 +98,7 @@ public function getPluginAuthor()
98
98
99
99
public function getPluginVersion ()
100
100
{
101
- return '0.3.6 ' ;
101
+ return '0.3.7 ' ;
102
102
}
103
103
104
104
public function getPluginHomepage ()
Original file line number Diff line number Diff line change 1
1
<?php (isset ($ not_editable )) ?: $ not_editable = false ;
2
2
?>
3
3
<?php if (!$ not_editable ): ?>
4
- <?= $ this ->projectHeader ->render ($ project , 'TaskListController ' , 'show ' ) ?>
4
+ <?= $ this ->wikiHelper ->js ("/Wiki/Asset/vendor/jquery-sortable/jquery-sortable.js " )?>
5
+ <?= $ this ->wikiHelper ->js ("/Wiki/Asset/Javascript/wiki.js " )?>
6
+ <?= $ this ->projectHeader ->render ($ project , 'TaskListController ' , 'show ' ) ?>
5
7
<?php endif ?>
6
8
<div class="page-header">
7
9
<h2>
You can’t perform that action at this time.
0 commit comments