kadmin 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/app/assets/javascripts/modular/app.js +1389 -0
- data/app/assets/javascripts/{kadmin → modular}/application.js +0 -0
- data/app/assets/javascripts/modular/custom.js +1 -0
- data/app/assets/javascripts/modular/vendor.js +57671 -0
- data/app/assets/stylesheets/modular/app-blue.css +2795 -0
- data/app/assets/stylesheets/modular/app-custom.css +2795 -0
- data/app/assets/stylesheets/modular/app-green.css +2795 -0
- data/app/assets/stylesheets/modular/app-orange.css +2795 -0
- data/app/assets/stylesheets/modular/app-purple.css +2795 -0
- data/app/assets/stylesheets/modular/app-red.css +2795 -0
- data/app/assets/stylesheets/modular/app-seagreen.css +2795 -0
- data/app/assets/stylesheets/modular/app.css +2795 -0
- data/app/assets/stylesheets/modular/custom.css +19 -0
- data/app/assets/stylesheets/modular/vendor.css +12999 -0
- data/app/controllers/kadmin/application_controller.rb +1 -1
- data/app/views/layouts/modular/application.html.erb +133 -0
- data/config/locales/de.yml +7 -7
- data/config/locales/en.yml +1 -1
- data/lib/kadmin/version.rb +1 -1
- metadata +66 -57
- data/app/assets/stylesheets/kadmin/application.scss +0 -59
- data/app/assets/stylesheets/kadmin/typeahead-select.scss +0 -2
- data/app/views/layouts/kadmin/application.html.erb +0 -74
- data/test/dummy/log/development.log +0 -0
@@ -0,0 +1,133 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html class="no-js" lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
7
|
+
<title>Apps/Services Admin</title>
|
8
|
+
<meta name="description" content="">
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
10
|
+
<link rel="apple-touch-icon" href="apple-touch-icon.png">
|
11
|
+
<!-- Place favicon.ico in the root directory -->
|
12
|
+
<%= stylesheet_link_tag "modular/vendor.css", media: "all" %>
|
13
|
+
<%= stylesheet_link_tag "modular/app-blue.css", media: "all" %>
|
14
|
+
<%= stylesheet_link_tag "modular/custom.css", media: "all" %>
|
15
|
+
<%= csrf_meta_tags %>
|
16
|
+
<!-- Additional scripts -->
|
17
|
+
<%= javascript_include_tag "modular/application.js" %>
|
18
|
+
<%= javascript_include_tag "modular/custom.js" %>
|
19
|
+
</head>
|
20
|
+
|
21
|
+
<body>
|
22
|
+
<div class="main-wrapper">
|
23
|
+
<div class="app" id="app">
|
24
|
+
<header class="header">
|
25
|
+
<h3 class="title" style="margin-left: 40px;"> Moin, moin! </h3>
|
26
|
+
<div class="header-block header-block-nav">
|
27
|
+
<ul class="nav-profile">
|
28
|
+
<% if logged_in? %>
|
29
|
+
<%= link_to(t('kadmin.authorization.logout'), Kadmin::Engine.routes.url_helpers.auth_logout_path) %>
|
30
|
+
<% end %>
|
31
|
+
<li class="profile dropdown">
|
32
|
+
|
33
|
+
<!--<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
34
|
+
<div class="img" style="background-image: url('https://avatars3.githubusercontent.com/u/3959008?v=3&s=40')"> </div>
|
35
|
+
<span class="name">John Doe</span>
|
36
|
+
</a>
|
37
|
+
<div class="dropdown-menu profile-dropdown-menu" aria-labelledby="dropdownMenu1">
|
38
|
+
<a class="dropdown-item" href="#"> <i class="fa fa-user icon"></i> Profile </a>
|
39
|
+
<a class="dropdown-item" href="#"> <i class="fa fa-bell icon"></i> Notifications </a>
|
40
|
+
<a class="dropdown-item" href="#"> <i class="fa fa-gear icon"></i> Settings </a>
|
41
|
+
<div class="dropdown-divider"></div>
|
42
|
+
<a class="dropdown-item" href="login.html"> <i class="fa fa-power-off icon"></i> Logout </a>
|
43
|
+
</div>-->
|
44
|
+
</li>
|
45
|
+
</ul>
|
46
|
+
</div>
|
47
|
+
</header>
|
48
|
+
<aside class="sidebar">
|
49
|
+
<div class="sidebar-container">
|
50
|
+
<div class="sidebar-header">
|
51
|
+
<div class="brand">
|
52
|
+
<!--<div class="logo"> <span class="l l1"></span> <span class="l l2"></span> <span class="l l3"></span> <span class="l l4"></span> <span class="l l5"></span> </div>-->
|
53
|
+
<a class="titlelink" href="/admin">Apps&Services Admin</a> </div>
|
54
|
+
</div>
|
55
|
+
<nav class="menu">
|
56
|
+
<ul class="nav metismenu" id="sidebar-menu">
|
57
|
+
|
58
|
+
<% unless @layout_navbar_links.blank? %>
|
59
|
+
<% @layout_navbar_links.each do |link| %>
|
60
|
+
<%= nav_link_to(link[:title], link[:path]) %>
|
61
|
+
<% end %>
|
62
|
+
<% end %>
|
63
|
+
<!--<li class="active">
|
64
|
+
<a href="index.html"> <i class="fa fa-home"></i> Dashboard </a>
|
65
|
+
</li>
|
66
|
+
<li>
|
67
|
+
<a href=""> <i class="fa fa-th-large"></i> Items Manager <i class="fa arrow"></i> </a>
|
68
|
+
<ul>
|
69
|
+
<li> <a href="items-list.html">
|
70
|
+
Items List
|
71
|
+
</a> </li>
|
72
|
+
<li> <a href="item-editor.html">
|
73
|
+
Item Editor
|
74
|
+
</a> </li>
|
75
|
+
</ul>
|
76
|
+
</li>-->
|
77
|
+
</ul>
|
78
|
+
</nav>
|
79
|
+
</div>
|
80
|
+
</aside>
|
81
|
+
<div class="sidebar-overlay" id="sidebar-overlay"></div>
|
82
|
+
<article class="content dashboard-page">
|
83
|
+
<div class="row">
|
84
|
+
<% if content_for?(:sidebar) %>
|
85
|
+
<div class="col-xl-8">
|
86
|
+
<!-- main -->
|
87
|
+
<%= render partial: 'kadmin/helpers/alerts' %>
|
88
|
+
<%= yield %>
|
89
|
+
</div>
|
90
|
+
<div class="col-xl-4 helpsidebar">
|
91
|
+
<!-- sidebar -->
|
92
|
+
<div class="card card-default">
|
93
|
+
<div class="card-header">
|
94
|
+
<div class="header-block">
|
95
|
+
<p class="title">Help</p>
|
96
|
+
</div>
|
97
|
+
</div>
|
98
|
+
<div class="card-block">
|
99
|
+
<%= yield(:sidebar) %>
|
100
|
+
</div>
|
101
|
+
<!--<div class="card-footer"> Card Footer </div>-->
|
102
|
+
</div>
|
103
|
+
</div>
|
104
|
+
<% else %>
|
105
|
+
<div class="col-sm-12">
|
106
|
+
<%= render partial: 'kadmin/helpers/alerts' %>
|
107
|
+
<%= yield %>
|
108
|
+
</div>
|
109
|
+
<% end %>
|
110
|
+
</div>
|
111
|
+
</article>
|
112
|
+
<footer class="footer">
|
113
|
+
<div class="footer-block buttons"> </div>
|
114
|
+
<div class="footer-block author">
|
115
|
+
<ul>
|
116
|
+
<li> Problems? <a href="https://redmine.offerista.com/projects/apps-services/issues/new">Create a Ticket</a> </li>
|
117
|
+
</ul>
|
118
|
+
</div>
|
119
|
+
</footer>
|
120
|
+
</div>
|
121
|
+
</div>
|
122
|
+
<!-- Reference block for JS -->
|
123
|
+
<div class="ref" id="ref">
|
124
|
+
<div class="color-primary"></div>
|
125
|
+
<div class="chart">
|
126
|
+
<div class="color-primary"></div>
|
127
|
+
<div class="color-secondary"></div>
|
128
|
+
</div>
|
129
|
+
</div>
|
130
|
+
<%= yield :javascripts %>
|
131
|
+
</body>
|
132
|
+
|
133
|
+
</html>
|
data/config/locales/de.yml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
de:
|
2
2
|
kadmin:
|
3
3
|
auth:
|
4
|
-
error: Ein Fehler ist aufgetreten; bitte
|
5
|
-
login_required:
|
6
|
-
please_login: Bitte
|
7
|
-
unauthorized:
|
8
|
-
unauthorized_message:
|
4
|
+
error: Ein Fehler ist aufgetreten; bitte versuche es noch einmal
|
5
|
+
login_required: Eine gültige E-Mail Adresse von Google (@offerista.com) ist erforderlich
|
6
|
+
please_login: Bitte melde Dich an
|
7
|
+
unauthorized: Unberechtigter Zugriff
|
8
|
+
unauthorized_message: Du hast für die gewünschte Seite leider keine Zugriffsrechte; falls Du dies anders siehst, wende Dich bitte an das Apps & Services Team
|
9
9
|
components:
|
10
10
|
finder:
|
11
11
|
clear: Löschen
|
@@ -13,11 +13,11 @@ de:
|
|
13
13
|
empty: Nichts zu zeigen
|
14
14
|
filter: Suchen
|
15
15
|
out_of: von %{total}
|
16
|
-
dash_message: Schaue Dir
|
16
|
+
dash_message: Schaue Dir die Bereiche in der Navigationsleiste oben an. Sollte es irgenwelche Probleme geben, oder es Dir im Leben an Zugriffsrechten fehlen, wende Dich bitte an das Apps & Services Team
|
17
17
|
error: Fehler
|
18
18
|
errors:
|
19
19
|
not_found: Objekt nicht gefunden
|
20
|
-
params_missing:
|
20
|
+
params_missing: Fehlender erforderlicher Parameter
|
21
21
|
unexpected: Unerwartete Fehler
|
22
22
|
unexpected_message: Bei dem Betrieb ist ein unerwarteter Fehler aufgetreten. Bitte entweder nochmal versuchen, oder die Apps & Services Team kontaktieren.
|
23
23
|
forms:
|
data/config/locales/en.yml
CHANGED
data/lib/kadmin/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Pepin-Perreault
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -109,9 +109,20 @@ extra_rdoc_files: []
|
|
109
109
|
files:
|
110
110
|
- README.md
|
111
111
|
- Rakefile
|
112
|
-
- app/assets/javascripts/
|
113
|
-
- app/assets/
|
114
|
-
- app/assets/
|
112
|
+
- app/assets/javascripts/modular/app.js
|
113
|
+
- app/assets/javascripts/modular/application.js
|
114
|
+
- app/assets/javascripts/modular/custom.js
|
115
|
+
- app/assets/javascripts/modular/vendor.js
|
116
|
+
- app/assets/stylesheets/modular/app-blue.css
|
117
|
+
- app/assets/stylesheets/modular/app-custom.css
|
118
|
+
- app/assets/stylesheets/modular/app-green.css
|
119
|
+
- app/assets/stylesheets/modular/app-orange.css
|
120
|
+
- app/assets/stylesheets/modular/app-purple.css
|
121
|
+
- app/assets/stylesheets/modular/app-red.css
|
122
|
+
- app/assets/stylesheets/modular/app-seagreen.css
|
123
|
+
- app/assets/stylesheets/modular/app.css
|
124
|
+
- app/assets/stylesheets/modular/custom.css
|
125
|
+
- app/assets/stylesheets/modular/vendor.css
|
115
126
|
- app/controllers/kadmin/application_controller.rb
|
116
127
|
- app/controllers/kadmin/auth_controller.rb
|
117
128
|
- app/controllers/kadmin/concerns/authorized_user.rb
|
@@ -134,7 +145,7 @@ files:
|
|
134
145
|
- app/views/kadmin/error.html.erb
|
135
146
|
- app/views/kadmin/helpers/_alerts.html.erb
|
136
147
|
- app/views/kadmin/helpers/_form_errors.html.erb
|
137
|
-
- app/views/layouts/
|
148
|
+
- app/views/layouts/modular/application.html.erb
|
138
149
|
- config/initializers/action_view.rb
|
139
150
|
- config/initializers/assets.rb
|
140
151
|
- config/locales/de.yml
|
@@ -207,7 +218,6 @@ files:
|
|
207
218
|
- test/dummy/db/schema.rb
|
208
219
|
- test/dummy/lib/forms/group_form.rb
|
209
220
|
- test/dummy/lib/forms/person_form.rb
|
210
|
-
- test/dummy/log/development.log
|
211
221
|
- test/dummy/public/404.html
|
212
222
|
- test/dummy/public/422.html
|
213
223
|
- test/dummy/public/500.html
|
@@ -240,74 +250,73 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
250
|
version: '0'
|
241
251
|
requirements: []
|
242
252
|
rubyforge_project:
|
243
|
-
rubygems_version: 2.
|
253
|
+
rubygems_version: 2.5.1
|
244
254
|
signing_key:
|
245
255
|
specification_version: 4
|
246
256
|
summary: Collection of utility, configuration, etc., for admin areas
|
247
257
|
test_files:
|
248
|
-
- test/dummy/
|
249
|
-
- test/dummy/
|
250
|
-
- test/dummy/config/locales/en.yml
|
251
|
-
- test/dummy/config/boot.rb
|
252
|
-
- test/dummy/config/routes.rb
|
253
|
-
- test/dummy/config/environments/test.rb
|
254
|
-
- test/dummy/config/environments/production.rb
|
255
|
-
- test/dummy/config/environments/development.rb
|
256
|
-
- test/dummy/config/secrets.yml
|
257
|
-
- test/dummy/config/initializers/assets.rb
|
258
|
-
- test/dummy/config/initializers/mime_types.rb
|
259
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
260
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
261
|
-
- test/dummy/config/initializers/session_store.rb
|
262
|
-
- test/dummy/config/initializers/kadmin.rb
|
263
|
-
- test/dummy/config/initializers/inflections.rb
|
264
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
265
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
266
|
-
- test/dummy/config/database.yml
|
267
|
-
- test/dummy/config.ru
|
268
|
-
- test/dummy/app/controllers/authorized_controller.rb
|
269
|
-
- test/dummy/app/controllers/admin/people_controller.rb
|
258
|
+
- test/dummy/app/assets/javascripts/application.js
|
259
|
+
- test/dummy/app/assets/stylesheets/application.css
|
270
260
|
- test/dummy/app/controllers/admin/application_controller.rb
|
271
261
|
- test/dummy/app/controllers/admin/groups_controller.rb
|
272
|
-
- test/dummy/app/controllers/
|
262
|
+
- test/dummy/app/controllers/admin/people_controller.rb
|
273
263
|
- test/dummy/app/controllers/admin_controller.rb
|
274
|
-
- test/dummy/app/
|
275
|
-
- test/dummy/app/
|
264
|
+
- test/dummy/app/controllers/application_controller.rb
|
265
|
+
- test/dummy/app/controllers/authorized_controller.rb
|
266
|
+
- test/dummy/app/helpers/application_helper.rb
|
267
|
+
- test/dummy/app/models/group.rb
|
268
|
+
- test/dummy/app/models/group_person.rb
|
269
|
+
- test/dummy/app/models/person.rb
|
276
270
|
- test/dummy/app/views/admin/index.html.erb
|
277
|
-
- test/dummy/app/views/admin/people/index.html.erb
|
278
|
-
- test/dummy/app/views/admin/people/show.html.erb
|
279
|
-
- test/dummy/app/views/admin/people/edit.html.erb
|
280
271
|
- test/dummy/app/views/admin/people/_form.html.erb
|
281
|
-
- test/dummy/app/views/admin/people/new.html.erb
|
282
272
|
- test/dummy/app/views/admin/people/_table.html.erb
|
283
|
-
- test/dummy/app/views/
|
273
|
+
- test/dummy/app/views/admin/people/edit.html.erb
|
274
|
+
- test/dummy/app/views/admin/people/index.html.erb
|
275
|
+
- test/dummy/app/views/admin/people/new.html.erb
|
276
|
+
- test/dummy/app/views/admin/people/show.html.erb
|
284
277
|
- test/dummy/app/views/authorized/index.html.erb
|
285
|
-
- test/dummy/app/
|
286
|
-
- test/dummy/app/models/person.rb
|
287
|
-
- test/dummy/app/models/group_person.rb
|
288
|
-
- test/dummy/app/models/group.rb
|
289
|
-
- test/dummy/test/fixtures/people.yml
|
290
|
-
- test/dummy/test/fixtures/children.yml
|
291
|
-
- test/dummy/test/fixtures/groups.yml
|
292
|
-
- test/dummy/test/fixtures/group_people.yml
|
293
|
-
- test/dummy/test/models/group_person_test.rb
|
294
|
-
- test/dummy/test/models/group_test.rb
|
295
|
-
- test/dummy/lib/forms/person_form.rb
|
296
|
-
- test/dummy/lib/forms/group_form.rb
|
297
|
-
- test/dummy/bin/rake
|
278
|
+
- test/dummy/app/views/layouts/application.html.erb
|
298
279
|
- test/dummy/bin/bundle
|
299
|
-
- test/dummy/bin/setup
|
300
280
|
- test/dummy/bin/rails
|
281
|
+
- test/dummy/bin/rake
|
282
|
+
- test/dummy/bin/setup
|
283
|
+
- test/dummy/config/application.rb
|
284
|
+
- test/dummy/config/boot.rb
|
285
|
+
- test/dummy/config/database.yml
|
286
|
+
- test/dummy/config/environment.rb
|
287
|
+
- test/dummy/config/environments/development.rb
|
288
|
+
- test/dummy/config/environments/production.rb
|
289
|
+
- test/dummy/config/environments/test.rb
|
290
|
+
- test/dummy/config/initializers/assets.rb
|
291
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
292
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
293
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
294
|
+
- test/dummy/config/initializers/inflections.rb
|
295
|
+
- test/dummy/config/initializers/kadmin.rb
|
296
|
+
- test/dummy/config/initializers/mime_types.rb
|
297
|
+
- test/dummy/config/initializers/session_store.rb
|
298
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
299
|
+
- test/dummy/config/locales/en.yml
|
300
|
+
- test/dummy/config/routes.rb
|
301
|
+
- test/dummy/config/secrets.yml
|
302
|
+
- test/dummy/config.ru
|
303
|
+
- test/dummy/db/migrate/20161006114509_create_people.rb
|
301
304
|
- test/dummy/db/migrate/20161006134459_create_groups.rb
|
302
305
|
- test/dummy/db/migrate/20161006134746_create_group_people.rb
|
303
|
-
- test/dummy/db/migrate/20161006114509_create_people.rb
|
304
306
|
- test/dummy/db/schema.rb
|
305
|
-
- test/dummy/
|
306
|
-
- test/dummy/
|
307
|
+
- test/dummy/lib/forms/group_form.rb
|
308
|
+
- test/dummy/lib/forms/person_form.rb
|
307
309
|
- test/dummy/public/404.html
|
308
|
-
- test/dummy/public/favicon.ico
|
309
310
|
- test/dummy/public/422.html
|
311
|
+
- test/dummy/public/500.html
|
312
|
+
- test/dummy/public/favicon.ico
|
310
313
|
- test/dummy/Rakefile
|
311
314
|
- test/dummy/README.rdoc
|
312
|
-
- test/
|
315
|
+
- test/dummy/test/fixtures/children.yml
|
316
|
+
- test/dummy/test/fixtures/group_people.yml
|
317
|
+
- test/dummy/test/fixtures/groups.yml
|
318
|
+
- test/dummy/test/fixtures/people.yml
|
319
|
+
- test/dummy/test/models/group_person_test.rb
|
320
|
+
- test/dummy/test/models/group_test.rb
|
313
321
|
- test/kadmin/form_test.rb
|
322
|
+
- test/test_helper.rb
|
@@ -1,59 +0,0 @@
|
|
1
|
-
// Custom bootstrap variables must be set or import before bootstrap itself.
|
2
|
-
@import "bootstrap-sprockets";
|
3
|
-
@import "bootstrap";
|
4
|
-
|
5
|
-
/**
|
6
|
-
* Highlights fields properly when they have errors
|
7
|
-
* Rails automatically appends .field_with_errors on any form element whose model
|
8
|
-
* attributes has an error (as marked in model.errors)
|
9
|
-
*/
|
10
|
-
.field_with_errors {
|
11
|
-
@extend .has-error;
|
12
|
-
}
|
13
|
-
|
14
|
-
a.thumbnail {
|
15
|
-
max-width: 100%;
|
16
|
-
overflow: hidden;
|
17
|
-
padding-bottom: 2px;
|
18
|
-
}
|
19
|
-
|
20
|
-
a.thumbnail > img {
|
21
|
-
max-width: 100%;
|
22
|
-
padding-bottom: 2px;
|
23
|
-
}
|
24
|
-
|
25
|
-
table.table-borderless {
|
26
|
-
|
27
|
-
}
|
28
|
-
|
29
|
-
table.table-borderless {
|
30
|
-
tr, td, th {
|
31
|
-
border-width: 0;
|
32
|
-
border-style: none !important;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
.content {
|
37
|
-
height: 100%;
|
38
|
-
left: 0;
|
39
|
-
min-height: 100%;
|
40
|
-
padding-bottom: 1em;
|
41
|
-
width: 100%;
|
42
|
-
|
43
|
-
.row {
|
44
|
-
height: 100%;
|
45
|
-
}
|
46
|
-
|
47
|
-
.main {
|
48
|
-
.page-header {
|
49
|
-
margin-top: 0;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
.sidebar {
|
54
|
-
}
|
55
|
-
|
56
|
-
.alerts {
|
57
|
-
margin: 1em auto;
|
58
|
-
}
|
59
|
-
}
|
@@ -1,74 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
# Requires the following helpers:
|
3
|
-
# - Kadmin::NavigationHelper
|
4
|
-
# - Kadmin::BootstrapHelper
|
5
|
-
# - Kadmin::AlertHelper
|
6
|
-
%>
|
7
|
-
<!DOCTYPE html>
|
8
|
-
<html lang="en">
|
9
|
-
<head>
|
10
|
-
<meta charset="utf-8">
|
11
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
12
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
13
|
-
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
14
|
-
|
15
|
-
<title>Admin</title>
|
16
|
-
|
17
|
-
<%= stylesheet_link_tag "kadmin/application", media: "all" %>
|
18
|
-
<%= javascript_include_tag "kadmin/application" %>
|
19
|
-
<%= csrf_meta_tags %>
|
20
|
-
|
21
|
-
<!-- Additional CSS -->
|
22
|
-
<%= yield :stylesheets %>
|
23
|
-
</head>
|
24
|
-
<body>
|
25
|
-
<nav class="navbar navbar-default navbar-static-top" style="margin-bottom: 0;">
|
26
|
-
<div class="container-fluid">
|
27
|
-
<div class="navbar-header">
|
28
|
-
<%= link_to('Admin Dashboard', Kadmin.config.mount_path, { class: 'navbar-brand' }) %>
|
29
|
-
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
30
|
-
<span class="icon-bar"></span>
|
31
|
-
<span class="icon-bar"></span>
|
32
|
-
<span class="icon-bar"></span>
|
33
|
-
</button>
|
34
|
-
</div>
|
35
|
-
<div class="collapse navbar-collapse">
|
36
|
-
<% unless @layout_navbar_links.blank? %>
|
37
|
-
<ul class="nav navbar-nav navbar-left">
|
38
|
-
<% @layout_navbar_links.each do |link| %>
|
39
|
-
<%= nav_link_to(link[:title], link[:path]) %>
|
40
|
-
<% end %>
|
41
|
-
</ul>
|
42
|
-
<% end %>
|
43
|
-
<% if logged_in? %>
|
44
|
-
<ul class="nav navbar-nav navbar-right">
|
45
|
-
<li><%= link_to(t('kadmin.authorization.logout'), Kadmin::Engine.routes.url_helpers.auth_logout_path) %></li>
|
46
|
-
</ul>
|
47
|
-
<% end %>
|
48
|
-
</div>
|
49
|
-
</nav>
|
50
|
-
<div class="container-fluid content">
|
51
|
-
<div class="row">
|
52
|
-
<% if content_for?(:sidebar) %>
|
53
|
-
<!-- main -->
|
54
|
-
<div class="col-sm-8 col-md-8 col-lg-9 main">
|
55
|
-
<%= render partial: 'kadmin/helpers/alerts' %>
|
56
|
-
<%= yield %>
|
57
|
-
</div>
|
58
|
-
<!-- sidebar -->
|
59
|
-
<div class="col-sm-4 col-md-4 col-lg-3 sidebar hidden-xs">
|
60
|
-
<%= yield(:sidebar) %>
|
61
|
-
</div>
|
62
|
-
<% else %>
|
63
|
-
<div class="col-sm-12 col-md-12 main">
|
64
|
-
<%= render partial: 'kadmin/helpers/alerts' %>
|
65
|
-
<%= yield %>
|
66
|
-
</div>
|
67
|
-
<% end %>
|
68
|
-
</div>
|
69
|
-
</div>
|
70
|
-
|
71
|
-
<!-- Additional scripts -->
|
72
|
-
<%= yield :javascripts %>
|
73
|
-
</body>
|
74
|
-
</html>
|