mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 15:05:22 +02:00
Refactor placeholder logo into common controller (#673)
This can be updated to redirect/pull from third party sources in future, with the option of always falling back to the placeholder if there are any failures.
This commit is contained in:
parent
5a5f13b46b
commit
be21d2b4fd
7 changed files with 50 additions and 24 deletions
|
@ -25,9 +25,7 @@
|
|||
<% accountable_group.children.map do |account_value_node| %>
|
||||
<div class="flex items-center justify-between text-sm font-medium text-gray-900">
|
||||
<div class="flex items-center gap-4">
|
||||
<div class="flex items-center justify-center w-8 h-8 rounded-full <%= text_class %> <%= accountable_bg_transparent_class(account_value_node.name) %>">
|
||||
<%= account_value_node.name[0].upcase %>
|
||||
</div>
|
||||
<%= image_tag account_logo_url(account_value_node.original), class: "w-8 h-8" %>
|
||||
<div>
|
||||
<p><%= account_value_node.name %></p>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue