1
0
Fork 0
master
Alex Kotov 2 years ago
parent 9bd7a6fa13
commit 5f56a4c57f
  1. 31
      app/views/layouts/application.html.erb

@ -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>