narrow page, fixes #107

This commit is contained in:
Lorin Werthen 2016-12-12 14:40:42 +01:00
parent 2cc92cc60d
commit eb513a66c7
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
4 changed files with 16 additions and 4 deletions

View file

@ -2,8 +2,9 @@
navigable: true
title: About
order: 0
narrow_page: true
---
<%= render '/partials/_about_sub_navbar.*', :selected => 'about' %>
<%= render '/partials/_about_sub_navbar.*', selected: 'about' %>
<div class="content">
<h1>Over Zeus WPI</h1>

View file

@ -1,4 +1,7 @@
<%= render '/partials/_about_sub_navbar.*', :selected => 'statuten'%>
---
narrow_page: true
---
<%= render '/partials/_about_sub_navbar.*', selected: 'statuten' %>
<div class="columns">
<div class="column is-1"></div>
<div class="column">

View file

@ -2,7 +2,7 @@
<div class="column is-2 is-narrow">
<aside class="menu">
<p class="menu-label">
Academic Year
Academiejaar
</p>
<ul class="menu-list">
<% academic_years_items.each do |year, item| %>

View file

@ -3,6 +3,14 @@
<%= render '/partials/_navbar.*' %>
</header>
<main class="section">
<% if item[:narrow_page] %>
<div class="columns">
<article class="column is-8 is-offset-2">
<% end %>
<%= yield %>
<% if item[:narrow_page] %>
</div>
</article>
<% end %>
</main>
</div>