90: Add device model in the title

This commit is contained in:
sergio_gimenez 2024-10-08 08:02:42 +02:00
parent b8946dfbde
commit 99eccc82aa
2 changed files with 4 additions and 4 deletions

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 }}</title> <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>
@ -23,7 +23,7 @@
flex-grow: 1; flex-grow: 1;
} }
.section-title { .section-title {
color: #7a9f4f; /* Darker green for h2 */ color: #7a9f4f;
border-bottom: 2px solid #9cc666; border-bottom: 2px solid #9cc666;
padding-bottom: 10px; padding-bottom: 10px;
margin-bottom: 20px; margin-bottom: 20px;
@ -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 }}</h1> <h1 class="text-center mb-4" style="color: #545f71;">{{ title }} - {{ object.type }}</h1>
<div class="row"> <div class="row">
<div class="col-lg-6"> <div class="col-lg-6">

View File

@ -103,7 +103,7 @@ class DetailsView(DashboardView, TemplateView):
class DeviceWebView(DashboardView, TemplateView): class DeviceWebView(DashboardView, TemplateView):
template_name = "device_web.html" template_name = "device_web.html"
title = _("Device Web") title = _("Device Website")
breadcrumb = "Device / Web" breadcrumb = "Device / Web"
model = Annotation model = Annotation