mirror of
https://github.com/we-promise/sure.git
synced 2026-05-09 13:45:01 +00:00
* Add Sophtron Provider * fix syncer test issue * fix schema wrong merge * sync #588 * sync code for #588 * fixed a view issue * modified by comment * modified * modifed * modified * modified * fixed a schema issue * use global subtypes * add some locales * fix a safe_return_to_path * fix exposing raw exception messages issue * fix a merged issue * update schema.rb * fix a schema issue * fix some issue * Update bank sync controller to reflect beta status Signed-off-by: Juan José Mata <jjmata@jjmata.com> * Rename settings section title to 'Sophtron (alpha)' Signed-off-by: Juan José Mata <jjmata@jjmata.com> * Consistency in alpha/beta for Sophtron * Good PR suggestions from CodeRabbit --------- Signed-off-by: soky srm <sokysrm@gmail.com> Signed-off-by: Sophtron Rocky <rocky@sophtron.com> Signed-off-by: Juan José Mata <juanjo.mata@gmail.com> Signed-off-by: Juan José Mata <jjmata@jjmata.com> Co-authored-by: soky srm <sokysrm@gmail.com> Co-authored-by: Juan José Mata <juanjo.mata@gmail.com> Co-authored-by: Juan José Mata <jjmata@jjmata.com>
73 lines
2.1 KiB
Plaintext
73 lines
2.1 KiB
Plaintext
<%= content_for :page_title, t(".accounts") %>
|
|
<%= content_for :page_actions do %>
|
|
<%= icon(
|
|
"refresh-cw",
|
|
as_button: true,
|
|
size: "sm",
|
|
href: sync_all_accounts_path,
|
|
disabled: Current.family.syncing?,
|
|
frame: :_top
|
|
) %>
|
|
<%= render DS::Link.new(
|
|
text: "New account",
|
|
href: new_account_path(return_to: accounts_path),
|
|
variant: "primary",
|
|
icon: "plus",
|
|
frame: :modal
|
|
) %>
|
|
<% end %>
|
|
|
|
<% if @manual_accounts.empty? && @plaid_items.empty? && @simplefin_items.empty? && @lunchflow_items.empty? && @enable_banking_items.empty? && @coinstats_items.empty? && @coinbase_items.empty? && @mercury_items.empty? && @snaptrade_items.empty? && @indexa_capital_items.empty? && @sophtron_items.empty? %>
|
|
<%= render "empty" %>
|
|
<% else %>
|
|
<div class="space-y-2">
|
|
<% if @plaid_items.any? %>
|
|
<%= render @plaid_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @simplefin_items.any? %>
|
|
<%= render @simplefin_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @lunchflow_items.any? %>
|
|
<%= render @lunchflow_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @enable_banking_items.any? %>
|
|
<%= render @enable_banking_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @coinstats_items.any? %>
|
|
<%= render @coinstats_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @sophtron_items.any? %>
|
|
<%= render @sophtron_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @mercury_items.any? %>
|
|
<%= render @mercury_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @coinbase_items.any? %>
|
|
<%= render @coinbase_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @snaptrade_items.any? %>
|
|
<%= render @snaptrade_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @indexa_capital_items.any? %>
|
|
<%= render @indexa_capital_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @manual_accounts.any? %>
|
|
<div id="manual-accounts">
|
|
<%= render "accounts/index/manual_accounts", accounts: @manual_accounts %>
|
|
</div>
|
|
<% else %>
|
|
<div id="manual-accounts"></div>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|