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

wip

parent ded639e2
No related branches found
No related tags found
No related merge requests found
<i class="fas fa-play-circle"></i>
<%= l event.from_day %>
<%= l event.from_hour, format: "%H:%M" if event.from_hour %>
<% if event.to_day%>
<br>
<i class="fas fa-stop-circle"></i>
<%= l event.to_day %>
<%= l event.to_hour, format: "%H:%M" if event.to_hour %>
<% end %>
\ No newline at end of file
......@@ -18,9 +18,7 @@
admin_communication_website_agenda_event_path(website_id: event.website.id, id: event.id),
class: "#{'draft' unless event.published?}" %>
</td>
<td>
</td>
<td class="small"><%= render 'admin/communication/websites/agenda/events/dates', event: event %></td>
<td><%= image_tag event.featured_image.representation(resize: '200x'),
width: 100 if event.featured_image.attached? && event.featured_image.representable? %></td>
</tr>
......
......@@ -5,13 +5,7 @@
<div class="col-lg-7">
<%= osuny_panel Communication::Website::Agenda::Event.human_attribute_name(:title), small: true do %>
<p class="lead"><%= @event.title %></p>
<p>
<%= l @event.from_day %>
<%= l @event.from_hour, format: "%H:%M" if @event.from_hour %>
<br>
<%= l @event.to_day %>
<%= l @event.to_hour, format: "%H:%M" if @event.to_hour %>
</p>
<p><%= render 'admin/communication/websites/agenda/events/dates', event: @event %></p>
<% end %>
</div>
<div class="offset-lg-1 col-lg-4">
......@@ -41,7 +35,7 @@
<% content_for :action_bar_left do %>
<%= destroy_link @event %>
<%= duplicate_link @event %>
<%= static_link static_admin_communication_website_post_path(@event) %>
<%= static_link static_admin_communication_website_agenda_event_path(@event) %>
<% end %>
<% content_for :action_bar_right do %>
......
---
title: "<%= @about.title %>"
date: "<%= @about.published_at&.iso8601 %>"
date: "<%= @about.from_day&.iso8601 %>"
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/design', full_width: false, toc_offcanvas: false %>
<% if @about.pinned %>
weight: 1
<% end %>
<% if @about.author %>
authors:
- "<%= @about.translated_author.slug %>"
<% end %>
<% if @about.categories.any? %>
categories:
<% @about.categories.each do |category| %>
- "<%= category.slug_with_ancestors_slugs %>"
<% end %>
<% end %>
<%= render 'admin/application/i18n/static' %>
<%= render 'admin/application/featured_image/static' %>
<%= render 'admin/application/meta_description/static' %>
<%= render 'admin/application/summary/static' %>
<%= render 'admin/communication/blocks/content/static', about: @about %>
---
<%= prepare_html_for_static @about.text, @about.university %>
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