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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13c6db79d22d4007559203369e1cdba6054143db
4
- data.tar.gz: b4426e4b944e3896e176a13c2d3c2fc4ad93c410
3
+ metadata.gz: f10f146ccece0283434d65b74694792730e6e456
4
+ data.tar.gz: aa91271a030f5c339f5355995524b8bb202909dc
5
5
  SHA512:
6
- metadata.gz: a94a73d38f029c3e8860e310da114002363a3a98a6a0ccb0abc76ce052b057dd5839a15ef5d05d9142461eed69a090e9696d577303337d2ce89542af91f66ea6
7
- data.tar.gz: 40392bc4006a1d531b5c69ec1b5a3f84b06f115b1c35664280af5b095c46415f610751f4f917df91150b76784e3d02cacb2171971f10fa4e4a328096562e1a6e
6
+ metadata.gz: 85d62fcedaf46a798e8374c63ab3154940cd2e05d1217ee8c7be5ac4b57fcaaa4f159ba9baf7c5830c67bf02e980b15551206953d7728a0585e46d5c38e12681
7
+ data.tar.gz: 9bbb239ee75f5fc7729844f38ed40d47c39fc36d98c5424f903ce0008d06862cd7924ba0b7acbe1bf3c9e553a2921e5e750e15220a726ed4f44663cd084a24af
@@ -1,8 +1,15 @@
1
- @media (min-width: 1200px) {
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
  }
@@ -1,4 +1,4 @@
1
- #navigation-logo {
1
+ #main-navigation:not(.sidebar-nav) #navigation-logo {
2
2
  margin-top: 6px;
3
3
  margin-right: 8px;
4
4
 
@@ -1,5 +1,6 @@
1
1
  #page-title.bottom-margin-1
2
- %h3= t('.title', engine_name: t("classes.#{engine.name.underscore}"))
2
+ .col-lg-12
3
+ %h3= t('.title', engine_name: t("classes.#{engine.name.underscore}"))
3
4
 
4
5
  .col-lg-12= render 'dashboard_panel', engine: engine
5
6
 
@@ -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/main_navigation_drop_down', locals: { engine: engine }
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")
@@ -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
- %button.navbar-toggle(type="button" data-toggle="collapse" data-target=".navbar-responsive-collapse")
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
- .col-lg-12
55
- = bootstrap_flash
56
- = yield
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'
@@ -56,12 +56,12 @@ de:
56
56
  view: 'Anzeigen'
57
57
  index:
58
58
  back: "Zurück"
59
- title: "Willkommen im %{engine_name}-Modul"
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}-Modul"
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:
@@ -95,7 +95,7 @@ en:
95
95
  layouts:
96
96
  itsf:
97
97
  backend:
98
- base:
98
+ main_navigation:
99
99
  title: "%{application_name}"
100
100
  locales:
101
101
  en: English
@@ -1,9 +1,11 @@
1
1
  Itsf::Backend.configure do |config|
2
- # Manually disable features
2
+ # Manually enable features.
3
3
  #
4
- # Default: config.disabled_features: []
5
- #
6
- config.disabled_features = []
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(:disabled_features) { [] }
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? && !Itsf::Backend::Configuration.disabled_features.include?(name)
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
@@ -1,5 +1,5 @@
1
1
  module Itsf
2
2
  module Backend
3
- VERSION = '1.2.1'
3
+ VERSION = '1.2.4'
4
4
  end
5
5
  end
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.1
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-08 00:00:00.000000000 Z
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.html.haml
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