Skip to content

Commit

Permalink
Revert "Move the menu items Profile and Logout to the user menu in th…
Browse files Browse the repository at this point in the history
…e main header"

This reverts commit f6a675f.
  • Loading branch information
lguima committed Apr 28, 2020
1 parent f6a675f commit 61bd2dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
24 changes: 3 additions & 21 deletions resources/views/v1/layout/default.twig
Original file line number Diff line number Diff line change
Expand Up @@ -86,27 +86,9 @@

{% if not SANDSTORM %}
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="visible-xs">@</span>
<span class="hidden-xs">{{ Auth.user.email }}</span>
</a>

<ul class="dropdown-menu" style="width: unset;">
<li class="user-footer">
<div class="col-xs-6 text-center">
<a href="{{ route('profile.index') }}" class="btn btn-default btn-flat">
<span>{{ 'profile'|_ }}</span>
</a>
</div>
{% if not SANDSTORM %}
<div class="col-xs-6 text-center">
<a href="{{ route('logout') }}" class="btn btn-default btn-flat">
<span>{{ 'logout'|_ }}</span>
</a>
</div>
{% endif %}
</li>
</ul>
<span style="cursor:default;color:#fff;padding: 15px;display: block;line-height: 20px;">
<span class="hidden-xs">{{ Auth.user.email }}</span>
</span>
</li>
{% endif %}
<li id="sidebar-toggle">
Expand Down
16 changes: 15 additions & 1 deletion resources/views/v1/partials/menu-sidebar.twig
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
</ul>
</li>

<li class="{{ activeRoutePartial('admin') }} {{ activeRoutePartial('preferences') }} {{ activeRoutePartial('currencies') }} treeview" id="option-menu">
<li class="{{ activeRoutePartial('admin') }} {{ activeRoutePartial('profile') }} {{ activeRoutePartial('preferences') }} {{ activeRoutePartial('currencies') }} treeview" id="option-menu">
<a href="#">
<i class="fa fa-bars fa-fw"></i>
<span>{{ 'options'|_ }}</span>
Expand All @@ -182,6 +182,11 @@
</a>

<ul class="treeview-menu">
<li class="{{ activeRoutePartial('profile') }}">
<a class="{{ activeRouteStrict('profile.index') }}" href="{{ route('profile.index') }}">
{{ 'profile'|_ }}
</a>
</li>
<li class="{{ activeRoutePartial('preferences') }}">
<a class="{{ activeRouteStrict('preferences.index') }}" href="{{ route('preferences.index') }}">
<span>{{ 'preferences'|_ }}</span>
Expand All @@ -201,4 +206,13 @@
{% endif %}
</ul>
</li>

{% if not SANDSTORM %}
<li>
<a href="{{ route('logout') }}">
<i class="fa fa-sign-out fa-fw"></i>
<span>{{ 'logout'|_ }}</span>
</a>
</li>
{% endif %}
</ul>

0 comments on commit 61bd2dc

Please sign in to comment.