Added SEO keywords. Added medua upload indicator. Added Khabarovsk default
Build and Publish / Build and Publish Docker Image (push) Successful in 1m17s
Build and Publish / Build and Publish Docker Image (push) Successful in 1m17s
This commit is contained in:
+5
-1
@@ -796,6 +796,7 @@ struct SettingsForm {
|
||||
pricing_info: String,
|
||||
timezone: String,
|
||||
site_domain: String,
|
||||
seo_keywords: String,
|
||||
}
|
||||
|
||||
async fn save_settings(request: Request, session: Session, db: Database) -> cot::Result<Response> {
|
||||
@@ -811,6 +812,7 @@ async fn save_settings(request: Request, session: Session, db: Database) -> cot:
|
||||
("pricing_info", form.pricing_info),
|
||||
("timezone", form.timezone),
|
||||
("site_domain", form.site_domain),
|
||||
("seo_keywords", form.seo_keywords),
|
||||
] {
|
||||
let k = key.to_string();
|
||||
let existing = query!(Setting, $key == k).get(&db).await?;
|
||||
@@ -1172,7 +1174,7 @@ async fn schedule_events(
|
||||
.unwrap_or("?");
|
||||
|
||||
let (bg_color, text_color) = match v.status.as_str() {
|
||||
"cancelled" => ("#ccc".to_string(), "#666"),
|
||||
"cancelled" => ("#ffb3b3".to_string(), "#a00"),
|
||||
"completed" => (format!("{}88", client_color), "#fff"),
|
||||
_ => (client_color.to_string(), "#fff"),
|
||||
};
|
||||
@@ -1641,8 +1643,10 @@ async fn media_delete(
|
||||
.and_then(|v| v.to_str().ok())
|
||||
.map(|s| s.to_string());
|
||||
if let Some(mut m) = query!(Media, $id == media_id).get(&db).await? {
|
||||
let file_path = m.file_path.clone();
|
||||
m.status = "archived".to_string();
|
||||
m.save(&db).await?;
|
||||
let _ = tokio::fs::remove_file(&file_path).await;
|
||||
}
|
||||
let redirect_url = referer
|
||||
.filter(|r| r.contains("/schedule/") && r.contains("/edit"))
|
||||
|
||||
Reference in New Issue
Block a user