33 lines
1.2 KiB
HTML
33 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ cfg.site.name }}{% endblock %}
|
|
{% block main_class %}full-page{% endblock %}
|
|
|
|
{% block nav_actions %}
|
|
<span id="navPasteTitle" class="nav-paste-title"></span>
|
|
<label class="nav-label" title="Toggle line numbers">
|
|
<input type="checkbox" id="lineNoToggle" checked> Lines
|
|
</label>
|
|
<button id="rawBtn" class="nav-btn">Raw</button>
|
|
<button id="copyBtn" class="nav-btn">Copy</button>
|
|
<button id="downloadBtn" class="nav-btn">Download</button>
|
|
<a href="{{ url_for('index') }}" class="nav-btn nav-btn-save">New</a>
|
|
{% if cfg.theme.allow_user_toggle %}
|
|
<button id="themeToggle" class="theme-toggle">🌙</button>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id="errorState" class="error-inline" style="display:none">
|
|
🔐 <strong id="errorTitle">Decryption Failed</strong> — <span id="errorDetail"></span>
|
|
</div>
|
|
<div class="view-full" id="viewFull" style="display:none">
|
|
<pre id="viewPre"><code id="codeBlock"></code></pre>
|
|
</div>
|
|
<script type="application/json" id="encryptedPayload">{{ paste.encrypted_data | tojson }}</script>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script src="{{ url_for('static', filename='js/paste_view.js') }}" nonce="{{ csp_nonce }}"></script>
|
|
{% endblock %}
|