dbui-client 0.0.64

WASM web client sources for dbui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use maud::{html, Markup};

pub(crate) fn table_list(tables: Vec<&String>) -> Markup {
  html! {
    @for key in tables {
      li { a.table-link data-name=(key) href="" onclick=(crate::html::onclick_event("table-detail", key, "")) { (key) } }
    }
  }
}

pub(crate) fn view_list(views: Vec<&String>) -> Markup {
  html! {
    @for key in views {
      li { a.view-link data-name=(key) href="" onclick=(crate::html::onclick_event("view-detail", key, "")) { (key) } }
    }
  }
}