1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-02 13:24:20 +01:00

Merge branch 'dev' for release 2.8.3

This commit is contained in:
Sylvain 2019-01-29 12:13:07 +01:00
commit 172931561a
7 changed files with 17 additions and 7 deletions

View File

@ -1,8 +1,16 @@
# Changelog Fab Manager # Changelog Fab Manager
## v2.8.3 2019 January 29
- Added user's manual (fr)
- Fix a bug: unable to run rails console
- Fix a bug: some reservation slots are not shown on the user calendars (#127)
## v2.8.2 2019 January 22 ## v2.8.2 2019 January 22
- Removed ability to disable invoicing for an user - Removed ability to disable invoicing for an user
- Improved user autocompletion when using multiple words
- Refactored API controllers
- Fixed a missing translation in plan form - Fixed a missing translation in plan form
- Fix a bug: error handling on password recovery - Fix a bug: error handling on password recovery
- Fix a bug: error handling on machine attachment upload - Fix a bug: error handling on machine attachment upload
@ -12,7 +20,6 @@
- Fix a bug: unable to create/edit a plan of 12 months or 52 weeks - Fix a bug: unable to create/edit a plan of 12 months or 52 weeks
- Fix a bug: Unable to search in user autocomplete fields - Fix a bug: Unable to search in user autocomplete fields
- Fix a bug: Invalid translation in new partner modal - Fix a bug: Invalid translation in new partner modal
- Improved user autocompletion when using multiple words
- Refactored frontend invoices translations - Refactored frontend invoices translations
- Updated RailRoady 1.4.0 to 1.5.3 - Updated RailRoady 1.4.0 to 1.5.3
- [TODO DEPLOY] `bundle install` - [TODO DEPLOY] `bundle install`

View File

@ -49,6 +49,7 @@ group :development do
# Preview mail in the browser # Preview mail in the browser
gem 'mailcatcher' gem 'mailcatcher'
gem 'puma' gem 'puma'
gem 'rb-readline'
gem 'rvm-capistrano', require: false gem 'rvm-capistrano', require: false
end end

View File

@ -356,6 +356,7 @@ GEM
rb-fsevent (0.9.4) rb-fsevent (0.9.4)
rb-inotify (0.9.5) rb-inotify (0.9.5)
ffi (>= 0.5.0) ffi (>= 0.5.0)
rb-readline (0.5.5)
rdoc (4.3.0) rdoc (4.3.0)
recurrence (1.3.0) recurrence (1.3.0)
activesupport activesupport
@ -562,6 +563,7 @@ DEPENDENCIES
rails (= 4.2.11) rails (= 4.2.11)
rails-observers rails-observers
rails_12factor rails_12factor
rb-readline
recurrence recurrence
responders (~> 2.0) responders (~> 2.0)
rolify rolify
@ -587,4 +589,4 @@ DEPENDENCIES
webmock webmock
BUNDLED WITH BUNDLED WITH
1.16.1 1.17.2

View File

@ -59,7 +59,7 @@ class Availabilities::AvailabilitiesService
end end
end end
slots.each do |s| slots.each do |s|
s.title = t('availabilities.not_available') if s.is_complete? && !s.is_reserved s.title = I18n.t('availabilities.not_available') if s.is_complete? && !s.is_reserved
end end
slots slots
end end

View File

@ -17,13 +17,13 @@ class Availabilities::StatusService
slot.id = s.id slot.id = s.id
slot.is_reserved = true slot.is_reserved = true
slot.title = "#{slot.machine.name} - #{show_name ? r.user.profile.full_name : t('availabilities.not_available')}" slot.title = "#{slot.machine.name} - #{show_name ? r.user.profile.full_name : I18n.t('availabilities.not_available')}"
slot.can_modify = true if @current_user_role == 'admin' slot.can_modify = true if @current_user_role == 'admin'
slot.reservations.push r slot.reservations.push r
next unless r.user == user next unless r.user == user
slot.title = "#{slot.machine.name} - #{t('availabilities.i_ve_reserved')}" slot.title = "#{slot.machine.name} - #{I18n.t('availabilities.i_ve_reserved')}"
slot.can_modify = true slot.can_modify = true
slot.is_reserved_by_current_user = true slot.is_reserved_by_current_user = true
end end
@ -45,7 +45,7 @@ class Availabilities::StatusService
next unless r.user == user next unless r.user == user
slot.id = s.id slot.id = s.id
slot.title = t('availabilities.i_ve_reserved') slot.title = I18n.t('availabilities.i_ve_reserved')
slot.can_modify = true slot.can_modify = true
slot.is_reserved = true slot.is_reserved = true
end end

Binary file not shown.

View File

@ -1,6 +1,6 @@
{ {
"name": "fab-manager", "name": "fab-manager",
"version": "2.8.2", "version": "2.8.3",
"description": "FabManager is the FabLab management solution. It is web-based, open-source and totally free.", "description": "FabManager is the FabLab management solution. It is web-based, open-source and totally free.",
"keywords": [ "keywords": [
"fablab", "fablab",