Skip to content

Commit

Permalink
Sidebar - Comment Missing Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
app-generator committed Dec 10, 2022
1 parent 494f373 commit 679c44b
Showing 1 changed file with 57 additions and 1 deletion.
58 changes: 57 additions & 1 deletion admin_adminlte/templates/includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
<img src="{% static 'dist/img/user2-160x160.jpg' %}" class="img-circle elevation-2" alt="User Image">
</div>
<div class="info">
<a href="#" class="d-block">Alexander Pierce</a>
{% if request.user.is_authenticated %}
<a href="#" class="d-block">{{request.user.username}}</a>
{% else %}
<a href="#" class="d-block">Alexander Pierce</a>
{% endif %}
</div>
</div>

Expand Down Expand Up @@ -137,6 +141,7 @@
</p>
</a>
</li>
<!--
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-copy"></i>
Expand Down Expand Up @@ -197,6 +202,7 @@
</li>
</ul>
</li>
-->
<li class="nav-item {% if 'charts' in parent %} menu-open {% endif %}">
<a href="#" class="nav-link {% if 'charts' in parent %}active{% endif %}">
<i class="nav-icon fas fa-chart-pie"></i>
Expand All @@ -212,6 +218,7 @@
<p>ChartJS</p>
</a>
</li>
<!--
<li class="nav-item">
<a href="#" class="nav-link">
<i class="far fa-circle nav-icon"></i>
Expand All @@ -230,8 +237,10 @@
<p>uPlot</p>
</a>
</li>
-->
</ul>
</li>
<!--
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-tree"></i>
Expand Down Expand Up @@ -291,6 +300,7 @@
</li>
</ul>
</li>
-->
<li class="nav-item {% if 'forms' in parent %} menu-open {% endif %}">
<a href="#" class="nav-link {% if 'forms' in parent %} active {% endif %}">
<i class="nav-icon fas fa-edit"></i>
Expand All @@ -307,6 +317,7 @@
<p>General Elements</p>
</a>
</li>
<!--
<li class="nav-item">
<a href="#" class="nav-link">
<i class="far fa-circle nav-icon"></i>
Expand All @@ -325,8 +336,10 @@
<p>Validation</p>
</a>
</li>
-->
</ul>
</li>
<!--
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-table"></i>
Expand Down Expand Up @@ -356,6 +369,7 @@
</li>
</ul>
</li>
-->
<li class="nav-header">EXAMPLES</li>
<li class="nav-item">
<a href="{% url 'calendar' %}" class="nav-link {% if 'calendar' in segment %} active {% endif %} ">
Expand All @@ -366,6 +380,7 @@
</p>
</a>
</li>
<!--
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon far fa-image"></i>
Expand All @@ -382,6 +397,8 @@
</p>
</a>
</li>
-->
<!--
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon far fa-envelope"></i>
Expand Down Expand Up @@ -411,6 +428,8 @@
</li>
</ul>
</li>
-->
<!--
<li class="nav-item {% if 'pages' in parent %} menu-open {% endif %}">
<a href="#" class="nav-link {% if 'pages' in parent %} active {% endif %}">
<i class="nav-icon fas fa-book"></i>
Expand Down Expand Up @@ -482,6 +501,8 @@
</li>
</ul>
</li>
-->
<!--
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon far fa-plus-square"></i>
Expand Down Expand Up @@ -611,6 +632,8 @@
</li>
</ul>
</li>
-->
<!--
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-search"></i>
Expand All @@ -634,13 +657,16 @@
</li>
</ul>
</li>
-->
<li class="nav-header">MISCELLANEOUS</li>
<!--
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-ellipsis-h"></i>
<p>Tabbed IFrame Plugin</p>
</a>
</li>
-->
<li class="nav-item">
<a href="https://adminlte.io/docs/3.1/" class="nav-link">
<i class="nav-icon fas fa-file"></i>
Expand Down Expand Up @@ -732,6 +758,36 @@
</a>
</li>
{% endif %}

{% if request.user.is_authenticated %}
<li class="nav-item">
<a href="{% url 'logout' %}" class="nav-link">
<i class="fa fa-sign-out-alt nav-icon"></i>
<p>Logout</p>
</a>
</li>
{% else %}
<li class="nav-item">
<a href="{% url 'login' %}" class="nav-link">
<i class="fa fa-sign-in-alt nav-icon"></i>
<p>Login</p>
</a>
</li>
<li class="nav-item">
<a href="{% url 'register' %}" class="nav-link">
<i class="fa fa-user-plus nav-icon"></i>
<p>Register</p>
</a>
</li>
{% endif %}

<li class="nav-item">
<a target="_blank" href="https://appseed.us/support/" class="nav-link">
<i class="fa fa-rocket text-danger nav-icon"></i>
<p>Support</p>
</a>
</li>

</ul>
</nav>
<!-- /.sidebar-menu -->
Expand Down

0 comments on commit 679c44b

Please sign in to comment.