mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-09-04 00:20:39 +00:00
NEW_NOTE_NOTICE -> THEME_NEW_NOTE_NOTICE
This commit is contained in:
@@ -38,7 +38,7 @@ pub static ref ALLOW_FILES: bool = std::env::var("ALLOW_FILES")
|
||||
.unwrap_or("true".to_string())
|
||||
.parse()
|
||||
.unwrap();
|
||||
pub static ref NEW_NOTE_NOTICE: bool = std::env::var("NEW_NOTE_NOTICE")
|
||||
pub static ref THEME_NEW_NOTE_NOTICE: bool = std::env::var("THEME_NEW_NOTE_NOTICE")
|
||||
.unwrap_or("true".to_string())
|
||||
.parse()
|
||||
.unwrap();
|
||||
|
@@ -10,7 +10,7 @@ pub struct Status {
|
||||
pub max_expiration: u32,
|
||||
pub allow_advanced: bool,
|
||||
pub allow_files: bool,
|
||||
pub new_note_notice: bool,
|
||||
pub theme_new_note_notice: bool,
|
||||
// Theme
|
||||
pub theme_image: String,
|
||||
pub theme_text: String,
|
||||
|
@@ -12,7 +12,7 @@ async fn get_status() -> impl Responder {
|
||||
max_expiration: *config::MAX_EXPIRATION,
|
||||
allow_advanced: *config::ALLOW_ADVANCED,
|
||||
allow_files: *config::ALLOW_FILES,
|
||||
new_note_notice: *config::NEW_NOTE_NOTICE,
|
||||
theme_new_note_notice: *config::THEME_NEW_NOTE_NOTICE,
|
||||
theme_image: config::THEME_IMAGE.to_string(),
|
||||
theme_text: config::THEME_TEXT.to_string(),
|
||||
theme_page_title: config::THEME_PAGE_TITLE.to_string(),
|
||||
|
@@ -35,9 +35,9 @@
|
||||
<Canvas value={url} />
|
||||
</div>
|
||||
|
||||
{#if $status?.new_note_notice}
|
||||
{#if $status?.theme_new_note_notice}
|
||||
<p>
|
||||
{@html $t('home.new_note_notice')}
|
||||
{@html $t('home.theme_new_note_notice')}
|
||||
</p>
|
||||
{/if}
|
||||
<br />
|
||||
|
Reference in New Issue
Block a user