Improved the post page

This commit is contained in:
Justine Pelletreau
2023-07-03 18:55:33 +02:00
parent d64e020abb
commit f638047508
6 changed files with 9 additions and 6 deletions

View File

@ -123,9 +123,9 @@ async fn show_post(path: web::Path<(u64, String)>, req: HttpRequest) -> impl Res
}
let _ = &mut ret_text.push_str(&format!("\n\
<b>This is the link to your post. Don't lose it !\
It can also be accessed raw using Curl or Wget.</b><br>\n\
><i>{} @{}</i><br><br>\n<pre>\n", post.name, post.date));
<b>Save the link to this page ! We will not store it anywhere.</b><br><br><i>\
This page can be also be accessed using curl or wget.</i><hr>\n\
<h2>{}</h2>\n<i>{}</i><br><br>\n<pre>\n", post.name, post.date));
let _ = match decrypt(post.crypt, &password) {
Ok(v) => {