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
|
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>
|
||||||
|
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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| %>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue