2016-03-23 18:39:41 +01:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
Application.Controllers.controller "AboutController", ['$scope', 'Setting', 'CustomAsset', ($scope, Setting, CustomAsset)->
|
|
|
|
|
|
|
|
### PUBLIC SCOPE ###
|
|
|
|
|
|
|
|
Setting.get { name: 'about_title'}, (data)->
|
|
|
|
$scope.aboutTitle = data.setting
|
|
|
|
|
|
|
|
Setting.get { name: 'about_body'}, (data)->
|
|
|
|
$scope.aboutBody = data.setting
|
|
|
|
|
|
|
|
Setting.get { name: 'about_contacts'}, (data)->
|
|
|
|
$scope.aboutContacts = data.setting
|
|
|
|
|
|
|
|
# retrieve the CGU
|
|
|
|
CustomAsset.get {name: 'cgu-file'}, (cgu) ->
|
|
|
|
$scope.cgu = cgu.custom_asset
|
2016-03-31 12:59:29 +02:00
|
|
|
|
|
|
|
# retrieve the CGV
|
|
|
|
CustomAsset.get {name: 'cgv-file'}, (cgv) ->
|
|
|
|
$scope.cgv = cgv.custom_asset
|
2016-03-23 18:39:41 +01:00
|
|
|
]
|