Moved the navbar into a partial
This commit is contained in:
parent
4d76c0c072
commit
f3e970ab1b
@ -11,14 +11,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<!-- Main navigation -->
|
||||
<nav id="main-nav">
|
||||
<h3>Raven</h3>
|
||||
<ul>
|
||||
<li><a href="/">Dashboard</a></li>
|
||||
<li><a href="/item/list">Items</a></li>
|
||||
<li><a href="/license/list">Licenses</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<%= erb :'layout/navbar' %>
|
||||
|
||||
<div id="main-wrapper" class="container">
|
||||
<%= yield %>
|
||||
|
8
views/layout/navbar.erb
Normal file
8
views/layout/navbar.erb
Normal file
@ -0,0 +1,8 @@
|
||||
<nav id="main-nav">
|
||||
<h3>Raven</h3>
|
||||
<ul>
|
||||
<li><a href="/">Dashboard</a></li>
|
||||
<li><a href="/item/list">Items</a></li>
|
||||
<li><a href="/license/list">Licenses</a></li>
|
||||
</ul>
|
||||
</nav>
|
Loading…
Reference in New Issue
Block a user