1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Restore index menu url default lost in b85e51d6.

The url for the menu item referring to the index (i.e. site root page) should use {[project-url-root]}.

This allows the url to be set to different values depending on the location of the index.
This commit is contained in:
David Steele 2019-05-16 07:35:45 -04:00
parent a4561dc087
commit bc7b42e718
2 changed files with 11 additions and 3 deletions

View File

@ -135,9 +135,13 @@ sub process
{
my $oRenderOut = $self->{oManifest}->renderOutGet(RENDER_TYPE_HTML, $strRenderOutKey);
$oMenuBody->
addNew(HTML_DIV, 'menu')->
addNew(HTML_A, 'menu-link', {strContent => $$oRenderOut{menu}, strRef => "${strRenderOutKey}.html"});
if (defined($$oRenderOut{menu}))
{
$oMenuBody->addNew(HTML_DIV, 'menu')->addNew(
HTML_A, 'menu-link',
{strContent => $$oRenderOut{menu},
strRef => $strRenderOutKey eq 'index' ? '{[project-url-root]}' : "${strRenderOutKey}.html"});
}
}
}
}

View File

@ -203,6 +203,10 @@
<release-item>
<p>Add <setting>--out-preserve</setting> to preserve contents of output path.</p>
</release-item>
<release-item>
<p>Restore index menu url default lost in b85e51d6.</p>
</release-item>
</release-development-list>
</release-doc-list>