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

move i18n public profile

This commit is contained in:
Sylvain 2016-05-12 15:46:18 +02:00
parent c499771433
commit a5dd2153d6
6 changed files with 42 additions and 36 deletions

View File

@ -139,7 +139,7 @@ angular.module('application.router', ['ui.router']).
controller: 'DashboardController'
resolve:
translations: [ 'Translations', (Translations) ->
Translations.query(['app.logged.dashboard.profile']).$promise
Translations.query(['app.logged.dashboard.profile', 'app.shared.public_profile']).$promise
]
.state 'app.logged.dashboard.settings',
url: '/settings'

View File

@ -72,14 +72,6 @@ en:
members_show:
# public profil of a member
members_list: "Members list"
last_activity_: "Last activity"
_on_: "on"
to_come: "to come"
approved: "approved"
projects: "Projects"
no_projects: "No projects"
author: "Author"
collaborator: "Collaborator"
members:
# list of members accepting to be contacted

View File

@ -72,14 +72,6 @@ fr:
members_show:
# profil public d'un membre
members_list: "Liste des membres"
last_activity_: "Dernière activité"
_on_: "le"
to_come: "à venir"
approved: "validée"
projects: "Projets"
no_projects: "Aucun projet"
author: "Auteur"
collaborator: "Collaborateur"
members:
# liste des membres qui acceptent d'être contactés

View File

@ -267,3 +267,14 @@ en:
machine_reservation: "Machine reservation"
you_must_wait_for_your_training_is_being_validated_by_the_fablab_team_to_book_this_machine: "You must wait for your training is being validated by the FabLab team to book this machine."
your_training_will_occur_: "Your training will occur"
public_profile:
# user public profile
last_activity_: "Last activity"
_on_: "on"
to_come: "to come"
approved: "approved"
projects: "Projects"
no_projects: "No projects"
author: "Author"
collaborator: "Collaborator"

View File

@ -267,3 +267,14 @@ fr:
machine_reservation: "Réservation machine"
you_must_wait_for_your_training_is_being_validated_by_the_fablab_team_to_book_this_machine: "Il faut attendre que votre formation soit validée par l'équipe du Fab Lab pour réserver cette machine."
your_training_will_occur_: "Votre formation aura lieu le"
public_profile:
# profil publique d'un utilisateur
last_activity_: "Dernière activité"
_on_: "le"
to_come: "à venir"
approved: "validée"
projects: "Projets"
no_projects: "Aucun projet"
author: "Auteur"
collaborator: "Collaborateur"

View File

@ -98,27 +98,27 @@ Finally you have to create an admin interface with AngularJS:
- **app/assets/javascript/controllers/admin/authentifications.coffee**
## list of supported authentication methods
METHODS = {
...
'LdapProvider' : 'LDAP' # add the name of your ActiveRecord model class here as a hash key, associated with a human readable name as a hash value (string)
}
## list of supported authentication methods
METHODS = {
...
'LdapProvider' : 'LDAP' # add the name of your ActiveRecord model class here as a hash key, associated with a human readable name as a hash value (string)
}
Application.Controllers.controller "newAuthentificationController", ...
$scope.updateProvidable = ->
...
if $scope.provider.providable_type == 'LdapProvider'
# you may want to do some stuff to initialize your provider here
Application.Controllers.controller "newAuthentificationController", ...
$scope.registerProvider = ->
...
# === LdapProvider ===
else if $scope.provider.providable_type == 'LdapProvider'
# here you may want to do some data validation
# then: save the settings
AuthProvider.save auth_provider: $scope.provider, (provider) ->
# register was a success, display a message, redirect, etc.
$scope.updateProvidable = ->
...
if $scope.provider.providable_type == 'LdapProvider'
# you may want to do some stuff to initialize your provider here
$scope.registerProvider = ->
...
# === LdapProvider ===
else if $scope.provider.providable_type == 'LdapProvider'
# here you may want to do some data validation
# then: save the settings
AuthProvider.save auth_provider: $scope.provider, (provider) ->
# register was a success, display a message, redirect, etc.
And to include this interface into the existing one ( **app/assets/templates/admin/authentifications/edit.html.erb**)