itsf_backend 1.2.1 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/itsf/backend/application/bootstrap-vertical-navigation.css.less +9 -2
- data/app/assets/stylesheets/itsf/backend/application/navigation-logo.css.less +1 -1
- data/app/views/itsf/backend/home/index.html.haml +2 -1
- data/app/views/layouts/itsf/backend/{_main_navigation.html.haml → _engine_navigation.html.haml} +1 -1
- data/app/views/layouts/itsf/backend/{_main_navigation_drop_down.html.haml → _engine_navigation_drop_down.html.haml} +0 -0
- data/app/views/layouts/itsf/backend/_main_navigation.haml +18 -0
- data/app/views/layouts/itsf/backend/base.html.haml +14 -23
- data/config/locales/de.yml +4 -2
- data/config/locales/en.yml +1 -1
- data/lib/generators/itsf/backend/install/templates/initializer.rb +6 -4
- data/lib/itsf/backend/configuration.rb +1 -1
- data/lib/itsf/backend/features.rb +1 -1
- data/lib/itsf/backend/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f10f146ccece0283434d65b74694792730e6e456
|
4
|
+
data.tar.gz: aa91271a030f5c339f5355995524b8bb202909dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85d62fcedaf46a798e8374c63ab3154940cd2e05d1217ee8c7be5ac4b57fcaaa4f159ba9baf7c5830c67bf02e980b15551206953d7728a0585e46d5c38e12681
|
7
|
+
data.tar.gz: 9bbb239ee75f5fc7729844f38ed40d47c39fc36d98c5424f903ce0008d06862cd7924ba0b7acbe1bf3c9e553a2921e5e750e15220a726ed4f44663cd084a24af
|
@@ -1,8 +1,15 @@
|
|
1
|
-
@media (min-width:
|
1
|
+
@media (min-width: 992px) {
|
2
2
|
.sidebar-nav .navbar-brand {
|
3
|
-
float: unset;
|
3
|
+
/* float: unset; */
|
4
|
+
line-height: 24px;
|
4
5
|
}
|
5
6
|
|
7
|
+
.sidebar-nav #navigation-logo {
|
8
|
+
display: inline-block;
|
9
|
+
margin-top: 15px;
|
10
|
+
margin-left: 15px;
|
11
|
+
}
|
12
|
+
|
6
13
|
.sidebar-nav .navbar-brand .logo {
|
7
14
|
margin: 0 auto;
|
8
15
|
}
|
data/app/views/layouts/itsf/backend/{_main_navigation.html.haml → _engine_navigation.html.haml}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
- Itsf::Backend::Configuration.backend_engines.each do |engine|
|
2
2
|
- if !respond_to?(:engine_policy) || engine_policy(engine).access?
|
3
3
|
- if request.original_url =~ /#{main_app.send("#{engine.engine_name}_path")}/
|
4
|
-
= render partial: 'layouts/itsf/backend/
|
4
|
+
= render partial: 'layouts/itsf/backend/engine_navigation_drop_down', locals: { engine: engine }
|
5
5
|
- else
|
6
6
|
%li= link_to t("classes.#{engine.name.underscore}"), main_app.send("#{engine.engine_name}_path")
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
%button.navbar-toggle(type="button" data-toggle="collapse" data-target=".navbar-responsive-collapse")
|
2
|
+
%span.icon-bar
|
3
|
+
%span.icon-bar
|
4
|
+
%span.icon-bar
|
5
|
+
#navigation-logo.pull-left
|
6
|
+
= render 'layouts/itsf/backend/logo'
|
7
|
+
= Itsf::Backend::Configuration.title_link.call(self)
|
8
|
+
.navbar-collapse.collapse.navbar-responsive-collapse
|
9
|
+
%ul.nav.navbar-nav
|
10
|
+
= render 'layouts/itsf/backend/engine_navigation'
|
11
|
+
%ul.nav.navbar-nav.pull-right
|
12
|
+
= render_i18n_navigation
|
13
|
+
- if respond_to?(:render_user_navigation)
|
14
|
+
%ul.nav.navbar-nav.pull-right
|
15
|
+
= render_user_navigation(dropdown: true)
|
16
|
+
- if Itsf::Backend.features?(:multi_client)
|
17
|
+
%ul.nav.navbar-nav.pull-right
|
18
|
+
= render_client_navigation
|
@@ -26,33 +26,24 @@
|
|
26
26
|
= "<!-- CSS for #{engine} -->".html_safe
|
27
27
|
= stylesheet_link_tag engine.name.underscore.gsub('/', '_').gsub('_engine', ''), media: "all"
|
28
28
|
|
29
|
-
%body
|
29
|
+
%body{ class: Itsf::Backend::Configuration.main_navigation_style.eql?(:vertical) ? 'p-t-2' : nil }
|
30
30
|
- if Itsf::Backend::Configuration.main_navigation_style.eql? :horizontal
|
31
|
-
.navbar.navbar-default.navbar-static-top
|
31
|
+
#main-navigation.navbar.navbar-default.navbar-static-top
|
32
32
|
.container-fluid
|
33
|
-
|
34
|
-
%span.icon-bar
|
35
|
-
%span.icon-bar
|
36
|
-
%span.icon-bar
|
37
|
-
#navigation-logo.pull-left
|
38
|
-
= render 'layouts/itsf/backend/logo'
|
39
|
-
= Itsf::Backend::Configuration.title_link.call(self)
|
40
|
-
.navbar-collapse.collapse.navbar-responsive-collapse
|
41
|
-
%ul.nav.navbar-nav
|
42
|
-
= render 'layouts/itsf/backend/main_navigation'
|
43
|
-
%ul.nav.navbar-nav.pull-right
|
44
|
-
= render_i18n_navigation
|
45
|
-
- if respond_to?(:render_user_navigation)
|
46
|
-
%ul.nav.navbar-nav.pull-right
|
47
|
-
= render_user_navigation(dropdown: true)
|
48
|
-
- if Itsf::Backend.features?(:multi_client)
|
49
|
-
%ul.nav.navbar-nav.pull-right
|
50
|
-
= render_client_navigation
|
33
|
+
= render 'layouts/itsf/backend/main_navigation'
|
51
34
|
|
52
35
|
.container-fluid
|
53
36
|
.row
|
54
|
-
.
|
55
|
-
|
56
|
-
|
37
|
+
- if Itsf::Backend::Configuration.main_navigation_style.eql? :vertical
|
38
|
+
.col-md-12
|
39
|
+
= bootstrap_flash
|
40
|
+
= yield
|
41
|
+
- else
|
42
|
+
.col-md-3
|
43
|
+
#main-navigation.sidebar-nav.navbar.navbar-default
|
44
|
+
= render 'layouts/itsf/backend/main_navigation'
|
45
|
+
.col-md-9
|
46
|
+
= bootstrap_flash
|
47
|
+
= yield
|
57
48
|
%footer
|
58
49
|
= render 'layouts/itsf/backend/footer'
|
data/config/locales/de.yml
CHANGED
@@ -56,12 +56,12 @@ de:
|
|
56
56
|
view: 'Anzeigen'
|
57
57
|
index:
|
58
58
|
back: "Zurück"
|
59
|
-
title: "Willkommen im %{engine_name}
|
59
|
+
title: "Willkommen im Modul für %{engine_name}"
|
60
60
|
dashboard:
|
61
61
|
dashboard_panel:
|
62
62
|
view: 'Anzeigen'
|
63
63
|
index:
|
64
|
-
title: "Willkommen im %{engine_name}
|
64
|
+
title: "Willkommen im Modul für %{engine_name}"
|
65
65
|
resource:
|
66
66
|
base:
|
67
67
|
edit:
|
@@ -103,6 +103,8 @@ de:
|
|
103
103
|
backend:
|
104
104
|
base:
|
105
105
|
title: "%{application_name}"
|
106
|
+
main_navigation:
|
107
|
+
title: "%{application_name}"
|
106
108
|
locales:
|
107
109
|
de: Deutsch
|
108
110
|
routes:
|
data/config/locales/en.yml
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
Itsf::Backend.configure do |config|
|
2
|
-
# Manually
|
2
|
+
# Manually enable features.
|
3
3
|
#
|
4
|
-
#
|
5
|
-
#
|
6
|
-
config.
|
4
|
+
# Options: kaminari, :pundit, :ransack
|
5
|
+
#
|
6
|
+
# Default: config.enabled_features: []
|
7
|
+
#
|
8
|
+
config.enabled_features = [:kaminari]
|
7
9
|
|
8
10
|
# Set the base controller the backend dashboards
|
9
11
|
#
|
@@ -16,7 +16,7 @@ module Itsf
|
|
16
16
|
mattr_accessor :engine_mount_point
|
17
17
|
mattr_accessor :title_link
|
18
18
|
mattr_accessor :resource_title_methods
|
19
|
-
mattr_accessor(:
|
19
|
+
mattr_accessor(:enabled_features) { [] }
|
20
20
|
mattr_accessor(:hidden_attributes_for) do
|
21
21
|
{ index: [], show: [], edit: [] }
|
22
22
|
end
|
@@ -6,7 +6,7 @@ module Itsf
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def features?(name)
|
9
|
-
Gem::Specification.find_all_by_name(name.to_s).any? &&
|
9
|
+
Gem::Specification.find_all_by_name(name.to_s).any? && Itsf::Backend::Configuration.enabled_features.include?(name)
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
data/lib/itsf/backend/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itsf_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -564,10 +564,11 @@ files:
|
|
564
564
|
- app/views/itsf/backend/service/base/index.html.haml
|
565
565
|
- app/views/itsf/backend/service/base/invoke.html.haml
|
566
566
|
- app/views/itsf/backend/service/base/success.html.haml
|
567
|
+
- app/views/layouts/itsf/backend/_engine_navigation.html.haml
|
568
|
+
- app/views/layouts/itsf/backend/_engine_navigation_drop_down.html.haml
|
567
569
|
- app/views/layouts/itsf/backend/_footer.html.haml
|
568
570
|
- app/views/layouts/itsf/backend/_logo.html.haml
|
569
|
-
- app/views/layouts/itsf/backend/_main_navigation.
|
570
|
-
- app/views/layouts/itsf/backend/_main_navigation_drop_down.html.haml
|
571
|
+
- app/views/layouts/itsf/backend/_main_navigation.haml
|
571
572
|
- app/views/layouts/itsf/backend/base.html.haml
|
572
573
|
- config/initializers/assets.rb
|
573
574
|
- config/initializers/extend_object.rb
|