1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

[feature] link to CGV in about page

This commit is contained in:
Sylvain 2016-03-31 12:59:29 +02:00
parent 2bf5a60ab5
commit 2587eaf3cc
4 changed files with 10 additions and 1 deletions

View File

@ -16,4 +16,8 @@ Application.Controllers.controller "AboutController", ['$scope', 'Setting', 'Cus
# retrieve the CGU
CustomAsset.get {name: 'cgu-file'}, (cgu) ->
$scope.cgu = cgu.custom_asset
# retrieve the CGV
CustomAsset.get {name: 'cgv-file'}, (cgv) ->
$scope.cgv = cgv.custom_asset
]

View File

@ -11,7 +11,10 @@
<div class="col-sm-offset-1 col-md-offset-3 col-sm-7 col-md-5 col-lg-4 m-b-lg">
<span ng-bind-html="aboutBody.value"></span>
<p ng-show="cgu">
<a href="{{cgu.custom_asset_file_attributes.attachment_url}}" target="_blank" translate translate>{{ 'read_the_fablab_policy' }}</a>
<a href="{{cgu.custom_asset_file_attributes.attachment_url}}" target="_blank" translate>{{ 'read_the_fablab_policy' }}</a>
</p>
<p ng-show="cgv">
<a href="{{cgv.custom_asset_file_attributes.attachment_url}}" target="_blank" translate>{{ 'read_the_fablab_s_general_terms_and_conditions' }}</a>
</p>
</div>

View File

@ -92,6 +92,7 @@ en:
about:
# about page
read_the_fablab_policy: "Read the FabLab policy"
read_the_fablab_s_general_terms_and_conditions: "Read the FabLab's general terms and conditions"
your_fablab_s_contacts: "Your FabLab's contacts"
home:

View File

@ -92,6 +92,7 @@ fr:
about:
# page à propos
read_the_fablab_policy: "Consulter les règles d'utilisation du Fab Lab"
read_the_fablab_s_general_terms_and_conditions: "Consulter les conditions générales de vente du Fab Lab"
your_fablab_s_contacts: "Vos contacts au Fab Lab"
home: