Add some admin usage info for contextual help with crisp
Fix #4052 Signed-off-by: Chaïb Martinez <chaibax@gmail.com>
This commit is contained in:
parent
04e204c740
commit
d968e7e6bd
2 changed files with 11 additions and 1 deletions
|
@ -250,7 +250,11 @@ class ApplicationController < ActionController::Base
|
|||
email: current_administrateur&.email,
|
||||
DS_SIGN_IN_COUNT: current_administrateur&.sign_in_count,
|
||||
DS_CREATED_AT: current_administrateur&.created_at,
|
||||
DS_ID: current_administrateur&.id
|
||||
DS_ID: current_administrateur&.id,
|
||||
DS_NB_DEMARCHES_BROUILLONS: current_administrateur.procedures.brouillons.count,
|
||||
DS_NB_DEMARCHES_ACTIVES: current_administrateur.procedures.publiees.count,
|
||||
DS_NB_DEMARCHES_ARCHIVES: current_administrateur.procedures.archivees.count
|
||||
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
|
@ -21,6 +21,12 @@ if (enabled) {
|
|||
[
|
||||
['DS_ID', administrateur.email],
|
||||
['DS_SIGN_IN_COUNT', administrateur.DS_SIGN_IN_COUNT],
|
||||
[
|
||||
'DS_NB_DEMARCHES_BROUILLONS',
|
||||
administrateur.DS_NB_DEMARCHES_BROUILLONS
|
||||
],
|
||||
['DS_NB_DEMARCHES_ACTIVES', administrateur.DS_NB_DEMARCHES_ACTIVES],
|
||||
['DS_NB_DEMARCHES_ARCHIVES', administrateur.DS_NB_DEMARCHES_ARCHIVES],
|
||||
[
|
||||
'URL_MANAGER',
|
||||
'https://www.demarches-simplifiees.fr/manager/administrateurs/' +
|
||||
|
|
Loading…
Add table
Reference in a new issue