narrow page, fixes #107
This commit is contained in:
parent
2cc92cc60d
commit
eb513a66c7
4 changed files with 16 additions and 4 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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| %>
|
||||
|
|
|
@ -3,6 +3,14 @@
|
|||
<%= render '/partials/_navbar.*' %>
|
||||
</header>
|
||||
<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>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue