1
0
Fork 0

Add navbar

This commit is contained in:
Alex Kotov 2021-03-10 15:07:28 +05:00
parent 9bd7a6fa13
commit 5f56a4c57f
1 changed files with 30 additions and 1 deletions

View File

@ -11,6 +11,35 @@
</head>
<body>
<%= yield %>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<%= link_to 'Decentralized Microblog', root_path, class: 'navbar-brand' %>
<button class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<%= link_to 'Profiles',
profiles_path,
class: "nav-link #{:active if controller_name == 'profiles'}",
'aria-current': "#{:page if controller_name == 'profiles'}" %>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<%= yield %>
</div>
</body>
</html>