diff options
Diffstat (limited to 'src/guff/views/navbar.cr')
-rw-r--r-- | src/guff/views/navbar.cr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/guff/views/navbar.cr b/src/guff/views/navbar.cr new file mode 100644 index 0000000..89331cb --- /dev/null +++ b/src/guff/views/navbar.cr @@ -0,0 +1,15 @@ +require "./html" + +class Guff::Views::Navbar < Guff::Views::HTMLView + def initialize( + context : Context, + @name : String, + @link : String, + @text : String, + @show_logout : Bool = false, + ) + super(context) + end + + ECR.def_to_s("src/views/navbar.ecr") +end |