File tree Expand file tree Collapse file tree 4 files changed +3
-5
lines changed
components/notifications/banner Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- use crate :: { Notification , NotificationLevel } ;
1
+ use crate :: Notification ;
2
2
use pgml_components:: component;
3
3
use sailfish:: TemplateOnce ;
4
4
Original file line number Diff line number Diff line change 2
2
extern crate rocket;
3
3
4
4
use rocket:: form:: Form ;
5
- use rocket:: http:: { Cookie , CookieJar } ;
5
+ use rocket:: http:: CookieJar ;
6
6
use rocket:: response:: Redirect ;
7
7
use rocket:: route:: Route ;
8
8
use rocket:: serde:: json:: Json ;
Original file line number Diff line number Diff line change 1
1
use rocket:: http:: { Cookie , CookieJar } ;
2
- use rocket:: serde:: json:: Json ;
3
2
4
3
pub struct Notifications { }
5
4
@@ -11,7 +10,7 @@ impl Notifications {
11
10
}
12
11
13
12
pub fn get_viewed ( cookies : & CookieJar < ' _ > ) -> Vec < String > {
14
- let mut viewed = match cookies. get_private ( "session" ) {
13
+ let viewed = match cookies. get_private ( "session" ) {
15
14
Some ( session) => {
16
15
match serde_json:: from_str :: < serde_json:: Value > ( session. value ( ) ) . unwrap ( )
17
16
[ "notifications" ]
Original file line number Diff line number Diff line change 1
1
< %
2
2
use crate::components::navigation::navbar::marketing::Marketing as MarketingNavbar;
3
- use crate::components::notifications::Banner;
4
3
%>
5
4
<!DOCTYPE html>
6
5
< html lang ="en-US " data-bs-theme ="dark ">
You can’t perform that action at this time.
0 commit comments