Rename downloads list to uploads list

This commit is contained in:
timvisee 2025-04-23 10:09:51 +02:00
parent 1fb2f45285
commit 11aad6eac5
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
3 changed files with 5 additions and 5 deletions

View file

@ -18,12 +18,12 @@ module.exports = function(state, emit) {
left = archiveTile.empty(state, emit); left = archiveTile.empty(state, emit);
} }
if (archives.length > 0 && state.WEB_UI.DOWNLOAD_LIST_NOTICE_HTML) { if (archives.length > 0 && state.WEB_UI.UPLOADS_LIST_NOTICE_HTML) {
archives.push(html` archives.push(html`
<p <p
class="w-full p-2 border-default dark:border-grey-70 rounded-default text-orange-60 bg-yellow-40 text-center leading-normal" class="w-full p-2 border-default dark:border-grey-70 rounded-default text-orange-60 bg-yellow-40 text-center leading-normal"
> >
${raw(state.WEB_UI.DOWNLOAD_LIST_NOTICE_HTML)} ${raw(state.WEB_UI.UPLOADS_LIST_NOTICE_HTML)}
</p> </p>
`); `);
} }

View file

@ -17,7 +17,7 @@ module.exports = {
CUSTOM_FOOTER_URL: config.custom_footer_url, CUSTOM_FOOTER_URL: config.custom_footer_url,
MAIN_NOTICE_HTML: config.main_notice_html, MAIN_NOTICE_HTML: config.main_notice_html,
UPLOAD_AREA_NOTICE_HTML: config.upload_area_notice_html, UPLOAD_AREA_NOTICE_HTML: config.upload_area_notice_html,
DOWNLOAD_LIST_NOTICE_HTML: config.download_list_notice_html, UPLOADS_LIST_NOTICE_HTML: config.uploads_list_notice_html,
DOWNLOAD_NOTICE_HTML: config.download_notice_html, DOWNLOAD_NOTICE_HTML: config.download_notice_html,
COLORS: { COLORS: {
PRIMARY: config.ui_color_primary, PRIMARY: config.ui_color_primary,

View file

@ -274,10 +274,10 @@ const conf = convict({
default: '', default: '',
env: 'SEND_UPLOAD_AREA_NOTICE_HTML' env: 'SEND_UPLOAD_AREA_NOTICE_HTML'
}, },
download_list_notice_html: { uploads_list_notice_html: {
format: String, format: String,
default: '', default: '',
env: 'SEND_DOWNLOAD_LIST_NOTICE_HTML' env: 'SEND_UPLOADS_LIST_NOTICE_HTML'
}, },
download_notice_html: { download_notice_html: {
format: String, format: String,