Fix issue with encrypt template (fix #399)
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
{% if 'sigal.plugins.encrypt' is in settings.plugins %}
|
||||
{% if 'sigal.plugins.encrypt' in settings.plugins %}
|
||||
<script src="{{ theme.url }}/decrypt.js"></script>
|
||||
<script>
|
||||
Decryptor.init({
|
||||
password: "{{ encrypt_options.filtered_password }}",
|
||||
sw_script: "{{ theme.url }}/../sw.js",
|
||||
galleryId: "{{ encrypt_options.galleryId }}",
|
||||
gcm_tag: "{{ encrypt_options.escaped_gcm_tag }}",
|
||||
kdf_salt: "{{ encrypt_options.escaped_kdf_salt }}",
|
||||
kdf_iters: {{ encrypt_options.kdf_iters }}
|
||||
gcm_tag: "{{ encrypt_options.escaped_gcm_tag }}",
|
||||
kdf_salt: "{{ encrypt_options.escaped_kdf_salt }}",
|
||||
kdf_iters: {{ encrypt_options.kdf_iters }}
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.decrypt-fixed-prompt {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: inherit;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: inherit;
|
||||
}
|
||||
.decrypt-prompt-panel {
|
||||
width: 100%;
|
||||
@@ -58,7 +58,7 @@
|
||||
width:2rem;
|
||||
height: 2px;
|
||||
background-color: inherit;
|
||||
position: absolute;
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
left: 0;
|
||||
filter: invert(1);
|
||||
@@ -94,4 +94,4 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user