Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Added a clickable drop down arrow that reveals list of instructions for Twelve Data Secret Key (#247)

ampersandrucca14c919e5c
diff --git a/app/views/settings/hostings/_twelve_data_settings.html.erb b/app/views/settings/hostings/_twelve_data_settings.html.erb
index 0b4c9bfea3..90b524f2f9 100644
--- a/app/views/settings/hostings/_twelve_data_settings.html.erb
+++ b/app/views/settings/hostings/_twelve_data_settings.html.erb
@@ -4,14 +4,23 @@
<% if ENV["TWELVE_DATA_API_KEY"].present? %>
<p class="text-sm text-secondary"><%= t(".env_configured_message") %></p>
<% else %>
- <p class="text-secondary text-sm mb-4"><%= t(".description") %></p>
- <ol class="text-sm text-secondary mb-4 list-decimal ml-6 space-y-2">
+ <div class="text-secondary text-sm mb-4">
+ <span><%= t(".description") %></span>
+ <details class="inline">
+ <summary class="cursor-pointer font-medium text-secondary underline inline"> (show details)</summary>
+ <ol class="text-sm text-secondary mt-2 list-decimal ml-6 space-y-2">
<li>
- Visit <a href="https://twelvedata.com/register" target="_blank" rel="noopener noreferrer">twelvedata.com</a> and create a free Twelve Data Developer account.
- </li>
- <li>Go to the <a href="https://twelvedata.com/account/api-keys" target="_blank" rel="noopener noreferrer">API Keys</a> page.</li>
- <li>Reveal your <strong>Secret Key</strong> and paste it below.</li>
- </ol>
+ Visit <a href="https://twelvedata.com/register" target="_blank" rel="noopener noreferrer" class="underline">twelvedata.com</a> and create a free Twelve Data Developer account.
+ </li>
+ <li>
+ Go to the <a href="https://twelvedata.com/account/api-keys" target="_blank" rel="noopener noreferrer" class="underline">API Keys</a> page.
+ </li>
+ <li>
+ Reveal your <strong>Secret Key</strong> and paste it below.
+ </li>
+ </ol>
+ </details>
+ </div>
<% end %>
</div>