feature/90-implement-public-website-for-device #17

Merged
cayop merged 32 commits from feature/90-implement-public-website-for-device into main 2024-10-30 15:02:18 +00:00
1 changed files with 5 additions and 5 deletions
Showing only changes of commit 2636e80ece - Show all commits

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ title }} - {{ object.type }}</title> <title>{{ object.type }}</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css" rel="stylesheet" /> <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css" />
<style> <style>
@ -88,7 +88,7 @@
</head> </head>
<body> <body>
<div class="container custom-container"> <div class="container custom-container">
<h1 class="text-center mb-4" style="color: #545f71;">{{ title }} - {{ object.type }}</h1> <h1 class="text-center mb-4" style="color: #545f71;">{{ object.manufacturer }} {{ object.type }} {{ object.model }}</h1>
<div class="row"> <div class="row">
<div class="col-lg-6"> <div class="col-lg-6">
@ -105,10 +105,10 @@
</div> </div>
{% if object.is_websnapshot %} {% if object.is_websnapshot %}
{% for k, v in object.last_user_evidence %} {% for snapshot_key, snapshot_value in object.last_user_evidence %}
<div class="info-row row"> <div class="info-row row">
<div class="col-md-4 info-label">{{ k }}</div> <div class="col-md-4 info-label">{{ snapshot_key }}</div>
<div class="col-md-8 info-value">{{ v|default:'' }}</div> <div class="col-md-8 info-value">{{ snapshot_value|default:'' }}</div>
</div> </div>
{% endfor %} {% endfor %}
{% else %} {% else %}