mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Expand page for currency exchange rates.
This commit is contained in:
@@ -762,6 +762,13 @@ Breadcrumbs::for(
|
||||
}
|
||||
);
|
||||
|
||||
Breadcrumbs::for(
|
||||
'exchange-rates.rates',
|
||||
static function (Generator $breadcrumbs, TransactionCurrency $from, TransactionCurrency $to): void {
|
||||
$breadcrumbs->parent('exchange-rates.index');
|
||||
$breadcrumbs->push(trans('breadcrumbs.exchange_rates_rates', ['from' => $from->name, 'to' => $to->name]), route('exchange-rates.rates', [$from->code, $to->code]));
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// PROFILE
|
||||
|
@@ -365,6 +365,7 @@ Route::group(
|
||||
['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers\ExchangeRates', 'prefix' => 'exchange-rates', 'as' => 'exchange-rates.'],
|
||||
static function (): void {
|
||||
Route::get('', ['uses' => 'IndexController@index', 'as' => 'index']);
|
||||
Route::get('{fromCurrencyCode}/{toCurrencyCode}', ['uses' => 'IndexController@rates', 'as' => 'rates']);
|
||||
// Route::get('create', ['uses' => 'CreateController@create', 'as' => 'create']);
|
||||
// Route::get('edit/{currency}', ['uses' => 'EditController@edit', 'as' => 'edit']);
|
||||
// Route::get('delete/{currency}', ['uses' => 'DeleteController@delete', 'as' => 'delete']);
|
||||
|
Reference in New Issue
Block a user