diff --git a/.fabmanager-version b/.fabmanager-version index 06d0f343f..e128db9d6 100644 --- a/.fabmanager-version +++ b/.fabmanager-version @@ -1 +1 @@ -2.5.11 \ No newline at end of file +2.5.12 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 135809c78..626357ad7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog Fab Manager +## v2.5.12 2017 September 11 + +- Fix a bug: Long words overflow from homepage's events blocks +- Fix a bug: ActiveRecord::RecordNotFound when running rake task fix:recursive_events_over_DST + ## v2.5.11 2017 September 7 - Added tooltip concerning images insertion while configuring the about page diff --git a/app/assets/stylesheets/app.layout.scss b/app/assets/stylesheets/app.layout.scss index 3ad8383b8..0c8946e00 100644 --- a/app/assets/stylesheets/app.layout.scss +++ b/app/assets/stylesheets/app.layout.scss @@ -619,3 +619,9 @@ body.container{ .calendar-filter-aside { padding: 20px; } + +.home-events { + .event-description { + overflow: hidden; + } +} \ No newline at end of file diff --git a/app/assets/templates/home.html.erb b/app/assets/templates/home.html.erb index d851693ab..2109fd532 100644 --- a/app/assets/templates/home.html.erb +++ b/app/assets/templates/home.html.erb @@ -79,7 +79,7 @@ -
+

{{ 'fablab_s_next_events' | translate }} {{ 'every_events' | translate }}

@@ -100,7 +100,7 @@ {{event.category.name}}
-

+


diff --git a/docker/README.md b/docker/README.md index 1a7ab4dda..16ba5a62b 100644 --- a/docker/README.md +++ b/docker/README.md @@ -75,7 +75,7 @@ mkdir -p /apps/fabmanager/config ``` Make a copy of the **docker/env.example** file and use it as a starting point. -Set all the environment variables needed by your application. Please refer to the [FabManager README](https://github.com/LaCasemate/fab-manager/blob/master/README.md) for explanations about those variables. +Set all the environment variables needed by your application. Please refer to the [FabManager README](https://github.com/LaCasemate/fab-manager/blob/master/README.md#environment-configuration) for explanations about those variables. Then, copy the previously customized `env.example` file as `/apps/fabmanager/config/env` diff --git a/lib/tasks/fablab/fix.rake b/lib/tasks/fablab/fix.rake index a213fe79d..ef358a502 100644 --- a/lib/tasks/fablab/fix.rake +++ b/lib/tasks/fablab/fix.rake @@ -62,13 +62,19 @@ namespace :fablab do include ApplicationHelper groups = Event.group(:recurrence_id).count groups.keys.each do |recurrent_event_id| - initial_event = Event.find(recurrent_event_id) - Event.where(recurrence_id: recurrent_event_id).where.not(id: recurrent_event_id).each do |event| - availability = event.availability - if initial_event.availability.start_at.hour != availability.start_at.hour - availability.start_at = dst_correction(initial_event.availability.start_at, availability.start_at) - availability.end_at = dst_correction(initial_event.availability.end_at, availability.end_at) - availability.save! + if recurrent_event_id + initial_event = Event.find(recurrent_event_id) + if initial_event + Event.where(recurrence_id: recurrent_event_id).where.not(id: recurrent_event_id).each do |event| + availability = event.availability + if initial_event.availability.start_at.hour != availability.start_at.hour + availability.start_at = dst_correction(initial_event.availability.start_at, availability.start_at) + availability.end_at = dst_correction(initial_event.availability.end_at, availability.end_at) + availability.save! + end + end + else + puts "Error: The initial event (id: #{recurrent_event_id}) of the recurrence was not found. You may have to correct events manually" end end end