diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb index 7248c1159..4926380cd 100644 --- a/app/views/admin/users/index.html.erb +++ b/app/views/admin/users/index.html.erb @@ -79,7 +79,7 @@ <%= button_to 'Se connecter en tant que cet utilisateur', impersonate_admin_user_path(user), data: { turbo: false }, class: 'fr-btn', id: dom_id(user, :impersonate) %> <% end %> - + <% end %> diff --git a/app/views/api_entreprise/endpoints/show.html.erb b/app/views/api_entreprise/endpoints/show.html.erb index 876c9397e..659ef72de 100644 --- a/app/views/api_entreprise/endpoints/show.html.erb +++ b/app/views/api_entreprise/endpoints/show.html.erb @@ -9,10 +9,11 @@
<%= @endpoint.description %> - - <%= icon(t("endpoint.opening.#{@endpoint.opening}.included_icon", raise: true)) rescue nil %> - <%= link_to t("endpoint.opening.#{@endpoint.opening}.included", raise: true), faq_index_path(anchor: 'qu-est-ce-que-les-api-incluses-par-defaut') rescue nil %> - + + + <%= icon(t("endpoint.opening.#{@endpoint.opening}.included_icon", raise: true)) rescue nil %> + <%= link_to t("endpoint.opening.#{@endpoint.opening}.included", raise: true), faq_index_path(anchor: 'qu-est-ce-que-les-api-incluses-par-defaut') rescue nil %> + <% if @endpoint.incoming? %>
- <% @endpoint.providers.map do |provider| %> + <% provider_names = @endpoint.providers.map do |provider| %> <%= t("providers.#{provider.name}") %> - <% end.join(' & ') %> -
+ <% end %> + + <%= provider_names.join(' & ') %> +
Le jeton est émis avec une durée de vie de 18 mois, son expiration est programmée à cette date sauf en cas de révocation précoce. Trois mois avant l’expiration, diff --git a/app/views/api_particulier/endpoints/show.html.erb b/app/views/api_particulier/endpoints/show.html.erb index 5eb505868..c61c40052 100644 --- a/app/views/api_particulier/endpoints/show.html.erb +++ b/app/views/api_particulier/endpoints/show.html.erb @@ -70,10 +70,12 @@
- <% @endpoint.providers.map do |provider| %> + <% provider_names = @endpoint.providers.map do |provider| %> <%= t("providers.#{provider.name}") %> - <% end.join(' & ') %> -
+ <% end %> + + <%= provider_names.join(' & ') %> +
diff --git a/app/views/shared/authorization_requests/actions/_prolong.html.erb b/app/views/shared/authorization_requests/actions/_prolong.html.erb index a7dbcacb4..141b6d57b 100644 --- a/app/views/shared/authorization_requests/actions/_prolong.html.erb +++ b/app/views/shared/authorization_requests/actions/_prolong.html.erb @@ -4,6 +4,8 @@ id="<%= dom_id(authorization_request, :prolong_token_modal_link) %>" class="fr-btn fr-icon-arrow-right-line fr-btn--icon-right fr-mt-2w" > + <%= label %> + <% else %> + <%= label %> + <% end %> - <%= label %> - diff --git a/app/views/shared/authorization_requests/show.html.erb b/app/views/shared/authorization_requests/show.html.erb index b218dab87..b40ab3520 100644 --- a/app/views/shared/authorization_requests/show.html.erb +++ b/app/views/shared/authorization_requests/show.html.erb @@ -53,7 +53,7 @@ - + @@ -95,6 +95,8 @@ id="prolong-token-modal-link" class="fr-btn fr-icon-arrow-right-line fr-btn--icon-right fr-mt-2w" > + <%= prolong_token_label(@main_token) %> + <% else %> + <%= prolong_token_label(@main_token) %> + <% end %> - <%= prolong_token_label(@main_token) %> - <% end %> <% if policy(@main_token).ask_for_prolongation? %> diff --git a/app/views/shared/tokens/prolong.html.erb b/app/views/shared/tokens/prolong.html.erb index bd5fbb196..c659ad37b 100644 --- a/app/views/shared/tokens/prolong.html.erb +++ b/app/views/shared/tokens/prolong.html.erb @@ -3,14 +3,14 @@<%= t('.description', link_to_datapass: link_to( - t('shared.links.to_datapass', external_id: @token.authorization_request.external_id).html_safe, - datapass_authorization_request_url(@token.authorization_request), + t('shared.links.to_datapass', external_id: @token.authorization_request.external_id).html_safe, + datapass_authorization_request_url(@token.authorization_request), id: :authorization_request_link, - class: %w(fr-link), + class: %w(fr-link), target: '_blank'), remaining_time: distance_of_time_in_words(Time.zone.now, @token.end_timestamp) ).html_safe %>