forked from monicahq/monica
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
328 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
UNRELEASED CHANGES: | ||
|
||
* | ||
* fix settings' sidebar links and change security icon | ||
|
||
RELEASED VERSIONS: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
database/migrations/2018_10_19_081816_life_event_tattoo.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\DB; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class LifeEventTattoo extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
DB::table('default_life_event_types') | ||
->where('translation_key', 'tatoo_or_piercing') | ||
->update([ | ||
'translation_key' => 'tattoo_or_piercing', | ||
]); | ||
|
||
DB::table('life_event_types') | ||
->where('default_life_event_type_key', 'tatoo_or_piercing') | ||
->update([ | ||
'default_life_event_type_key' => 'tattoo_or_piercing', | ||
'name' => trans('settings.personalization_life_event_type_tattoo_or_piercinge', [], 'en'), | ||
]); | ||
} | ||
} |
File renamed without changes
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@if (Route::currentRouteName() == $route) | ||
<li class="selected"> | ||
<i class="{{ $icon }}" aria-hidden="true"></i> | ||
<strong>{{ trans($title) }}</strong> | ||
</li> | ||
@else | ||
<li class="bg-white"> | ||
<i class="{{ $icon }}" aria-hidden="true"></i> | ||
<a href="{{ route($route) }}">{{ trans($title) }}</a> | ||
</li> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,114 +1,61 @@ | ||
<div class="col-xs-12 col-sm-3 sidebar-menu"> | ||
<ul class="mb4"> | ||
|
||
@if (Route::currentRouteName() == 'settings.index') | ||
<li class="selected"> | ||
<i class="fa fa-cog" aria-hidden="true"></i> | ||
<strong>{{ trans('settings.sidebar_settings') }}</strong> | ||
</li> | ||
@else | ||
<li class="bg-white"> | ||
<i class="fa fa-cog" aria-hidden="true"></i> | ||
<a href="{{ route('settings.index') }}">{{ trans('settings.sidebar_settings') }}</a> | ||
</li> | ||
@endif | ||
|
||
@if (Route::currentRouteName() == 'settings.personalization') | ||
<li class="selected"> | ||
<i class="fa fa-handshake-o" aria-hidden="true"></i> | ||
<strong>{{ trans('settings.sidebar_personalization') }}</strong> | ||
</li> | ||
@else | ||
<li class="bg-white"> | ||
<i class="fa fa-handshake-o" aria-hidden="true"></i> | ||
<a href="{{ route('settings.personalization.index') }}">{{ trans('settings.sidebar_personalization') }}</a> | ||
</li> | ||
@endif | ||
|
||
@if (Route::currentRouteName() == 'settings.export') | ||
<li class="selected"> | ||
<i class="fa fa-cloud-download" aria-hidden="true"></i> | ||
<strong>{{ trans('settings.sidebar_settings_export') }}</strong> | ||
</li> | ||
@else | ||
<li class="bg-white"> | ||
<i class="fa fa-cloud-download" aria-hidden="true"></i> | ||
<a href="{{ route('settings.export') }}">{{ trans('settings.sidebar_settings_export') }}</a> | ||
</li> | ||
@endif | ||
|
||
@if (Route::currentRouteName() == 'settings.import') | ||
<li class="selected"> | ||
<i class="fa fa-cloud-upload" aria-hidden="true"></i> | ||
<strong>{{ trans('settings.sidebar_settings_import') }}</strong> | ||
</li> | ||
@else | ||
<li class="bg-white"> | ||
<i class="fa fa-cloud-upload" aria-hidden="true"></i> | ||
<a href="{{ route('settings.import') }}">{{ trans('settings.sidebar_settings_import') }}</a> | ||
</li> | ||
@endif | ||
|
||
@if (Route::currentRouteName() == 'settings.users.index') | ||
<li class="selected"> | ||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> | ||
<strong>{{ trans('settings.sidebar_settings_users') }}</strong> | ||
</li> | ||
@else | ||
<li class="bg-white"> | ||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> | ||
<a href="{{ route('settings.users.index') }}">{{ trans('settings.sidebar_settings_users') }}</a> | ||
</li> | ||
@endif | ||
@component('components.sidebar', [ | ||
'route' => 'settings.index', | ||
'icon' => 'fa fa-cog', | ||
'title' => 'settings.sidebar_settings']) | ||
@endcomponent | ||
|
||
@component('components.sidebar', [ | ||
'route' => 'settings.personalization.index', | ||
'icon' => 'fa fa-handshake-o', | ||
'title' => 'settings.sidebar_personalization']) | ||
@endcomponent | ||
|
||
@component('components.sidebar', [ | ||
'route' => 'settings.export', | ||
'icon' => 'fa fa-cloud-download', | ||
'title' => 'settings.sidebar_settings_export']) | ||
@endcomponent | ||
|
||
@component('components.sidebar', [ | ||
'route' => 'settings.import', | ||
'icon' => 'fa fa-cloud-upload', | ||
'title' => 'settings.sidebar_settings_import']) | ||
@endcomponent | ||
|
||
@component('components.sidebar', [ | ||
'route' => 'settings.users.index', | ||
'icon' => 'fa fa-user-circle-o', | ||
'title' => 'settings.sidebar_settings_users']) | ||
@endcomponent | ||
|
||
@if (config('monica.requires_subscription') && ! auth()->user()->account->has_access_to_paid_version_for_free) | ||
@if (Route::currentRouteName() == 'settings.subscriptions.index') | ||
<li class="selected"> | ||
<i class="fa fa-money" aria-hidden="true"></i> | ||
<strong>{{ trans('settings.sidebar_settings_subscriptions') }}</strong> | ||
</li> | ||
@else | ||
<li class="bg-white"> | ||
<i class="fa fa-money" aria-hidden="true"></i> | ||
<a href="{{ route('settings.subscriptions.index') }}">{{ trans('settings.sidebar_settings_subscriptions') }}</a> | ||
</li> | ||
@endif | ||
@endif | ||
|
||
@if (Route::currentRouteName() == 'settings.tags') | ||
<li class="selected"> | ||
<i class="fa fa-tags" aria-hidden="true"></i> | ||
<strong>{{ trans('settings.sidebar_settings_tags') }}</strong> | ||
</li> | ||
@else | ||
<li class="bg-white"> | ||
<i class="fa fa-tags" aria-hidden="true"></i> | ||
<a href="{{ route('settings.tags.index') }}">{{ trans('settings.sidebar_settings_tags') }}</a> | ||
</li> | ||
@endif | ||
@component('components.sidebar', [ | ||
'route' => 'settings.subscriptions.index', | ||
'icon' => 'fa fa-money', | ||
'title' => 'settings.sidebar_settings_subscriptions']) | ||
@endcomponent | ||
@endif | ||
|
||
@component('components.sidebar', [ | ||
'route' => 'settings.tags.index', | ||
'icon' => 'fa fa-tags', | ||
'title' => 'settings.sidebar_settings_tags']) | ||
@endcomponent | ||
|
||
@component('components.sidebar', [ | ||
'route' => 'settings.api', | ||
'icon' => 'fa fa-random', | ||
'title' => 'settings.sidebar_settings_api']) | ||
@endcomponent | ||
|
||
@component('components.sidebar', [ | ||
'route' => 'settings.security.index', | ||
'icon' => 'fa fa-shield', | ||
'title' => 'settings.sidebar_settings_security']) | ||
@endcomponent | ||
|
||
@if (Route::currentRouteName() == 'settings.api') | ||
<li class="selected"> | ||
<i class="fa fa-random"></i> | ||
<strong>{{ trans('settings.sidebar_settings_api') }}</strong> | ||
</li> | ||
@else | ||
<li class="bg-white"> | ||
<i class="fa fa-random"></i> | ||
<a href="{{ route('settings.api') }}">{{ trans('settings.sidebar_settings_api') }}</a> | ||
</li> | ||
@endif | ||
|
||
@if (Route::currentRouteName() == 'settings.security') | ||
<li class="selected"> | ||
<i class="fa fa-cog"></i> | ||
<strong>{{ trans('settings.sidebar_settings_security') }}</strong> | ||
</li> | ||
@else | ||
<li class="bg-white"> | ||
<i class="fa fa-cog"></i> | ||
<a href="{{ route('settings.security.index') }}">{{ trans('settings.sidebar_settings_security') }}</a> | ||
</li> | ||
@endif | ||
</ul> | ||
</div> |
Oops, something went wrong.