Browse Source

RGPD day

master
aeris 4 years ago
parent
commit
57e3458649
  1. 15
      source/index.html.erb
  2. 13
      source/stylesheets/site.css.scss

15
source/index.html.erb

@ -18,7 +18,7 @@
<tr>
<th rowspan="2">
<% link_to 'index.ics' do %>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
viewBox="0 0 60 60" style="enable-background:new 0 0 60 60;" xml:space="preserve">
<g>
<g>
@ -45,14 +45,20 @@
<%=
n = events.size
attributes = n == 1 ? nil : { colspan: n }
content_tag :th, I18n.l(day, format: '%A %d %B'), attributes
content_tag :th, attributes do
content = I18n.l day, format: '%A %d %B'
content += '<br/>Journée spéciale RGPD' if day == Date.new(2018, 6, 29)
content
end
%>
<% end %>
</tr>
<tr>
<% planning.each do |_, events| %>
<% events.each do |location, _| %>
<td><%= case location
<td>
<%= case location
when :cinema
'Salle cinéma'
when :hall
@ -60,7 +66,8 @@
when :town
'Village asso'
end
%></td>
%>
</td>
<% end %>
<% end %>
</tr>

13
source/stylesheets/site.css.scss

@ -5,13 +5,13 @@
$line-height: 150px;
$background: #212121;
$background: #000;
//$background: #000;
$event-talk: #3F51B5;
$event-workshop: #f44336;
$event-concert: #4CAF50;
$event-round-table: #FFC107;
$event-misc: #673AB7;
//$event-talk: #3F51B5;
//$event-workshop: #f44336;
//$event-concert: #4CAF50;
//$event-round-table: #FFC107;
//$event-misc: #673AB7;
//$event-talk: #2962FF;
//$event-workshop: #DD2C00;
@ -23,6 +23,7 @@ $event-talk: #2980b9;
$event-workshop: #c0392b;
$event-concert: #27ae60;
$event-round-table: #FFC107;
$event-misc: #673AB7;
@mixin event($color) {
background-color: $color;

Loading…
Cancel
Save