summaryrefslogtreecommitdiff
path: root/app/views/layouts/_navbar.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-21 20:18:16 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 00:02:50 +0100
commit18ed88c7e3c789366f6e5443dc4ee0bc981a4b88 (patch)
tree847f179022a2c69c1b641fcb2aa474f168877649 /app/views/layouts/_navbar.html.haml
parent495bbfdf78206c8adaec057e83900dda6754092c (diff)
Started the migration to Twitter Bootstrap.
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