Files
docs.a2v.space/themes/a2v/layouts/creds/list.html
T

37 lines
1.5 KiB
HTML

{{ define "main" }}
<div class="article-content">
<h1>Креды</h1>
<p class="text-muted">Данные зашифрованы. Нажмите "Расшифровать" и введите мастер-пароль.</p>
<div class="row">
{{ range where .Site.RegularPages "Section" "creds" }}
<div class="col-md-6 mb-4">
<div class="card creds-card h-100">
<div class="card-body">
<h3 class="card-title">{{ .Title }}</h3>
{{ if .Params.description }}
<p class="card-text">{{ .Params.description }}</p>
{{ end }}
{{ if .Params.service }}
<p class="text-muted mb-2"><strong>Сервис:</strong> {{ .Params.service }}</p>
{{ end }}
<div class="encrypted-data" id="encrypted-{{ .File.ContentBaseName }}">
{{ .Plain | base64Encode }}
</div>
<div class="decrypted-fields" id="decrypted-{{ .File.ContentBaseName }}" style="display: none;">
<!-- Decrypted content will be inserted here -->
</div>
<button class="btn btn-primary mt-2 decrypt-btn" data-id="{{ .File.ContentBaseName }}">
Расшифровать
</button>
</div>
</div>
</div>
{{ end }}
</div>
</div>
{{ end }}