diff options
author | BlackDex <[email protected]> | 2020-09-19 22:19:55 +0200 |
---|---|---|
committer | BlackDex <[email protected]> | 2020-09-19 22:19:55 +0200 |
commit | 6a291040bde780fed730d98b660924ef85c3cd7a (patch) | |
tree | e434a5b36e196adfb98e6d1182905bc6edaf51db /src/api/web.rs | |
parent | 99da5fbebbe9635608b50f94cf52e7684819692d (diff) | |
download | vaultwarden-6a291040bde780fed730d98b660924ef85c3cd7a.tar.gz vaultwarden-6a291040bde780fed730d98b660924ef85c3cd7a.zip |
As requested here: https://bitwardenrs.discourse.group/t/searchable-user-list-on-admin-panel/299
- Changed the table layout a bit.
- Added functions to the tables:
+ Search
+ Sort
+ Paginate
Diffstat (limited to 'src/api/web.rs')
-rw-r--r-- | src/api/web.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/web.rs b/src/api/web.rs index 889aaa30..4b0e292b 100644 --- a/src/api/web.rs +++ b/src/api/web.rs @@ -81,6 +81,9 @@ fn static_files(filename: String) -> Result<Content<&'static [u8]>, Error> { "bootstrap-native.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/bootstrap-native.js"))), "md5.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/md5.js"))), "identicon.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/identicon.js"))), + "datatables.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/datatables.js"))), + "datatables.css" => Ok(Content(ContentType::CSS, include_bytes!("../static/scripts/datatables.css"))), + "jquery-3.5.1.slim.js" => Ok(Content(ContentType::JavaScript, include_bytes!("../static/scripts/jquery-3.5.1.slim.js"))), _ => err!(format!("Static file not found: {}", filename)), } } |