@@ -16,7 +16,7 @@ impl Template {
1616 } ,
1717 index : match config. template_index {
1818 Some ( ref p) => read_to_string ( p) ?,
19- None => "{list}\n \n 👁 {hosts} / {hits} " . into ( ) ,
19+ None => "{list}" . into ( ) ,
2020 } ,
2121 internal_server_error : match config. template_internal_server_error {
2222 Some ( ref p) => read ( p) ?,
@@ -28,7 +28,7 @@ impl Template {
2828 } ,
2929 welcome : match config. template_welcome {
3030 Some ( ref p) => read_to_string ( p) ?,
31- None => "Welcome to Nexy!\n \n {list}\n \n 👁 {hosts} / {hits} " . into ( ) ,
31+ None => "Welcome to Nexy!\n \n {list}" . into ( ) ,
3232 } ,
3333 } )
3434 }
@@ -37,11 +37,9 @@ impl Template {
3737 & self . access_denied
3838 }
3939
40- pub fn index ( & self , list : Option < & str > , hosts : Option < usize > , hits : Option < usize > ) -> Vec < u8 > {
40+ pub fn index ( & self , list : Option < & str > ) -> Vec < u8 > {
4141 self . index
4242 . replace ( "{list}" , list. unwrap_or_default ( ) )
43- . replace ( "{hosts}" , & format_count ( hosts) )
44- . replace ( "{hits}" , & format_count ( hits) )
4543 . into ( )
4644 }
4745
@@ -53,20 +51,9 @@ impl Template {
5351 & self . not_found
5452 }
5553
56- pub fn welcome (
57- & self ,
58- list : Option < & str > ,
59- hosts : Option < usize > ,
60- hits : Option < usize > ,
61- ) -> Vec < u8 > {
54+ pub fn welcome ( & self , list : Option < & str > ) -> Vec < u8 > {
6255 self . welcome
6356 . replace ( "{list}" , list. unwrap_or_default ( ) )
64- . replace ( "{hosts}" , & format_count ( hosts) )
65- . replace ( "{hits}" , & format_count ( hits) )
6657 . into ( )
6758 }
6859}
69-
70- fn format_count ( v : Option < usize > ) -> String {
71- v. map_or ( String :: new ( ) , |c| c. to_string ( ) )
72- }
0 commit comments