-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.html.haml
60 lines (57 loc) · 3.59 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
55
56
57
58
59
60
!!!
%html.main
%head
%title #{page_title.reverse.join(' - ')}
= csrf_meta_tags
= stylesheet_link_tag 'application/application', 'data-turbolinks-track' => 'reload'
= javascript_include_tag 'application/application', 'data-turbolinks-track' => 'reload'
%link{:href => asset_path('favicon.png'), :rel => 'shortcut icon'}
<meta name="turbolinks-cache-control" content="no-cache">
= yield :head
%body
= display_flash
%header.siteHeader{'data-turbolinks-permanent' => true}
- if flash[:remember_login] && !auth_session.persistent?
.siteHeader__remember.js-remember
.siteHeader__rememberText
%p.siteHeader__rememberTextTitle Would you like to stay logged in?
%p This will keep you logged in in this browser for 2 months.
.siteHeader__rememberButtons.buttonSet
= link_to "Remember me", '#', :class => 'button button--positive button--small', :data => {:remember => 'yes'}
= link_to "Close", '#', :class => 'button button--dark button--small', :data => {:remember => 'no'}
.siteHeader__inside
.siteHeader__logo= link_to "Postal", root_path
%p.siteHeader__version The open source e-mail platform
%ul.siteHeader__nav
- if defined?(organization) && organization
%li.siteHeader__navItem
%li.siteHeader__navItem.siteHeader__navItem--organization
= link_to organization.name, organization_root_path(organization), :class => 'siteHeader__navLinkWithMenu'
%ul.siteHeader__subMenu
%li.siteHeader__subMenuItem.siteHeader__subMenuItem--header= link_to organization.name, organization_root_path(organization)
%li.siteHeader__subMenuItem= link_to "Mail servers", organization_root_path(organization), :class => 'siteHeader__subMenuLink'
%li.siteHeader__subMenuItem= link_to "Domains", organization_domains_path(organization), :class => 'siteHeader__subMenuLink'
%li.siteHeader__subMenuItem= link_to "Organization Settings", organization_settings_path(organization), :class => 'siteHeader__subMenuLink'
- if current_user.admin?
%li.siteHeader__subMenuItem= link_to "Create new organization", :new_organization, :class => 'siteHeader__subMenuLink'
- if current_user.organizations.present.count > 1
%li.siteHeader__subMenuItem= link_to "Switch organization", root_path, :class => 'siteHeader__subMenuLink'
%li.siteHeader__navItem.siteHeader__navItem--user= current_user.name
%li.siteHeader__navItem= link_to "My Settings", settings_path, :class => 'sideHeader__navItemLink'
- if current_user.admin?
- if Postal.ip_pools?
%li.siteHeader__navItem= link_to "IP Pools", ip_pools_path, :class => 'sideHeader__navItemLink'
%li.siteHeader__navItem= link_to "Users", users_path, :class => 'sideHeader__navItemLink'
%li.siteHeader__navItem= link_to "Logout", logout_path, :method => :delete, :class => 'sideHeader__navItemLink'
.siteContent
- if content_for?(:sidebar)
%nav.sidebar
= content_for :sidebar
%section.siteContent__main
= yield
%footer.siteContent__footer
%ul.footer__links
%li.footer__name
Powered by #{link_to "Postal", "https://postalserver.io", target: '_blank'} #{Postal.version}:patch.1.
%li= link_to "Documentation", "https://docs.postalserver.io", target: '_blank'
%li= link_to "Ask for help", "https://discussions.postalserver.io", target: '_blank'