kadmin 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a67342d7ed2220a376c8b010e75b090b078f8b94f053d07a8de7f49f7457c8d
4
- data.tar.gz: af6c66e446b5e87cf4a7cd50ef6d94c1d42a2360f8eef72c66728b293bf2a379
3
+ metadata.gz: fbf1d95b7f00f351e61cddfbef2de92dd0fb430d178601cab3dda443361d3fd9
4
+ data.tar.gz: 8a2a628316d861856b54b2667485dad1a97db402751a4ed6ba802a7eb5635eb2
5
5
  SHA512:
6
- metadata.gz: b7710e4b73016d2e9d826ec9b6246978e25dccaa19e38cbd22c50830f6824fb5c91b22dd5ef7d75227577b96522ea2d9e0bb9fb505c5ce553307eb1657d327d6
7
- data.tar.gz: c3e79b1da1127d9cbd42fcd71e060e34b9c7603fc69c04e8a5e2238ba9bb43a30b6958e2019b3551338a31e19cfcd140f750acc3b2ade37d26ee3cbf6687761b
6
+ metadata.gz: 2caa4660e15c6f21803c8b47b7c7bd78d34777e589a440d115d85f1d67d148373f646a7f4ee6005887b5d460625917b50c4ea33ed7b439b3c186f4b070927eb2
7
+ data.tar.gz: 8cffec59ad655d1858aa4fbaa42d86f5135edc04432584f7cc16fda537677ba13a48bc82a1a4b4e9799e77751a83ad61f97b956454c378ffa16c6903ab1856f2
@@ -1,105 +1,105 @@
1
1
  <!doctype html>
2
2
  <html lang="en">
3
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 "kadmin/application", media: "all" %>
13
- <%= yield :stylesheets %>
14
- <%= csrf_meta_tags %>
15
- </head>
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 "kadmin/application", media: "all" %>
13
+ <%= yield :stylesheets %>
14
+ <%= csrf_meta_tags %>
15
+ </head>
16
16
 
17
17
  <!-- Wow, this is kind of silly, if the body class is not set the menu toggles don't work -->
