diff --git a/CHANGELOG.md b/CHANGELOG.md index 72d48cf9e..b2315d8fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## next release - Upgraded ElasticSearch from 1.7 to 5.6 +- Ability to display the name of the user who booked a machine slot to other members - Updated OmniAuth to fix Hashie warnings [omniauth#872](https://github.com/omniauth/omniauth/issues/872) - Fix a bug: unable to filter statistics from age 0 - Fix a bug: events categories are not reported correctly in statistics @@ -16,6 +17,7 @@ - [TODO DEPLOY] **IMPORTANT** Please read [elastic_upgrade.md](doc/elastic_upgrade.md) for instructions on upgrading ElasticSearch. - [TODO DEPLOY] `rake fablab:fix:categories_slugs` - [TODO DEPLOY] `bundle install` +- [TODO DEPLOY] `rake db:seed` ## v2.6.4 2018 March 15 diff --git a/app/assets/javascripts/controllers/admin/settings.coffee b/app/assets/javascripts/controllers/admin/settings.coffee index a549c3cdf..54c6a7c1e 100644 --- a/app/assets/javascripts/controllers/admin/settings.coffee +++ b/app/assets/javascripts/controllers/admin/settings.coffee @@ -92,6 +92,10 @@ Application.Controllers.controller "SettingsController", ["$scope", 'Setting', ' name: 'visibility_others' value: parseInt(settingsPromise.visibility_others, 10) + $scope.displayNameEnable = + name: 'display_name_enable' + value: (settingsPromise.display_name_enable == 'true') + ## diff --git a/app/assets/javascripts/router.coffee.erb b/app/assets/javascripts/router.coffee.erb index badac5113..deeb9bbe6 100644 --- a/app/assets/javascripts/router.coffee.erb +++ b/app/assets/javascripts/router.coffee.erb @@ -1158,7 +1158,8 @@ angular.module('application.router', ['ui.router']). 'reminder_enable', 'reminder_delay', 'visibility_yearly', - 'visibility_others' + 'visibility_others', + 'display_name_enable' ]").$promise ] cguFile: ['CustomAsset', (CustomAsset) -> diff --git a/app/assets/templates/admin/settings/reservations.html b/app/assets/templates/admin/settings/reservations.html index a86517865..80b3856d2 100644 --- a/app/assets/templates/admin/settings/reservations.html +++ b/app/assets/templates/admin/settings/reservations.html @@ -148,4 +148,28 @@ + + + +