Skip to content

Commit dcb6748

Browse files
ampersandrujjmata
andauthored
Added a clickable drop down arrow that reveals list of instructions for Brand Fetch Client ID (#246)
* Added a clickable drop down arrow that reveals list of instructions for Brand Fetch Client ID Signed-off-by: ampersandru <[email protected]> * Updated html code based on recommendations Signed-off-by: ampersandru <[email protected]> * Update _brand_fetch_settings.html.erb Signed-off-by: ampersandru <[email protected]> * Small edit for consistency with Twelve Data settings flow * HTML linting * Missed an extra closing tag. --------- Signed-off-by: ampersandru <[email protected]> Signed-off-by: Juan José Mata <[email protected]> Co-authored-by: Juan José Mata <[email protected]>
1 parent cca14c9 commit dcb6748

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

app/views/settings/hostings/_brand_fetch_settings.html.erb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,23 @@
44
<% if ENV["BRAND_FETCH_CLIENT_ID"].present? %>
55
<p class="text-sm text-secondary">You have successfully configured your Brand Fetch Client ID through the BRAND_FETCH_CLIENT_ID environment variable.</p>
66
<% else %>
7-
<p class="text-secondary text-sm mb-4"><%= t(".description") %></p>
8-
<ol class="text-sm text-secondary mb-4 list-decimal ml-6 space-y-2">
7+
<div class="text-secondary text-sm mb-4">
8+
<span><%= t(".description") %></span>
9+
<details class="inline">
10+
<summary class="cursor-pointer font-medium text-secondary underline inline"> (show details)</summary>
11+
<ol class="text-sm text-secondary mt-2 list-decimal ml-6 space-y-2">
912
<li>
10-
Visit <a href="https://brandfetch.com/developers" target="_blank" rel="noopener noreferrer">brandfetch.com</a> and create a free Brand Fetch Developer account.
13+
Visit <a href="https://brandfetch.com/developers" target="_blank" rel="noopener noreferrer" class="underline">brandfetch.com</a> and create a free Brand Fetch Developer account.
14+
</li>
15+
<li>
16+
Go to the <a href="https://developers.brandfetch.com/dashboard/logo-api" target="_blank" rel="noopener noreferrer" class="underline">Logo API</a> page.
17+
</li>
18+
<li>
19+
Tap the eye icon under the "Your Client ID" section to reveal your <strong>Client ID</strong> and paste it below.
1120
</li>
12-
<li>Go to the <a href="https://developers.brandfetch.com/dashboard/logo-api" target="_blank" rel="noopener noreferrer">Logo API</a> page.</li>
13-
<li>Tap the eye icon under the "Your Client ID" section to reveal your <strong>Client ID</strong> and paste it below.</li>
1421
</ol>
22+
</details>
23+
</div>
1524
<% end %>
1625
</div>
1726

0 commit comments

Comments
 (0)