mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	app: Add footer
This commit is contained in:
		
							parent
							
								
									9e70b5bd06
								
							
						
					
					
						commit
						880cc7fac8
					
				@ -107,6 +107,7 @@ impl Component for App {
 | 
			
		||||
                  />
 | 
			
		||||
                </div>
 | 
			
		||||
              </div>
 | 
			
		||||
              {self.view_footer()}
 | 
			
		||||
            </div>
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
@ -271,6 +272,30 @@ impl App {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    fn view_footer(&self) -> Html {
 | 
			
		||||
        html! {
 | 
			
		||||
          <footer class="text-center text-muted fixed-bottom bg-light">
 | 
			
		||||
            <div>
 | 
			
		||||
              <span>{format!("LLDAP version {}", env!("CARGO_PKG_VERSION"))}</span>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div>
 | 
			
		||||
              <a href="https://github.com/nitnelave/lldap" class="me-4 text-reset">
 | 
			
		||||
                <i class="bi-github"></i>
 | 
			
		||||
              </a>
 | 
			
		||||
              <a href="https://discord.gg/h5PEdRMNyP" class="me-4 text-reset">
 | 
			
		||||
                <i class="bi-discord"></i>
 | 
			
		||||
              </a>
 | 
			
		||||
              <a href="https://twitter.com/nitnelave1?ref_src=twsrc%5Etfw" class="me-4 text-reset">
 | 
			
		||||
                <i class="bi-twitter"></i>
 | 
			
		||||
              </a>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div>
 | 
			
		||||
              <span>{"License "}<a href="https://github.com/nitnelave/lldap/blob/main/LICENSE" class="link-secondary">{"GNU GPL"}</a></span>
 | 
			
		||||
            </div>
 | 
			
		||||
          </footer>
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    fn is_admin(&self) -> bool {
 | 
			
		||||
        match &self.user_info {
 | 
			
		||||
            None => false,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user