Spaces:
Sleeping
Sleeping
Upload sidepane.html
Browse files- templates/sidepane.html +105 -0
templates/sidepane.html
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- sidepane.html -->
|
2 |
+
|
3 |
+
<!-- This file represents the sidepane component of a web application. It contains the navigation menu and sidebar. -->
|
4 |
+
|
5 |
+
<nav class="main-header navbar navbar-expand navbar-white navbar-light" style="text-align: center;margin-left: 100px;">
|
6 |
+
<div class="container-fluid d-flex justify-content-center align-items-center">
|
7 |
+
<img src="/static/img/redmindlogo3.jpg" alt="Logo" style="width: 80px; height: auto; margin-right: 10px;">
|
8 |
+
|
9 |
+
<h3 style="text-align: center; margin-bottom: 0;">Redmind GPT - {{title}}</h3>
|
10 |
+
<button class="btn btn-primary" style="position: absolute; top: 30px;right:10px;" onclick="logout()">Logout</button>
|
11 |
+
|
12 |
+
</div>
|
13 |
+
<!-- Left navbar links -->
|
14 |
+
<!-- <ul class="navbar-nav">
|
15 |
+
<li class="nav-item">
|
16 |
+
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
|
17 |
+
</li>
|
18 |
+
</ul> -->
|
19 |
+
</nav>
|
20 |
+
|
21 |
+
<!-- Main Sidebar Container -->
|
22 |
+
<aside class="main-sidebar sidebar-dark-primary elevation-4" style="width: 200px; position: fixed; top: 0; left: 0; height: 100vh; overflow: hidden;">
|
23 |
+
<!-- Sidebar -->
|
24 |
+
<div class="sidebar">
|
25 |
+
<!-- Sidebar Menu -->
|
26 |
+
<nav class="mt-2">
|
27 |
+
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
28 |
+
<!-- Navigation Links -->
|
29 |
+
<li class="nav-item">
|
30 |
+
<a href="{{url_for('dashboard')}}" class="nav-link">
|
31 |
+
<i class="nav-icon fas fa-home"></i>
|
32 |
+
<p>Dashboard</p>
|
33 |
+
</a>
|
34 |
+
</li>
|
35 |
+
<li class="nav-item">
|
36 |
+
<a href="{{ url_for('company_profile') }}" class="nav-link">
|
37 |
+
<i class="nav-icon fas fa-users"></i>
|
38 |
+
<p>Company Profile</p>
|
39 |
+
</a>
|
40 |
+
</li>
|
41 |
+
<li class="nav-item">
|
42 |
+
<a href="{{ url_for('knowledgebase') }}" class="nav-link">
|
43 |
+
<i class="nav-icon fas fa-cogs"></i>
|
44 |
+
<p>KnowledgeBase</p>
|
45 |
+
</a>
|
46 |
+
</li>
|
47 |
+
<li class="nav-item">
|
48 |
+
<a href="{{ url_for('data_connectors') }}" class="nav-link">
|
49 |
+
<i class="nav-icon fas fa-cogs"></i>
|
50 |
+
<p>Data Connectors</p>
|
51 |
+
</a>
|
52 |
+
</li>
|
53 |
+
<li class="nav-item">
|
54 |
+
<a href="{{ url_for('API_connectors') }}" class="nav-link">
|
55 |
+
<i class="nav-icon fas fa-cogs"></i>
|
56 |
+
<p>API Connectors</p>
|
57 |
+
</a>
|
58 |
+
</li>
|
59 |
+
<li class="nav-item">
|
60 |
+
<a href="{{url_for('prompt_template')}}" class="nav-link">
|
61 |
+
<i class="nav-icon fas fa-cogs"></i>
|
62 |
+
<p>Prompt Templates</p>
|
63 |
+
</a>
|
64 |
+
</li>
|
65 |
+
<!--<li class="nav-item">
|
66 |
+
<a href="#" class="nav-link">
|
67 |
+
<i class="nav-icon fas fa-cogs"></i>
|
68 |
+
<p>LLM Settings</p>
|
69 |
+
</a>
|
70 |
+
<ul class="nav nav-treeview">
|
71 |
+
<li class="nav-item">
|
72 |
+
<a href="#" class="nav-link">
|
73 |
+
<i class="far fa-circle nav-icon"></i>
|
74 |
+
<p>Sublink 1</p>
|
75 |
+
</a>
|
76 |
+
</li>
|
77 |
+
<li class="nav-item">
|
78 |
+
<a href="#" class="nav-link">
|
79 |
+
<i class="far fa-circle nav-icon"></i>
|
80 |
+
<p>Sublink 2</p>
|
81 |
+
</a>
|
82 |
+
</li>
|
83 |
+
|
84 |
+
</ul>
|
85 |
+
</li> -->
|
86 |
+
|
87 |
+
<!-- Add more navigation links here -->
|
88 |
+
</ul>
|
89 |
+
</nav>
|
90 |
+
<!-- /.sidebar-menu -->
|
91 |
+
</div>
|
92 |
+
<!-- /.sidebar -->
|
93 |
+
</aside>
|
94 |
+
|
95 |
+
|
96 |
+
<!-- AdminLTE JS -->
|
97 |
+
<script >
|
98 |
+
function logout() {
|
99 |
+
// Clear session storage
|
100 |
+
sessionStorage.clear();
|
101 |
+
|
102 |
+
// Redirect to the login page
|
103 |
+
window.location.href = '/';
|
104 |
+
}
|
105 |
+
</script>
|