layout.tt: make the header constrained to the center

This commit is contained in:
Graham Christensen 2021-04-01 02:00:36 +00:00 committed by Tyson Whitehead
parent 9c903e9991
commit db2c9fe96a

View file

@ -47,18 +47,20 @@
<body> <body>
<nav class="navbar navbar-expand-md navbar-light bg-light"> <nav class="navbar navbar-expand-md navbar-light bg-light">
<a class="navbar-brand" href="[% c.uri_for(c.controller('Root').action_for('index')) %]"> <div class="container">
[% IF logo == "" %] <a class="navbar-brand" href="[% c.uri_for(c.controller('Root').action_for('index')) %]">
Hydra [% IF logo == "" %]
[% ELSE %] Hydra
<img src="[% c.uri_for(logo) %]" alt="Hydra Logo" class="logo" /> [% ELSE %]
[% END %] <img src="[% c.uri_for(logo) %]" alt="Hydra Logo" class="logo" />
</a> [% END %]
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarSupportedContent"> </a>
<span class="navbar-toggler-icon"></span> <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarSupportedContent">
</button> <span class="navbar-toggler-icon"></span>
<div class="collapse navbar-collapse" id="navbarSupportedContent"> </button>
[% PROCESS topbar.tt %] <div class="collapse navbar-collapse" id="navbarSupportedContent">
[% PROCESS topbar.tt %]
</div>
</div> </div>
</nav> </nav>