summaryrefslogtreecommitdiff
path: root/app/views/shared/_header.de.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:05:14 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:05:14 +0100
commiteaad37485fe59d0306c37cc038dda6d210052910 (patch)
tree072c4b0e33d442528555b82c415f5e7a1712b2b0 /app/views/shared/_header.de.html.haml
parent3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff)
parentb80bd744ad873f6fc43018bc4bfb90677de167bd (diff)
Merge branch 'develop'
Diffstat (limited to 'app/views/shared/_header.de.html.haml')
-rw-r--r--app/views/shared/_header.de.html.haml41
1 files changed, 41 insertions, 0 deletions
diff --git a/app/views/shared/_header.de.html.haml b/app/views/shared/_header.de.html.haml
new file mode 100644
index 0000000..c6205ae
--- /dev/null
+++ b/app/views/shared/_header.de.html.haml
@@ -0,0 +1,41 @@
+%header#main
+ .light
+ %h1.gemeinschaft-logo
+ - if @current_user && @current_user.current_tenant
+ = link_to "Gemeinschaft", tenant_path(@current_user.current_tenant)
+ - else
+ = link_to "Gemeinschaft", root_url
+
+ - if current_user
+ = form_tag '/search' do
+ %div.search-box
+ - if GuiFunction.display?('search_field_in_top_navigation_bar', current_user)
+ %input.text{:value => 'Suchen ...', :name => 'q'}
+ %input{:type => 'submit', :value => ''}
+
+ / Adjustable Navigation.
+ - if current_user
+ - if navigation_items.size > 0
+ - navigation_items.each do |item|
+ - if GuiFunction.display?('navigation_items_in_top_navigation_bar', current_user)
+ %span
+ = link_to item[:title], item[:url]
+
+ - if current_user
+ .user-context
+ %a.user{:href => tenant_user_path(current_user.current_tenant.id, current_user.id)}
+ - if GuiFunction.display?('user_avatar_in_top_navigation_bar', current_user)
+ - if current_user.image? && current_user.image_url(:mini)
+ = image_tag current_user.image_url(:mini).to_s, :class => 'display'
+ - else
+ - if current_user.male?
+ = image_tag 'icons/user-male-16x.png', :class => 'display logged-out'
+ - else
+ = image_tag 'icons/user-female-16x.png', :class => 'display logged-out'
+ = current_user
+ = link_to( "[x]", log_out_path, :class => 'logout', :title => "Abmelden" ) # Temporary way of logging out.
+ - else
+ .user-context
+ = link_to "Registrieren", sign_up_path
+ oder
+ = link_to "Anmelden", log_in_path