Fix about somewhat less dirty

This commit is contained in:
Wout Schellaert 2016-12-05 16:26:45 +01:00
parent ae87ca491e
commit bed151caa4
3 changed files with 10 additions and 16 deletions

View file

@ -3,14 +3,7 @@ navigable: true
title: About title: About
order: 0 order: 0
--- ---
<div class="subnav tabs"> <%= render '/partials/_about_sub_navbar.*', :selected => 'about' %>
<ul>
<li class="is-active"><a href="/about">Over</a></li>
<li><a href="/about/statuten">Statuten</a></li>
<li class="is-disabled"><a>Historiek (coming soon)</a></li>
<li class="is-disabled"><a>Verslagen (coming soon)</a></li>
</ul>
</div>
<div class="content"> <div class="content">
<h1>Over Zeus WPI</h1> <h1>Over Zeus WPI</h1>

View file

@ -1,11 +1,4 @@
<div class="subnav tabs"> <%= render '/partials/_about_sub_navbar.*', :selected => 'statuten'%>
<ul>
<li><a href="/about">Over</a></li>
<li class="is-active"><a href="/about/statuten">Statuten</a></li>
<li class="is-disabled"><a>Historiek (coming soon)</a></li>
<li class="is-disabled"><a>Verslagen (coming soon)</a></li>
</ul>
</div>
<div class="columns"> <div class="columns">
<div class="column is-1"></div> <div class="column is-1"></div>
<div class="column"> <div class="column">

View file

@ -0,0 +1,8 @@
<div class="subnav tabs">
<ul>
<li class="<%= "is-active" if @selected == 'about'%>"><a href="/about">Over</a></li>
<li class="<%= "is-active" if @selected == 'statuten'%>"><a href="/about/statuten">Statuten</a></li>
<li class="is-disabled"><a>Historiek (soon)</a></li>
<li class="is-disabled"><a>Verslagen (soon)</a></li>
</ul>
</div>