small front changes
Some checks failed
Rust / Test (push) Has been cancelled
Rust / Rustfmt (push) Has been cancelled
Rust / Clippy (push) Has been cancelled
Rust / Code coverage (push) Has been cancelled

This commit is contained in:
Alphonse Paix
2025-09-24 00:06:35 +02:00
parent 3153b99d94
commit 165fc1bd70
4 changed files with 4 additions and 7 deletions

View File

@@ -106,10 +106,7 @@ pub async fn publish_newsletter(
.await
.context("Failed to enqueue delivery tasks.")?;
let message = format!(
r#"The newsletter issue "{}" has been published!"#,
form.title
);
let message = String::from("Your email has been queued for delivery.");
let template = MessageTemplate::Success { message };
let response = Html(template.render().unwrap()).into_response();
let response = save_response(transaction, &idempotency_key, user_id, response)

View File

@@ -68,7 +68,7 @@ pub async fn create_post(
.context("Failed to enqueue delivery tasks.")?;
let template = MessageTemplate::Success {
message: "Your new post has been saved. Subscribers will be notified.".into(),
message: "Your new post has been published!".into(),
};
let response = Html(template.render().unwrap()).into_response();
let response = save_response(transaction, &idempotency_key, user_id, response)

View File

@@ -4,7 +4,7 @@
<div class="flex-1 flex items-center justify-center">
<div class="max-w-4xl mx-auto text-center">
<div class="mb-8">
<h1 class="text-4xl font-semibold text-red-600 mb-4">500</h1>
<h1 class="text-4xl font-semibold text-gray-700 mb-4">500</h1>
<h2 class="text-2xl font-semibold text-gray-500 mb-6">Internal Server Error</h2>
<p class="text-gray-600 mb-8 max-w-2xl mx-auto">
Something went wrong. Please try again in a few minutes or contact me if the problem persists.

View File

@@ -101,7 +101,7 @@
</svg>
Write a new post
</h2>
<p class="text-sm text-gray-600 mt-1">Publish a new post online.</p>
<p class="text-sm text-gray-600 mt-1">Publish a new post online. Subscribers will be notified.</p>
</div>
<div class="p-6">
<form hx-post="/admin/posts"