mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	Display the update meta result content on the update page
This commit is contained in:
		@@ -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<M: Serialize + Send, P: Serialize + Send, N: Serialize + Send> {
 | 
			
		||||
struct UpdatesTemplate<M: Serialize + Send, P: Serialize + Send, N: Serialize + Send + Display> {
 | 
			
		||||
    db_name: String,
 | 
			
		||||
    db_size: usize,
 | 
			
		||||
    docs_count: usize,
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
 | 
			
		||||
    <section class="hero is-light">
 | 
			
		||||
  <section class="hero is-light">
 | 
			
		||||
    <div class="hero-body">
 | 
			
		||||
      <div class="container">
 | 
			
		||||
 | 
			
		||||
@@ -68,7 +68,7 @@
 | 
			
		||||
            <ol>
 | 
			
		||||
              <li class="field">
 | 
			
		||||
                <div class="attribute">update id</div><div class="updateId content">{{ update_id }}</div>
 | 
			
		||||
                <div class="attribute">update status</div><div class="updateStatus content">processed</div>
 | 
			
		||||
                <div class="attribute">update status</div><div class="updateStatus content">{{ meta }}</div>
 | 
			
		||||
              </li>
 | 
			
		||||
            </ol>
 | 
			
		||||
          </li>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user