Files
sure/app/views/settings/hostings/_yahoo_finance_settings.html.erb
João Felipe 9fefe57de5 Feature/yahoo finance (#123)
* Implement Yahoo Finance

* Added tests

* Updated hosting controller to check for managed app_mode instead of env_override

* Suggestions from CodeRabbit and Fixes on tests

* Remove Css changes

* Fix yahoo finance impl and i18n

* Updated view to use healthy method

* remove usage

* Updated env example

* keep usage on class just to keep same format

* Ci test

* Remove some useless validations

* Remove logs

* Linter fixes

* Broke this in my conflict merge

* Wrong indentation level

---------

Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
2025-10-28 23:15:14 +01:00

38 lines
1.1 KiB
Plaintext

<div class="space-y-4">
<div>
<h2 class="font-medium mb-1"><%= t(".title") %></h2>
<p class="text-secondary text-sm mb-4"><%= t(".description") %></p>
</div>
<% if @yahoo_finance_provider&.healthy? %>
<div class="space-y-4">
<div class="flex items-center space-x-3">
<div class="w-3 h-3 bg-green-500 rounded-full"></div>
<p class="text-sm text-secondary">
<%= t(".status_active") %>
</p>
</div>
</div>
<% else %>
<div class="space-y-4">
<div class="flex items-center space-x-3">
<div class="w-3 h-3 bg-red-500 rounded-full"></div>
<p class="text-sm text-secondary">
<%= t(".status_inactive") %>
</p>
</div>
<div class="bg-red-50 border border-red-200 rounded-lg p-3">
<div class="flex">
<div class="ml-3">
<h3 class="text-sm font-medium text-red-800">
<%= t(".connection_failed") %>
</h3>
<div class="mt-2 text-sm text-red-700">
<p><%= t(".troubleshooting") %></p>
</div>
</div>
</div>
</div>
</div>
<% end %>
</div>