refactor(api): use the new api token creation wizard
This commit is contained in:
parent
852eedbc50
commit
eae07cab8c
3 changed files with 4 additions and 0 deletions
|
@ -2,3 +2,4 @@ en:
|
|||
tokens_title: API identification tokens
|
||||
first_paragraph_html: |
|
||||
These tokens are needed to make calls to the API of %{application_name}. You can <strong>click on </strong><a target=_blank rel="noopener" href="%{api_doc_url}" title="See %{application_name} API documentation">this link</a> to check our documentation
|
||||
create_token: create a new token
|
||||
|
|
|
@ -2,3 +2,4 @@ fr:
|
|||
tokens_title: Jetons d’identification de l’API (token)
|
||||
first_paragraph_html: |
|
||||
Ces jetons sont nécessaires pour effectuer des appels vers l’API de %{application_name}. Vous pouvez <strong>consulter notre documentation en suivant </strong><a target="_blank" rel="noopener" href="%{api_doc_url}" title="Voir la documentation de l'API de %{application_name}">ce lien</a>
|
||||
create_token: Créer un nouveau jeton
|
||||
|
|
|
@ -4,5 +4,7 @@
|
|||
%p
|
||||
= t('.first_paragraph_html', application_name: APPLICATION_NAME, api_doc_url: API_DOC_URL)
|
||||
|
||||
= link_to t('.create_token'), nom_api_tokens_path, class: "fr-btn fr-btn--secondary fr-mt-2w"
|
||||
|
||||
%ul.fr-mt-4w
|
||||
= render Profile::APITokenComponent.with_collection(api_tokens)
|
||||
|
|
Loading…
Add table
Reference in a new issue