class Shared::Header
- Shared::Header
- BaseComponent
- Lucky::BaseComponent
- Reference
- Object
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.crConstant 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
-
.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 Summary
-
.file_location
Returns the relative file location to the project root.
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