forked from dcrec1/rails6_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.html.haml
54 lines (43 loc) · 1.66 KB
/
application.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
!!! Strict
%html{"xml:lang" => "en", :xmlns => "http://www.w3.org/1999/xhtml"}
%head
= tag('meta', {:content => "text/html; charset=utf-8", "http-equiv" => "content-type"})
= tag('meta', {:content => "no", "http-equiv" => "imagetoolbar"})
= csrf_meta_tag
%title= title
= stylesheet_link_tag 'styles', :media => 'screen, projection'
= stylesheet_link_tag 'print', :media => 'print'
= javascript_include_tag :defaults
/[if IE]
= stylesheet_link_tag 'ie', :media => 'screen'
= yield :head
%body
#container
#header
#logo
%h3#headline
= link_to "APP_NAME", root_url
#global
%span.right
= tabs_tag do |tab|
= content_tag('li', "Logget ind som: #{current_user.email}") if user_signed_in?
= tab.something "Something", "#"
= tab.edit_profile "Profile", edit_user_registration_path if user_signed_in?
= tab.logout "Sign out", destroy_user_session_path if user_signed_in?
= tab.login "Sign in", new_user_session_path unless user_signed_in?
#navi
= tabs_tag do |tab|
= tab.dashboard 'Overblik', root_url
#main.clear
#breadcrumb
%a{:href => 'javascript:if(window.print)window.print()', :class => 'right'} Print
= render_breadcrumbs.html_safe
#content{:class => (content_for?(:side) ? '' : 'wide')}
= show_flash
= yield
- if content_for? :side
#side
= yield :side
#footer
= tabs_tag do |tab|
= tab.footer_home 'APP_NAME', "#"