Add MagicMatcher Issue list to meta box
This adds the issue list to the meta-box. SPR-881
This commit is contained in:
parent
45129fb497
commit
1f3641a828
2 changed files with 20 additions and 1 deletions
11
Template.php
11
Template.php
|
@ -17,6 +17,7 @@ class Template {
|
|||
protected $plugins = array(
|
||||
'sqlite' => null,
|
||||
'tagging' => null,
|
||||
'magicmatcher' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -44,6 +45,7 @@ class Template {
|
|||
$this->plugins['sqlite'] = plugin_load('helper', 'sqlite');
|
||||
if($this->plugins['sqlite']) {
|
||||
$this->plugins['tagging'] = plugin_load('helper', 'tagging');
|
||||
$this->plugins['magicmatcher'] = plugin_load('syntax', 'magicmatcher_issuelist');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -75,7 +77,14 @@ class Template {
|
|||
);
|
||||
}
|
||||
|
||||
// fixme add magicmatcher info
|
||||
if ($this->plugins['magicmatcher']) {
|
||||
$tabs[] = array(
|
||||
'id' => 'spr__tab-issues',
|
||||
'label' => 'Issues', // FIXME
|
||||
'tab' => $this->plugins['magicmatcher']->getIssueListHTML(),
|
||||
'count' => $this->plugins['magicmatcher']->getCountIssues(),
|
||||
);
|
||||
}
|
||||
|
||||
return $tabs;
|
||||
}
|
||||
|
|
|
@ -76,6 +76,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/* + + + + + in meta box + + + + + */
|
||||
#spr__tab-issues {
|
||||
ul.mmissuelist {
|
||||
padding-left: 0;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* + + + + + in content + + + + + */
|
||||
a.jiralink {
|
||||
font-size: @font-size-default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue