mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 04:25:21 +02:00
Account namespace updates: part 5 (valuations) (#901)
* Move Valuation to Account namespace * Move account history to controller * Clean up valuation controller and views * Translations and cleanup * Remove unused scopes and methods * Pass brakeman
This commit is contained in:
parent
0bc0d87768
commit
12380dc8ad
45 changed files with 478 additions and 346 deletions
26
config/locales/views/account/valuations/en.yml
Normal file
26
config/locales/views/account/valuations/en.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
en:
|
||||
account:
|
||||
valuations:
|
||||
destroy:
|
||||
success: Valuation deleted
|
||||
form:
|
||||
cancel: Cancel
|
||||
index:
|
||||
change: change
|
||||
date: date
|
||||
value: value
|
||||
update:
|
||||
success: Valuation updated
|
||||
valuation:
|
||||
confirm_accept: Delete entry
|
||||
confirm_body_html: "<p>Deleting this entry will remove it from the account’s
|
||||
history which will impact different parts of your account. This includes
|
||||
the net worth and account graphs.</p></br><p>The only way you’ll be able
|
||||
to add this entry back is by re-entering it manually via a new entry</p>"
|
||||
confirm_title: Delete Entry?
|
||||
delete_entry: Delete entry
|
||||
edit_entry: Edit entry
|
||||
no_change: No change
|
||||
start_balance: Starting balance
|
||||
value_update: Value update
|
|
@ -1,13 +1,6 @@
|
|||
---
|
||||
en:
|
||||
accounts:
|
||||
account_valuation_list:
|
||||
confirm_accept: Delete entry
|
||||
confirm_body_html: "<p>Deleting this entry will remove it from the account’s
|
||||
history which will impact different parts of your account. This includes the
|
||||
net worth and account graphs.</p></br><p>The only way you’ll be able to add
|
||||
this entry back is by re-entering it manually via a new entry</p>"
|
||||
confirm_title: Delete Entry?
|
||||
create:
|
||||
success: New account created successfully
|
||||
destroy:
|
||||
|
@ -65,9 +58,12 @@ en:
|
|||
confirm_title: Delete account?
|
||||
edit: Edit
|
||||
import: Import transactions
|
||||
loading_history: Loading account history...
|
||||
new_entry: New entry
|
||||
sync_message_missing_rates: Since exchange rates haven't been synced, balance
|
||||
graphs may not reflect accurate values.
|
||||
sync_message_unknown_error: An error has occurred during the sync.
|
||||
valuations: Value history
|
||||
summary:
|
||||
new: New account
|
||||
sync:
|
||||
|
|
|
@ -80,8 +80,10 @@ Rails.application.routes.draw do
|
|||
post :sync
|
||||
end
|
||||
|
||||
resource :logo, only: :show, module: :account
|
||||
resources :valuations, shallow: true
|
||||
scope module: :account do
|
||||
resource :logo, only: :show
|
||||
resources :valuations
|
||||
end
|
||||
end
|
||||
|
||||
resources :institutions, except: %i[ index show ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue