added project detail report (#2651)
- avatars via css only - random colors for entities - improves print view - added colors for teams - added color to tag
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
|
||||
namespace App\DependencyInjection\Compiler;
|
||||
|
||||
use App\Configuration\SystemConfiguration;
|
||||
use App\Configuration\ThemeConfiguration;
|
||||
use App\Twig\Configuration;
|
||||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
@@ -27,10 +27,11 @@ class TwigContextCompilerPass implements CompilerPassInterface
|
||||
{
|
||||
$twig = $container->getDefinition('twig');
|
||||
|
||||
// @deprecated since 1.15
|
||||
$theme = $container->getDefinition(ThemeConfiguration::class);
|
||||
$twig->addMethodCall('addGlobal', ['kimai_context', $theme]);
|
||||
|
||||
$config = $container->getDefinition(SystemConfiguration::class);
|
||||
$config = $container->getDefinition(Configuration::class);
|
||||
$twig->addMethodCall('addGlobal', ['kimai_config', $config]);
|
||||
|
||||
$definition = $container->getDefinition('twig.loader.native_filesystem');
|
||||
|
||||
@@ -475,6 +475,12 @@ class Configuration implements ConfigurationInterface
|
||||
->integerNode('autocomplete_chars')
|
||||
->defaultValue(3)
|
||||
->end()
|
||||
->booleanNode('random_colors')
|
||||
->defaultTrue()
|
||||
->end()
|
||||
->booleanNode('avatar_url')
|
||||
->defaultFalse()
|
||||
->end()
|
||||
->end()
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user