Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
654 B
Raw Blame
<%# locals: (entry:) %>

<%= tag.header class: "mb-4 space-y-1", id: dom_id(entry, :header) do %>
  <span class="text-secondary text-sm">
    <% valuation = entry.entryable %>
    <%= valuation.display_name(entry) %>
  </span>

  <div class="flex items-center gap-4">
    <h3 class="font-medium">
      <span class="text-2xl text-primary privacy-sensitive">
        <%= format_money entry.amount_money %>
      </span>

      <span class="text-lg text-secondary">
        <%= entry.currency %>
      </span>
    </h3>
  </div>

  <span class="text-sm text-secondary">
    <%= entry.date ? I18n.l(entry.date, format: :long) : "—" %>
  </span>
<% end %>