18
- <body class="loaded kadmin">
19
- <div class="main-wrapper">
20
- <div class="app" id="app">
21
- <header class="header">
22
- <div class="header-block header-block-nav">
23
- <ul class="nav-profile">
24
- <% if logged_in? %>
25
- <% if authorized_user.admin? %>
26
- <%= form_tag(Kadmin::Engine.routes.url_helpers.auth_change_organization_path) do -%>
27
- <%= select_tag('organization_id', options_from_collection_for_select(Kadmin::Organization.all, :id, :name, @organization.id), onchange: "this.form.submit();", class: 'form-control')%>
28
- <% end -%>
29
- <% else %>
30
- <li style="padding-right: 10px;"><%= authorized_user.organization %></li>
31
- <% end %>
32
- <li><%= link_to(t('kadmin.authorization.logout'), Kadmin::Engine.routes.url_helpers.auth_logout_path) %></li>
33
- <% end %>
34
- </ul>
35
- </div>
36
- </header>
37
- <aside class="sidebar">
38
- <div class="sidebar-container">
39
- <div class="sidebar-header">
40
- <div class="brand">
41
- <a class="titlelink" href="/admin">Apps&amp;Services Admin</a>
42
- </div>
43
- </div>
44
- <% if (!Kadmin::Auth.config.enabled? || logged_in?) && !Kadmin.config.navbar_items.empty? %>
45
- <nav class="menu">
46
- <ul class="nav metismenu" id="sidebar-menu">
47
- <% Kadmin.config.navbar_items_for_user(authorized_user).each do |item| %>
48
- <%= item.present(self).render %>
49
- <% end %>
50
- </ul>
51
- </nav>
52
- <% end %>
53
- </div>
54
- </aside>
55
- <div class="sidebar-overlay" id="sidebar-overlay"></div>
56
- <article class="content dashboard-page">
57
- <div class="row">
58
- <% if content_for?(:sidebar) %>
59
- <div class="col-xl-8">
60
- <!-- main -->
61
- <%= render partial: 'kadmin/helpers/alerts' %>
62
- <%= yield %>
63
- </div>
64
- <div class="col-xl-4 helpsidebar">
65
- <!-- sidebar -->
66
- <div class="card card-default">
67
- <div class="card-header">
68
- <div class="header-block">
69
- <p class="title">Help</p>
70
- </div>
71
- </div>
72
- <div class="card-block">
73
- <%= yield(:sidebar) %>
74
- </div>
75
- </div>
76
- </div>
77
- <% else %>
78
- <div class="col-sm-12">
79
- <%= render partial: 'kadmin/helpers/alerts' %>
80
- <%= yield %>
81
- </div>
82
- <% end %>
83
- </div>
84
- </article>
85
- <footer class="footer">
86
- <div class="footer-block buttons"></div>
87
- <div class="footer-block author">
88
- <ul>
89
- <li>Problems?
90
- <a href="https://redmine.offerista.com/projects/apps-services/issues/new">Create a Ticket</a>
91
- </li>
92
- </ul>
93
- </div>
94
- </footer>
95
- </div>
96
- </div>
18
+ <body class="loaded kadmin">
19
+ <div class="main-wrapper">
20
+ <div class="app" id="app">
21
+ <header class="header">
22
+ <div class="header-block header-block-nav">
23
+ <ul class="nav-profile">
24
+ <% if logged_in? %>
25
+ <% if false && authorized_user.admin? %>
26
+ <%= form_tag(Kadmin::Engine.routes.url_helpers.auth_change_organization_path) do -%>
27
+ <%= select_tag('organization_id', options_from_collection_for_select(Kadmin::Organization.all, :id, :name, @organization.id), onchange: "this.form.submit();", class: 'form-control')%>
28
+ <% end -%>
29
+ <% else %>
30
+ <li style="padding-right: 10px;"><%= authorized_user.organization %></li>
31
+ <% end %>
32
+ <li><%= link_to(t('kadmin.authorization.logout'), Kadmin::Engine.routes.url_helpers.auth_logout_path) %></li>
33
+ <% end %>
34
+ </ul>
35
+ </div>
36
+ </header>
37
+ <aside class="sidebar">
38
+ <div class="sidebar-container">
39
+ <div class="sidebar-header">
40
+ <div class="brand">
41
+ <a class="titlelink" href="/admin">Apps&amp;Services Admin</a>
42
+ </div>
43
+ </div>
44
+ <% if (!Kadmin::Auth.config.enabled? || logged_in?) && !Kadmin.config.navbar_items.empty? %>
45
+ <nav class="menu">
46
+ <ul class="nav metismenu" id="sidebar-menu">
47
+ <% Kadmin.config.navbar_items_for_user(authorized_user).each do |item| %>
48
+ <%= item.present(self).render %>
49
+ <% end %>
50
+ </ul>
51
+ </nav>
52
+ <% end %>
53
+ </div>
54
+ </aside>
55
+ <div class="sidebar-overlay" id="sidebar-overlay"></div>
56
+ <article class="content dashboard-page">
57
+ <div class="row">
58
+ <% if content_for?(:sidebar) %>
59
+ <div class="col-xl-8">
60
+ <!-- main -->
61
+ <%= render partial: 'kadmin/helpers/alerts' %>
62
+ <%= yield %>
63
+ </div>
64
+ <div class="col-xl-4 helpsidebar">
65
+ <!-- sidebar -->
66
+ <div class="card card-default">
67
+ <div class="card-header">
68
+ <div class="header-block">
69
+ <p class="title">Help</p>
70
+ </div>
71
+ </div>
72
+ <div class="card-block">
73
+ <%= yield(:sidebar) %>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ <% else %>
78
+ <div class="col-sm-12">
79
+ <%= render partial: 'kadmin/helpers/alerts' %>
80
+ <%= yield %>
81
+ </div>
82
+ <% end %>
83
+ </div>
84
+ </article>
85
+ <footer class="footer">
86
+ <div class="footer-block buttons"></div>
87
+ <div class="footer-block author">
88
+ <ul>
89
+ <li>Problems?
90
+ <a href="https://redmine.offerista.com/projects/apps-services/issues/new">Create a Ticket</a>
91
+ </li>
92
+ </ul>
93
+ </div>
94
+ </footer>
95
+ </div>
96
+ </div>
97
97
  <%= javascript_include_tag "kadmin/application" %>
98
- <script type='text/javascript'>
99
- jQuery(document).ready(function () {
98
+ <script type='text/javascript'>
99
+ jQuery(document).ready(function () {
100
100
  jQuery('#sidebar-menu').metisMenu({ activeClass: 'open' });
101
- });
102
- </script>
101
+ });
102
+ </script>
103
103
  <%= yield :javascripts %>
104
- </body>
104
+ </body>
105
105
  </html>
@@ -1,3 +1,3 @@
1
1
  module Kadmin
2
- VERSION = '1.0.6'.freeze
2
+ VERSION = '1.0.7'.freeze
3
3
  end
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: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Pepin-Perreault