Skip to content
Snippets Groups Projects
Commit 6039a965 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

partial

parent 01767dc9
No related branches found
No related tags found
No related merge requests found
Showing with 22 additions and 45 deletions
<%
full_width = local_assigns.has_key?(:full_width) ? local_assigns[:full_width]
: @about.full_width
toc_offcanvas = local_assigns.has_key?(:toc_offcanvas) ? local_assigns[:toc_offcanvas]
: !@about.full_width
toc_present = local_assigns.has_key?(:toc_present) ? local_assigns[:toc_present]
: @about.show_toc?
%>
layout:
full_width: <%= full_width %>
toc:
present: <%= toc_present %>
offcanvas: <%= toc_offcanvas %>
......@@ -3,6 +3,7 @@ title: >
<%= @about.title %>
breadcrumb_title: "<%= @about.breadcrumb_title.blank? ? @about.title : @about.breadcrumb_title %>"
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/layout' %>
<% if @about.kind_persons? %>
has:
administrators: <%= @website.has_administrators? %>
......@@ -11,11 +12,6 @@ has:
teachers: <%= @website.has_teachers? %>
<% end %>
position: <%= @about.position %>
layout:
full_width: <%= @about.full_width %>
toc:
offcanvas: <%= !@about.full_width %>
present: <%= @about.show_toc? %>
bodyclass: <%= @about.best_bodyclass %>
<%= render 'admin/communication/unsplash/static' %>
<% if @about.children.published.any? %>
......
---
title: "<%= @about.title %>"
date: "<%= @about.published_at.iso8601 %>"
layout:
full_width: false
toc:
present: <%= @about.show_toc? %>
offcanvas: false
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/layout', full_width: false, toc_offcanvas: false %>
<% if @about.pinned %>
weight: 1
<% end %>
......
......@@ -2,16 +2,12 @@
title: >
<%= prepare_text_for_static @about.name %>
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/layout', full_width: true, toc_offcanvas: true %>
short_name: >
<%= prepare_text_for_static @about.short_name %>
<%= render 'admin/application/chapo/static' %>
level: <%= @about.level_i18n %>
ects: <%= @about.ects %>
layout:
full_width: true
toc:
present: <%= @about.show_toc? %>
offcanvas: true
duration: >
<%= prepare_text_for_static @about.duration %>
<%= render 'admin/communication/blocks/static', about: @about %>
......
......@@ -10,11 +10,7 @@ administrator_involvements = @about.involvements_through_roles
title: >
<%= @about.name %>
url: <%= @about.path_in_website(@website) %>
layout:
full_width: false
toc:
present: <%= @about.show_toc? %>
offcanvas: true
<%= render 'admin/application/static/layout', full_width: false, toc_offcanvas: true %>
<% if @about.downloadable_summary.attached? %>
downloadable_summary: <%= @about.downloadable_summary.blob_id %>
<% end %>
......
......@@ -2,6 +2,7 @@
title: >
Responsabilités de <%= @about.to_s %>
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/layout', full_width: true, toc_offcanvas: true %>
person: >
<%= @about.to_s %>
first_name: >
......@@ -10,9 +11,4 @@ last_name: >
<%= @about.last_name %>
description: >
<%= prepare_text_for_static @about.description %>
layout:
full_width: true
toc:
present: <%= @about.show_toc? %>
offcanvas: true
---
......@@ -2,6 +2,7 @@
title: >
Actualités de <%= @about.to_s %>
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/layout', full_width: true, toc_offcanvas: true %>
person: >
<%= @about.to_s %>
first_name: >
......@@ -10,9 +11,4 @@ last_name: >
<%= @about.last_name %>
description: >
<%= prepare_text_for_static @about.description %>
layout:
full_width: true
toc:
present: <%= @about.show_toc? %>
offcanvas: true
---
......@@ -2,6 +2,7 @@
title: >
Publications de <%= @about.to_s %>
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/layout', full_width: true, toc_offcanvas: true %>
person: >
<%= @about.to_s %>
first_name: >
......@@ -10,9 +11,4 @@ last_name: >
<%= @about.last_name %>
description: >
<%= prepare_text_for_static @about.description %>
layout:
full_width: true
toc:
present: <%= @about.show_toc? %>
offcanvas: true
---
......@@ -2,6 +2,7 @@
title: >
<%= @about.to_s %>
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/layout', full_width: true, toc_offcanvas: true %>
first_name: >
<%= @about.first_name %>
last_name: >
......@@ -22,11 +23,6 @@ image: "<%= @about.best_picture.blob.id %>"
description: >
<%= prepare_text_for_static @about.description %>
<%= render 'admin/application/chapo/static' %>
layout:
full_width: true
toc:
present: <%= @about.show_toc? %>
offcanvas: true
roles:
<% if @about.author.for_website?(@website) %>
- author
......
......@@ -2,6 +2,7 @@
title: >
Enseignements de <%= @about.to_s %>
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/layout', full_width: true, toc_offcanvas: true %>
person: >
<%= @about.to_s %>
first_name: >
......@@ -10,9 +11,4 @@ last_name: >
<%= @about.last_name %>
description: >
<%= prepare_text_for_static @about.description %>
layout:
full_width: true
toc:
present: <%= @about.show_toc? %>
offcanvas: true
---
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment