<!DOCTYPE html>
<html dir="$i18n{textdirection}" lang="$i18n{language}">
<head>
<meta charset="utf-8">
<title>Policy Logs</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<link rel="stylesheet" href="../policy_shared_vars.css">
<style>
body {
background: var(--page-background);
color: var(--text-color);
}
h2,
ul,
.version-info-table-data {
word-break: break-word;
}
.buttons-row {
align-items: center;
display: flex;
height: 56px;
flex-wrap: nowrap;
gap: 8px;
}
button {
align-items: center;
border-radius: 4px;
border: 1px solid var(--action-row-button-border);
background: var(--action-row-button-background);
box-sizing: border-box;
cursor: pointer;
display: inline-flex;
flex-shrink: 0;
height: 32px;
justify-content: center;
padding: 8px 16px;
user-select: none;
}
button:hover {
filter: brightness(var(--action-row-button-hover-brightness));
}
button:active {
filter: brightness(var(--action-row-button-active-brightness));
}
.label {
font-weight: bold;
padding-inline-end: 5px;
vertical-align: top;
}
.label::after {
content: ':';
}
ul {
list-style-type: none;
}
li {
margin-bottom: 5px;
}
</style>
</head>
<body>
<h1>$i18n{logsTitle}</h1>
<div class="buttons-row">
<button id="logs-dump">$i18n{exportLogsJSON}</button>
<button id="logs-refresh">$i18n{refreshLogs}</button>
</div>
<h2>$i18n{versionInfoLabel}</h2>
<table id="version-info" aria-label="Version Information">
<tr>
<td class="label">$i18n{browserName}</td>
<td id="chrome-version-value" class="version-info-table-data">-</td>
</tr>
<tr>
<td class="label">$i18n{revision}</td>
<td id="chrome-revision-value" class="version-info-table-data">-</td>
</tr>
<tr>
<td class="label">$i18n{os}</td>
<td id="os-version-value" class="version-info-table-data">-</td>
</tr>
</table>
<h2>Logs</h2>
<ul id="logs-container" aria-label="Logs List"></ul>
<h2>$i18n{variations}</h2>
<ul id="active-variations-container" aria-label="Active Variations List"></ul>
<script type="module" src="/logs/policy_logs.js"></script>
</body>
</html>