From a576c7ae4b4ed22cbb19cbd25a604a89256d9982 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Mon, 21 Dec 2020 12:52:09 +0100 Subject: [PATCH] Display the update meta result content on the update page --- http-ui/src/main.rs | 3 ++- http-ui/templates/updates.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/http-ui/src/main.rs b/http-ui/src/main.rs index 27187acc0..51e6e9f85 100644 --- a/http-ui/src/main.rs +++ b/http-ui/src/main.rs @@ -1,5 +1,6 @@ use std::borrow::Cow; use std::collections::{HashMap, HashSet}; +use std::fmt::Display; use std::fs::{File, create_dir_all}; use std::net::SocketAddr; use std::num::NonZeroUsize; @@ -177,7 +178,7 @@ struct IndexTemplate { #[derive(Template)] #[template(path = "updates.html")] -struct UpdatesTemplate { +struct UpdatesTemplate { db_name: String, db_size: usize, docs_count: usize, diff --git a/http-ui/templates/updates.html b/http-ui/templates/updates.html index 514a006b3..276bee40c 100644 --- a/http-ui/templates/updates.html +++ b/http-ui/templates/updates.html @@ -12,7 +12,7 @@ -
+
@@ -68,7 +68,7 @@
  1. update id
    {{ update_id }}
    -
    update status
    processed
    +
    update status
    {{ meta }}