mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
20 lines
526 B
CoffeeScript
20 lines
526 B
CoffeeScript
'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
|
|
]
|