From d6e979e9255efa8b6be3ef6111b17efb48f5ae76 Mon Sep 17 00:00:00 2001 From: Jamie Gaskins Date: Tue, 7 Dec 2021 16:14:24 -0500 Subject: [PATCH] Fix markup for API key metadata (#15706) This renders an HTML tag, which Rails was escaping. We have to tell Rails not to do that. --- app/views/users/_account.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/_account.html.erb b/app/views/users/_account.html.erb index d0da3eb54..1085fbc45 100644 --- a/app/views/users/_account.html.erb +++ b/app/views/users/_account.html.erb @@ -34,7 +34,7 @@

<%= api_secret.secret %>

-

<%= t("views.settings.account.api.active.created", time: tag.time(api_secret.created_at.to_s, datetime: api_secret.created_at.rfc3339)) %>

+

<%== t("views.settings.account.api.active.created", time: tag.time(api_secret.created_at.to_s, datetime: api_secret.created_at.rfc3339)) %>

<%= form_tag users_api_secret_path(api_secret.id), class: "api__secret__revoke", method: :delete do %> <%= button_tag t("views.settings.account.api.revoke"), class: "crayons-btn crayons-btn--danger" %>