class Shared::Header

Overview

HTML header with button which redirects to Home::Index and if logged in, provides a log out button and the users email.

Defined in:

components/shared/header.cr

Constant Summary

ASSIGNS = [user_email : String | ::Nil = nil] of Nil

HTML header with button which redirects to Home::Index and if logged in, provides a log out button and the users email.

Constructors

Class Method Summary

Instance Method Summary

Class methods inherited from class BaseComponent

file_location file_location

Constructor Detail

def self.new(user_email : String | Nil = nil, **unused_exposures) #

HTML header with button which redirects to Home::Index and if logged in, provides a log out button and the users email.


Class Method Detail

def self.file_location #

Returns the relative file location to the project root. e.g. src/components/my_component.cr


[View source]

Instance Method Detail

def render #

[View source]
def user_email : String? #