Add subscribe for updates link (#958)

This commit is contained in:
Jamil
2022-09-13 08:49:46 -07:00
committed by GitHub
parent ac5d2379f1
commit 70e4bf36c1
2 changed files with 19 additions and 0 deletions

View File

@@ -106,6 +106,19 @@
<% end %>
</section>
<section class="section is-main-section">
<h4 class="title is-4">
Product and Security Updates
</h4>
<div class="block">
<p>
<%= link("Click here", to: @subscribe_link) %>
to register for product and security updates.
</p>
</div>
</section>
<section class="section is-main-section">
<h4 class="title is-4">
Danger Zone

View File

@@ -17,6 +17,7 @@ defmodule FzHttpWeb.SettingLive.Account do
{:ok,
socket
|> assign(:subscribe_link, subscribe_link())
|> assign(:changeset, Users.change_user(socket.assigns.current_user))
|> assign(:methods, MFA.list_methods(socket.assigns.current_user))
|> assign(:page_title, @page_title)
@@ -59,4 +60,9 @@ defmodule FzHttpWeb.SettingLive.Account do
defp get_metas(presences, user_id) do
get_in(presences, [to_string(user_id), :metas]) || []
end
defp subscribe_link do
tid = Application.get_env(:fz_http, :telemetry_id)
"https://e04kusl9oz5.typeform.com/to/o7gPAFz6#uid=#{tid}"
end
end