Added the following ENVIRONMENT VARIABLES > send.ftl - if not set it will use translate().
CUSTOM_INTRO_TITLE > introTitle CUSTOM_INTRO_DESCRIPTION: > introDescription CUSTOM_DOWNLOAD_DESCRIPTION: downloadDescription CUSTOM_TRY_SEND_DESCRIPTION: trySendDescription CUSTOM_SEND_YOUR_FILES_LINK: sendYourFilesLink CUSTOM_INTRO_TITLE: "Secure & Simple" CUSTOM_INTRO_DESCRIPTION: "Share files with end-to-end encryption and a link that expires." CUSTOM_DOWNLOAD_DESCRIPTION: "Shared with end-to-end encryption and a link that expires." CUSTOM_TRY_SEND_DESCRIPTION: "Secure, Simple file sharing" CUSTOM_SEND_YOUR_FILES_LINK: "Upload Files"
This commit is contained in:
parent
5124572dba
commit
2f491fac86
8 changed files with 83 additions and 15 deletions
|
@ -3,7 +3,9 @@ const html = require('choo/html');
|
|||
module.exports = function(state, emit) {
|
||||
const fileInfo = state.fileInfo;
|
||||
const invalid = fileInfo.password === null;
|
||||
|
||||
const downloadDescription =
|
||||
state.WEB_UI.CUSTOM_DOWNLOAD_DESCRIPTION ||
|
||||
state.translate('downloadDescription');
|
||||
const div = html`
|
||||
<div
|
||||
class="h-full w-full flex flex-col items-center justify-center bg-white py-8 max-w-md mx-auto dark:bg-grey-90"
|
||||
|
@ -14,7 +16,7 @@ module.exports = function(state, emit) {
|
|||
<p
|
||||
class="w-full mb-4 text-center text-grey-80 dark:text-grey-40 leading-normal"
|
||||
>
|
||||
${state.translate('downloadDescription')}
|
||||
${downloadDescription}
|
||||
</p>
|
||||
<form
|
||||
class="flex flex-row flex-nowrap w-full md:w-4/5"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue