add link on sidebar and put empty data

This commit is contained in:
Cayo Puigdefabregas 2022-05-11 17:03:31 +02:00
parent 5e74255145
commit 123757793f
2 changed files with 8 additions and 1 deletions

View File

@ -510,7 +510,7 @@ class SnapshotListView(GenericMixView):
decorators = [login_required]
template_name = 'inventory/snapshots_list.html'
def dispatch_request(self, id):
def dispatch_request(self):
self.get_context()
self.context['page_title'] = "Snapshots"
self.context['snapshots'] = []

View File

@ -101,6 +101,13 @@
</a>
</li><!-- End Dashboard Nav -->
<li class="nav-item">
<a class="nav-link collapsed" href="{{ url_for('inventory.snapshotslist') }}">
<i class="bi-menu-button-wide"></i>
<span>Uploaded Snapshots</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link collapsed" href="{{ url_for('inventory.devicelist') }}">
<i class="bi-menu-button-wide"></i>