Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/main/resources/templates/createincident.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,32 @@
button:hover {
opacity: 0.9;
}

.back-dashboard-btn {
display: inline-block;
margin-bottom: 1.5rem;
margin-left: 0.25rem;
padding: 0.4rem 0.8rem;
border-radius: 999px;
border: 1px solid #2a2a2a;
background: transparent;
color: #9ca3af;
text-decoration: none;
font-size: 0.8rem;
transition: 0.2s;
}

.back-dashboard-btn:hover {
border-color: #10b981;
color: #10b981;
}
</style>
</head>
<body>
<div class="container">

<a href="/dashboard" class="back-dashboard-btn">Back to dashboard</a>

<div class="card">
<h2>Report Incident</h2>

Expand Down
23 changes: 22 additions & 1 deletion src/main/resources/templates/incidents.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,32 @@
border-color: #10b981;
color: #10b981;
}

.back-dashboard-btn {
display: inline-block;
margin-bottom: 1.2rem;
padding: 0.4rem 0.8rem;
border-radius: 999px;
border: 1px solid #2a2a2a;
background: transparent;
color: #9ca3af;
text-decoration: none;
font-size: 0.8rem;
transition: 0.2s;
}

.back-dashboard-btn:hover {
border-color: #10b981;
color: #10b981;
}
</style>
</head>

<body th:attr="data-role=${role}">
<div class="container">

<a href="/dashboard" class="back-dashboard-btn">Back to dashboard</a>

<h2 id="title">Active incidents</h2>
<div id="incidents"></div>
</div>
Expand Down Expand Up @@ -173,7 +194,7 @@ <h2 id="title">Active incidents</h2>
}

function viewIncident(id) {
window.location.href = `/incident/${id}`;
window.location.href = `/incidents/${id}`;
}

function escapeHtml(str) {
Expand Down
21 changes: 21 additions & 0 deletions src/main/resources/templates/viewincident.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,32 @@
color: #6b7280;
font-size: 0.9rem;
}

.back-dashboard-btn {
display: inline-block;
margin-bottom: 1.2rem;
padding: 0.4rem 0.8rem;
border-radius: 999px;
border: 1px solid #2a2a2a;
background: transparent;
color: #9ca3af;
text-decoration: none;
font-size: 0.8rem;
transition: 0.2s;
}

.back-dashboard-btn:hover {
border-color: #10b981;
color: #10b981;
}
</style>
</head>

<body th:attr="data-role=${role}">
<div class="container">

<a href="/dashboard" class="back-dashboard-btn">Back to dashboard</a>

<h2>Incident details</h2>

<div id="incident"></div>
Expand Down
Loading