mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Rename admin routes to settings.
This commit is contained in:
parent
3ecad3457f
commit
d178ff9de0
@ -1 +1,10 @@
|
|||||||
This feature is only available in the v2 layout.
|
{% extends './layout/default' %}
|
||||||
|
|
||||||
|
{% block breadcrumbs %}
|
||||||
|
{{ Breadcrumbs.render }}
|
||||||
|
{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
@ -189,7 +189,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% 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">
|
id="option-menu">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<em class="fa fa-sliders fa-fw"></em>
|
<em class="fa fa-sliders fa-fw"></em>
|
||||||
@ -227,11 +227,17 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% 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') %}
|
{% if hasRole('owner') %}
|
||||||
<li class="{{ activeRoutePartial('admin') }}">
|
<li class="{{ activeRoutePartial('settings') }}">
|
||||||
<a class="{{ activeRoutePartial('admin') }}" href="{{ route('admin.index') }}">
|
<a class="{{ activeRoutePartial('settings') }}" href="{{ route('admin.index') }}">
|
||||||
<span class="fa fa-angle-right fa-fw"></span>
|
<span class="fa fa-angle-right fa-fw"></span>
|
||||||
<span>{{ 'administration'|_ }}</span>
|
<span>{{ 'system_settings'|_ }}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -1369,7 +1369,7 @@ Route::group(
|
|||||||
|
|
||||||
// For the admin routes, the user must be logged in and have the role of 'owner'.
|
// For the admin routes, the user must be logged in and have the role of 'owner'.
|
||||||
Route::group(
|
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 {
|
static function (): void {
|
||||||
// admin home
|
// admin home
|
||||||
Route::get('', ['uses' => 'HomeController@index', 'as' => 'index']);
|
Route::get('', ['uses' => 'HomeController@index', 'as' => 'index']);
|
||||||
|
Loading…
Reference in New Issue
Block a user