admin.html.erb
4.33 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<%= csrf_meta_tags %>
<title><%= t('meta_title') %></title><!-- =============== VENDOR STYLES ===============-->
<!-- FONT AWESOME-->
<%= stylesheet_link_tag "kanjai/general" %>
</head>
<body class="layout-h">
<div class="wrapper">
<!-- top navbar-->
<header class="topnavbar-wrapper">
<!-- START Top Navbar-->
<nav class="navbar topnavbar navbar-expand-lg navbar-light">
<!-- START navbar header-->
<div class="navbar-header">
<a class="navbar-brand" href="/">
<div class="brand-logo">
<%= image_tag 'kanjai/logo.png', alt: 'Logo' %>
</div>
<div class="brand-logo-collapsed">
<%= image_tag 'kanjai/logo-single.png', alt: 'Logo' %>
</div>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#topnavbar"><span class="navbar-toggler-icon"></span></button></div><!-- END navbar header-->
<!-- START Nav wrapper-->
<div class="navbar-collapse collapse" id="topnavbar">
<!-- START Left navbar-->
<ul class="nav navbar-nav mr-auto flex-column flex-lg-row">
<%= render :partial => 'shared/extend_admin_menu' %>
<li class="nav-item dropdown <%= ['admin_users', 'page_langs'].include?(controller_name) ? 'active' : '' %>">
<%= link_to t('configuration_menu_title'), kanjai.admin_configuration_url, :class => 'nav-link dropdown-toggle dropdown-toggle-nocaret', data: {toggle: 'dropdown'} %>
<div class="dropdown-menu animated fadeIn">
<%= link_to t('user_menu_title'), kanjai.admin_admin_users_url, :class => 'dropdown-item' %>
<%= link_to t('page_langs_menu_title'), kanjai.admin_page_langs_url, :class => 'dropdown-item' %>
</div>
</li>
<li class="nav-item <%= controller_name == 'pages' ? 'active' : '' %>">
<%= link_to t('pages_menu_title'), kanjai.admin_pages_url, :class => 'nav-link' %>
</li>
<li class="nav-item <%= ['page_templates'].include?(controller_name) ? 'active' : '' %>">
<%= link_to t('templates_menu_title'), kanjai.admin_page_templates_url, :class => 'nav-link' %>
</li>
<li class="nav-item <%= ['images'].include?(controller_name) ? 'active' : '' %>">
<%= link_to t('images_menu_title'), kanjai.admin_images_url, :class => 'nav-link' %>
</li>
</ul><!-- END Left navbar-->
<!-- START Right Navbar-->
<ul class="navbar-nav flex-row">
<li class="nav-item d-md-block">
<%= link_to kanjai.destroy_admin_user_session_path, :method => :delete, :class => 'nav-link' do %>
<%= t('logout') %>
<em class="icon-power"></em>
<% end %>
</li><!-- START Alert menu-->
</ul><!-- END Right Navbar-->
</div><!-- END Nav wrapper-->
<!-- START Search form-->
<form class="navbar-form" role="search" action="search.html">
<div class="form-group"><input class="form-control" type="text" placeholder="Type and hit enter ...">
<div class="fa fa-times navbar-form-close" data-search-dismiss=""></div>
</div><button class="d-none" type="submit">Submit</button>
</form><!-- END Search form-->
</nav><!-- END Top Navbar-->
</header><!-- offsidebar-->
<section class="section-container">
<%= yield %>
</section><!-- Page footer-->
<section class="section-container">
<div class="content-wrapper without-top-line">
<footer><span><%= t('copyright') %></span></footer>
</div>
</section>
</div><!-- =============== VENDOR SCRIPTS ===============-->
<!-- MODERNIZR-->
<%= javascript_include_tag "kanjai/general" %>
</body>
</html>