Port server/plugins/section_links template to Twig

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
Maurício Meneghini Fauth 2017-10-07 22:34:05 -03:00
parent 3eabc98b59
commit 8225cb36e0
4 changed files with 17 additions and 8 deletions

View File

@ -1,8 +0,0 @@
<div id="sectionlinks">
<?php foreach ($plugins as $plugin_type => $plugin_list): ?>
<a href="#plugins-<?= preg_replace('/[^a-z]/', '', mb_strtolower($plugin_type)); ?>">
<?= htmlspecialchars($plugin_type); ?>
</a>
<?php endforeach; ?>
</div>
<br />

View File

@ -0,0 +1,7 @@
<div id="sectionlinks">
{% for plugin_type in plugins|keys %}
<a href="#plugins-{{ preg_replace('/[^a-z]/', '', plugin_type|lower) }}">
{{ plugin_type }}
</a>
{% endfor %}
</div>

View File

@ -1101,6 +1101,15 @@ div#logTable table {
/* end serverstatus */
#sectionlinks {
margin-bottom: 15px;
padding: 10px;
border: 1px solid #CCC;
}
#sectionlinks a {
margin-<?php echo $right; ?>: 7px;
}
/* server variables */
#serverVariables {
width: 100%;

View File

@ -1568,6 +1568,7 @@ div#profilingchart {
font-size: 1.7em;
}
#sectionlinks {
margin-bottom: 15px;
padding: 16px;
background: #f3f3f3;
border: 1px solid #aaa;