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 navigable: true
title: About title: About
order: 0 order: 0
narrow_page: true
--- ---
<%= render '/partials/_about_sub_navbar.*', :selected => 'about' %> <%= render '/partials/_about_sub_navbar.*', selected: 'about' %>
<div class="content"> <div class="content">
<h1>Over Zeus WPI</h1> <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="columns">
<div class="column is-1"></div> <div class="column is-1"></div>
<div class="column"> <div class="column">

View file

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

View file

@ -3,6 +3,14 @@
<%= render '/partials/_navbar.*' %> <%= render '/partials/_navbar.*' %>
</header> </header>
<main class="section"> <main class="section">
<%= yield %> <% 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> </main>
</div> </div>