mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 09:35:39 +00:00
8b916488b9
Sync all 26 locale files to the EN+PL baseline (3432 keys), add OBSIDIAN tier strings, and ship i18n apply/audit tooling. Improve server attestation UX and convert orphaned node:test scripts to Jest so the full test suite passes.
20 lines
1.2 KiB
HTML
20 lines
1.2 KiB
HTML
<%#
|
|
BetterDesk Server Attestation badge (Intel vPRO style)
|
|
locals: tier (bronze|iron|platinum|titanium|obsidian|null), size ('large'|'small'), showConnections, maxConnections
|
|
%>
|
|
<%
|
|
var _tier = (typeof tier !== 'undefined' && tier) ? String(tier).toLowerCase() : '';
|
|
var _size = (typeof size !== 'undefined' && size === 'large') ? 'large' : 'small';
|
|
var _showConn = typeof showConnections !== 'undefined' && showConnections;
|
|
var _maxConn = typeof maxConnections !== 'undefined' ? maxConnections : null;
|
|
var _tierLabel = _tier ? (_('server_attestation.tier_' + _tier) || _tier.toUpperCase()) : (_('server_attestation.tier_none') || 'UNRATED');
|
|
var _tierClass = _tier ? ('bd-attest-tier-' + _tier) : 'bd-attest-tier-none';
|
|
%>
|
|
<div class="bd-attest-badge bd-attest-badge--<%= _size %> <%= _tierClass %>" title="<%= _('server_attestation.badge_tooltip') || 'BetterDesk Server Attestation' %>">
|
|
<div class="bd-attest-brand">BetterDesk</div>
|
|
<div class="bd-attest-tier"><%= _tierLabel %></div>
|
|
<% if (_showConn && _maxConn) { %>
|
|
<div class="bd-attest-conn"><%= _maxConn %> <%= _('server_attestation.connections_short') || 'conn.' %></div>
|
|
<% } %>
|
|
</div>
|