summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-24 13:38:24 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-24 13:38:24 +0100
commitb792c8eb19fba97a7dab5cd2be8e6bd74617e7d2 (patch)
treec9a72365db51aea67e94a1c64c80dcffdc8bdf79 /app/views/shared
parentbcc26106d74a301df09e02d07572ffe90dfb429b (diff)
Housekeeping.
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_header.de.html.haml41
-rw-r--r--app/views/shared/_header.html.haml41
2 files changed, 0 insertions, 82 deletions
diff --git a/app/views/shared/_header.de.html.haml b/app/views/shared/_header.de.html.haml
deleted file mode 100644
index 10ad2a0..0000000
--- a/app/views/shared/_header.de.html.haml
+++ /dev/null
@@ -1,41 +0,0 @@
-%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
- or
- = link_to "Anmelden", log_in_path
diff --git a/app/views/shared/_header.html.haml b/app/views/shared/_header.html.haml
deleted file mode 100644
index 377d8e0..0000000
--- a/app/views/shared/_header.html.haml
+++ /dev/null
@@ -1,41 +0,0 @@
-%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 => 'Search ...', :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 => "Log out" ) # Temporary way of logging out.
- - else
- .user-context
- = link_to "Sign up", sign_up_path
- or
- = link_to "Log in", log_in_path