Skip to content

Firefly III: a personal finances manager

Rename admin routes to settings.

James Coled178ff9de0ca
diff --git a/resources/views/administrations/index.twig b/resources/views/administrations/index.twig
index ce4b29c209..f17b48e192 100644
--- a/resources/views/administrations/index.twig
+++ b/resources/views/administrations/index.twig
@@ -1 +1,10 @@
-This feature is only available in the v2 layout.
+{% extends './layout/default' %}
+
+{% block breadcrumbs %}
+ {{ Breadcrumbs.render }}
+{% endblock %}
+{% block content %}
+
+
+
+{% endblock %}
diff --git a/resources/views/partials/menu-sidebar.twig b/resources/views/partials/menu-sidebar.twig
index 32fff07238..ee9184b31b 100644
--- a/resources/views/partials/menu-sidebar.twig
+++ b/resources/views/partials/menu-sidebar.twig
@@ -189,7 +189,7 @@
</li>
{% endif %}
- <li class="{{ activeRoutePartial('admin') }} {{ activeRoutePartial('profile') }} {{ activeRoutePartial('preferences') }} {{ activeRoutePartial('currencies') }} {{ activeRoutePartial('exchange-rates') }} treeview"
+ <li class="{{ activeRoutePartial('administrations') }} {{ activeRoutePartial('admin') }} {{ activeRoutePartial('profile') }} {{ activeRoutePartial('preferences') }} {{ activeRoutePartial('currencies') }} {{ activeRoutePartial('exchange-rates') }} treeview"
id="option-menu">
<a href="#">
<em class="fa fa-sliders fa-fw"></em>
@@ -227,11 +227,17 @@
</a>
</li>
{% endif %}
+ <li class="{{ activeRoutePartial('administrations') }}">
+ <a class="{{ activeRoutePartial('administration') }}" href="{{ route('administrations.index') }}">
+ <span class="fa fa-angle-right fa-fw"></span>
+ <span>{{ 'administrations_index_menu'|_ }}</span>
+ </a>
+ </li>
{% if hasRole('owner') %}
- <li class="{{ activeRoutePartial('admin') }}">
- <a class="{{ activeRoutePartial('admin') }}" href="{{ route('admin.index') }}">
+ <li class="{{ activeRoutePartial('settings') }}">
+ <a class="{{ activeRoutePartial('settings') }}" href="{{ route('admin.index') }}">
<span class="fa fa-angle-right fa-fw"></span>
- <span>{{ 'administration'|_ }}</span>
+ <span>{{ 'system_settings'|_ }}</span>
</a>
</li>
{% endif %}
diff --git a/routes/web.php b/routes/web.php
index 0089a309da..6153823413 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -1369,7 +1369,7 @@ Route::group(
// For the admin routes, the user must be logged in and have the role of 'owner'.
Route::group(
- ['middleware' => 'admin', 'namespace' => 'FireflyIII\Http\Controllers\Admin', 'prefix' => 'settings', 'as' => 'admin.'],
+ ['middleware' => 'admin', 'namespace' => 'FireflyIII\Http\Controllers\Admin', 'prefix' => 'settings', 'as' => 'settings.'],
static function (): void {
// admin home
Route::get('', ['uses' => 'HomeController@index', 'as' => 'index']);