From 2c36b0125fd448545b675181f50c23078a866d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABle=20Javary?= Date: Fri, 1 Jul 2016 11:40:26 +0200 Subject: [PATCH] event post --- src/source/index.html.erb | 35 ++++++++++++++++++-------- src/source/stylesheets/screen.css.sass | 5 ++++ 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/src/source/index.html.erb b/src/source/index.html.erb index 80dcf7e..15b1cbd 100644 --- a/src/source/index.html.erb +++ b/src/source/index.html.erb @@ -31,17 +31,32 @@ no_footer: true -
-
-
- <%= image_tag 'eu-flag.jpg', :resize_to => '90' %> -

This project has received funding from the European Union’s Horizon 2020 Framework Programme for Research and Innovation (H2020-ICT-2015, ICT-10-2015) under grant agreement nº 688722.

+
+
+
+

Recent and future events

+ <% blog('events').articles[0,3].each do |event| %> +
+
<%= event.title %> + <%= event.date.strftime('%d/%m/%Y') %> +
+ <% link_to event do %><%= image_tag event.data.image || "https://placehold.it/145", :class => 'thumbnail thumbnail-home', :width => '145', :align=> 'left'%><% end %> +

<%= strip_tags(event.summary(250)) %><%= link_to '>>', event %>

+
+ <% end %> +
+
+
+
+
+ <%= image_tag 'eu-flag.jpg', :resize_to => '90' %> +

This project has received funding from the European Union’s Horizon 2020 Framework Programme for Research and Innovation (H2020-ICT-2015, ICT-10-2015) under grant agreement nº 688722.

+
+
+
Contact
+

Coordinator: <%= link_to 'harry.halpin@inria.fr','mailto:harry.halpin@inria.fr' %>

+
-
-
Contact
-

Coordinator: <%= link_to 'harry.halpin@inria.fr','mailto:harry.halpin@inria.fr' %>

-
-

diff --git a/src/source/stylesheets/screen.css.sass b/src/source/stylesheets/screen.css.sass index 1f9dbe4..ce23f5d 100644 --- a/src/source/stylesheets/screen.css.sass +++ b/src/source/stylesheets/screen.css.sass @@ -35,3 +35,8 @@ $eu-gold: #FFCC00 .europe-flag padding-top: 3rem color: $eu-blue + +.thumbnail-home + margin-right: 1rem + margin-bottom: 1rem +