MainLayout.razor 539 B

1234567891011121314151617181920212223242526
  1. @inherits LayoutComponentBase
  2. @inject NavigationManager _navManager
  3. @if (_navManager.ToBaseRelativePath(_navManager.Uri).Length == 0)
  4. {
  5. @Body
  6. }
  7. else
  8. {
  9. <AuthorizeView>
  10. <Authorized>
  11. <div class="wrap">
  12. <Sidebar />
  13. <div class="main-content">
  14. @Body
  15. <Footer />
  16. </div>
  17. </div>
  18. </Authorized>
  19. <NotAuthorized>
  20. @Body
  21. </NotAuthorized>
  22. </AuthorizeView>
  23. }