1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

Add transactions widget to dashboard page (#656)

This commit is contained in:
Mattia 2024-04-22 22:51:06 +02:00 committed by GitHub
parent 49b603f478
commit 8a29725562
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 56 additions and 28 deletions

View file

@ -7,6 +7,7 @@ class PagesController < ApplicationController
@asset_series = snapshot[:asset_series]
@liability_series = snapshot[:liability_series]
@account_groups = Current.family.accounts.by_group(period: @period, currency: Current.family.currency)
@transactions = Current.family.transactions.limit(5).order(date: :desc)
# TODO: Placeholders for trendlines
placeholder_series_data = 10.times.map do |i|