mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Add subscribe for updates link (#958)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user