Style navigation a bit
This commit is contained in:
parent
32557190bd
commit
fbcea15e35
3 changed files with 29 additions and 4 deletions
|
@ -1,7 +1,9 @@
|
|||
<% content_for(:header) do %>
|
||||
<% @sections.each do |section| %>
|
||||
<%= link_to section.title, section_url(section) %>
|
||||
<% end %>
|
||||
<div class="section-links">
|
||||
<% @sections.each do |section| %>
|
||||
<%= link_to section.title, section_url(section), html_options = { class: { "section-link": true, "section-link-active": current_page?(section_url(section)) } } %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<h4><%= @section.title %></h4>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue