summaryrefslogtreecommitdiff
path: root/app/views/layouts/_navbar.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/_navbar.html.haml')
-rw-r--r--app/views/layouts/_navbar.html.haml21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/layouts/_navbar.html.haml b/app/views/layouts/_navbar.html.haml
new file mode 100644
index 0000000..4005e28
--- /dev/null
+++ b/app/views/layouts/_navbar.html.haml
@@ -0,0 +1,21 @@
+.navbar.navbar-inverse.navbar-fixed-top
+ .navbar-inner
+ .container-fluid
+ %a.btn.btn-navbar{"data-target" => ".nav-collapse", "data-toggle" => "collapse"}
+ %span.icon-bar
+ %span.icon-bar
+ %span.icon-bar
+ %a.brand{:href => (current_user.nil? ? '/' : tenant_path(current_user.current_tenant))} Gemeinschaft 5
+ .nav-collapse.collapse
+ %p.navbar-text.pull-right
+ - if current_user
+ %a.navbar-link{:href => tenant_user_path(current_user.current_tenant, current_user)}
+ = current_user
+ %ul.nav
+ %li.active
+ %a{:href => "#"} Home
+ %li
+ %a{:href => "#about"} About
+ %li
+ %a{:href => "#contact"} Contact
+ / /.nav-collapse