Renamed tools templates to the recommended snake_case style

This commit is contained in:
Jan Böhmer 2023-02-04 22:55:16 +01:00
parent 29e46d5d05
commit dd5691f199
8 changed files with 7 additions and 7 deletions

View file

@ -43,7 +43,7 @@ class ToolsController extends AbstractController
{
$this->denyAccessUnlessGranted('@tools.reel_calculator');
return $this->render('Tools/ReelCalculator/main.html.twig');
return $this->render('tools/reel_calculator/reel_calculator.html.twig');
}
/**
@ -53,7 +53,7 @@ class ToolsController extends AbstractController
{
$this->denyAccessUnlessGranted('@system.server_infos');
return $this->render('Tools/ServerInfos/main.html.twig', [
return $this->render('tools/server_infos/server_infos.html.twig ', [
//Part-DB section
'git_branch' => $versionInfo->getGitBranchName(),
'git_commit' => $versionInfo->getGitCommitHash(),
@ -110,7 +110,7 @@ class ToolsController extends AbstractController
}, $group);
}, $grouped_footprints);
return $this->render('Tools/BuiltInFootprintsViewer/main.html.twig', [
return $this->render('tools/builtin_footprints_viewer/builtin_footprints_viewer.html.twig', [
'grouped_footprints' => $grouped_footprints,
]);
}
@ -123,6 +123,6 @@ class ToolsController extends AbstractController
{
$this->denyAccessUnlessGranted('@tools.ic_logos');
return $this->render('Tools/ICLogos/ic_logos.html.twig');
return $this->render('tools/ic_logos/ic_logos.html.twig');
}
}

View file

@ -16,13 +16,13 @@
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="server_infos-partdb" role="tabpanel" aria-labelledby="server_infos-partdb-tab">
{% include "Tools/ServerInfos/_partdb.html.twig" %}
{% include "tools/server_infos/_partdb.html.twig" %}
</div>
<div class="tab-pane fade" id="server_infos-php" role="tabpanel" aria-labelledby="server_infos-php-tab">
{% include "Tools/ServerInfos/_php.html.twig" %}
{% include "tools/server_infos/_php.html.twig" %}
</div>
<div class="tab-pane fade" id="server_infos-db" role="tabpanel" aria-labelledby="server_infos-database-tab">
{% include "Tools/ServerInfos/_db.html.twig" %}
{% include "tools/server_infos/_db.html.twig" %}
</div>
</div>