mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-07 06:25:19 +02:00
Merge branch 'main' into jjmata/update-readme
Signed-off-by: Juan José Mata <jjmata@jjmata.com>
This commit is contained in:
commit
44774684c7
5 changed files with 20 additions and 1 deletions
|
@ -32,6 +32,8 @@ Join us?
|
||||||
|
|
||||||
[^^^ STOPPED EDITING HERE ^^^]
|
[^^^ STOPPED EDITING HERE ^^^]
|
||||||
|
|
||||||
|
> This repository is no longer actively maintained. You can read more about this in our [final release](https://github.com/maybe-finance/maybe/releases/tag/v0.6.0).
|
||||||
|
|
||||||
## Maybe Hosting
|
## Maybe Hosting
|
||||||
|
|
||||||
Maybe is a fully working personal finance app that can be [self hosted with Docker](docs/hosting/docker.md).
|
Maybe is a fully working personal finance app that can be [self hosted with Docker](docs/hosting/docker.md).
|
||||||
|
|
|
@ -9,6 +9,11 @@ class AccountsController < ApplicationController
|
||||||
render layout: "settings"
|
render layout: "settings"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def sync_all
|
||||||
|
family.sync_later
|
||||||
|
redirect_to accounts_path, notice: "Syncing accounts..."
|
||||||
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@chart_view = params[:chart_view] || "balance"
|
@chart_view = params[:chart_view] || "balance"
|
||||||
@tab = params[:tab]
|
@tab = params[:tab]
|
||||||
|
|
|
@ -2,6 +2,14 @@
|
||||||
<h1 class="text-xl"><%= t(".accounts") %></h1>
|
<h1 class="text-xl"><%= t(".accounts") %></h1>
|
||||||
<div class="flex items-center gap-5">
|
<div class="flex items-center gap-5">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
|
<%= icon(
|
||||||
|
"refresh-cw",
|
||||||
|
as_button: true,
|
||||||
|
size: "sm",
|
||||||
|
href: sync_all_accounts_path,
|
||||||
|
disabled: Current.family.syncing?,
|
||||||
|
frame: :_top
|
||||||
|
) %>
|
||||||
<%= render DS::Link.new(
|
<%= render DS::Link.new(
|
||||||
text: "New account",
|
text: "New account",
|
||||||
href: new_account_path(return_to: accounts_path),
|
href: new_account_path(return_to: accounts_path),
|
||||||
|
|
|
@ -14,7 +14,7 @@ module Maybe
|
||||||
|
|
||||||
private
|
private
|
||||||
def semver
|
def semver
|
||||||
"0.5.0"
|
"0.6.0"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -162,6 +162,10 @@ Rails.application.routes.draw do
|
||||||
get :sparkline
|
get :sparkline
|
||||||
patch :toggle_active
|
patch :toggle_active
|
||||||
end
|
end
|
||||||
|
|
||||||
|
collection do
|
||||||
|
post :sync_all
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Convenience routes for polymorphic paths
|
# Convenience routes for polymorphic paths
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue