This commit is contained in:
nate 2026-04-10 11:43:01 +04:00
parent b7ca30cbb9
commit 816cf616d1
1 changed files with 4 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<%~ include('./partials/head', { title: 'Status pages' }) %>
<%~ include('./partials/nav', { nav: 'pages' }) %>
<main class="max-w-3xl mx-auto px-8 py-10 space-y-6">
<main class="max-w-7xl mx-auto px-8 py-10 space-y-6">
<div class="flex items-center justify-between">
<h1 class="text-xl font-semibold text-white">Status pages</h1>
@ -41,12 +41,9 @@
<div class="text-sm text-gray-300"><%= p.monitor_count %> monitor<%= p.monitor_count !== 1 ? 's' : '' %></div>
<div class="text-xs text-gray-500"><%~ it.timeAgoSSR(p.created_at) %></div>
</div>
<div class="flex items-center gap-1.5">
<% if (p.protected) { %>
<span class="text-xs px-2 py-1 rounded bg-yellow-900/20 text-yellow-500 border border-yellow-800/30" title="Password protected">locked</span>
<% } %>
<span class="text-xs px-2 py-1 rounded bg-gray-800/50 text-gray-400 border border-border-subtle"><%= p.theme %></span>
</div>
<% if (p.protected) { %>
<span class="text-xs px-2 py-1 rounded bg-yellow-900/20 text-yellow-500 border border-yellow-800/30" title="Password protected">locked</span>
<% } %>
<form action="/dashboard/pages/<%= p.id %>/delete" method="POST" class="inline" onclick="event.stopPropagation(); event.preventDefault(); if(confirm('Delete status page \'<%= p.title %>\'? This cannot be undone.')) this.submit();">
<button type="button" class="px-3 py-1.5 rounded-lg border border-red-900/30 text-red-400 hover:bg-red-900/20 hover:border-red-800/40 text-xs transition-colors">Delete</button>
</form>