Skip to content

Commit

Permalink
Sidebar override
Browse files Browse the repository at this point in the history
This will be used to add sidebar content for the panel
  • Loading branch information
zediious committed Nov 9, 2023
1 parent de321cd commit d1d7a99
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions raptorWeb/templates/raptormc/panel/panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

{% block page_actions %}{% endblock %}

{% block sidebar%}
{% include "raptormc/panel/sidebar.html" %}
{% endblock %}

{% block page_content %}

<div class="m-5 mt-4 p-5">
Expand Down
26 changes: 26 additions & 0 deletions raptorWeb/templates/raptormc/panel/sidebar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{% load static %}

<aside class="main-sidebar elevation-4 {{ jazzmin_ui.sidebar_classes }}" id="jazzy-sidebar">
<a href="{% url 'admin:index' %}" class="brand-link {{ jazzmin_ui.brand_classes }}" id="jazzy-logo">
<img src="{% static jazzmin_settings.site_logo %}" alt="{{ jazzmin_settings.site_header }} Logo" class="{{ jazzmin_settings.site_logo_classes }} brand-image elevation-3" style="opacity: .8">
<span class="brand-text font-weight-light">{{ jazzmin_settings.site_brand }}</span>
</a>

<div class="sidebar">
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
</div>

<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column {{ jazzmin_ui.sidebar_list_classes }}" data-widget="treeview" role="menu" data-collapsible="false">

<li class="nav-item">
<a href="{% url 'admin:index' %}" class="nav-link">
<i class="nav-icon fas fa-th-large"></i>
<p>Dashboard</p>
</a>
</li>

</ul>
</nav>
</div>
</aside>

0 comments on commit d1d7a99

Please sign in to comment.