itsf_backend 4.0.0 → 4.0.1

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: 2e9bf152a47f6d33c377a79b147bd2ba6e365b5d
4
- data.tar.gz: 3e788d459e042b7f19b9240a3c0a29800f66322b
3
+ metadata.gz: 94b8e68b7534779006c7efef17f7c4a0bad73d5a
4
+ data.tar.gz: 07d612fba03a8d9468d81b7b10340d847493e4fe
5
5
  SHA512:
6
- metadata.gz: f759400b30ee5f1ac3b7cf30dc8dc031436fa9fa444cc07df6c0199a78497d12041a6e885cf57fd93a5e3f8477e9ecd412e36c3613c2273f4f4e4c92ea89a6c9
7
- data.tar.gz: 7a5559f8a8e7b54581f3f7c2fbf469e9f2bf2dca2d17b8fe2bfc0d8daa0077300aa4fc45a9118eb04f56330933de60d7146a582a75bdfb908031a0cf36a2fd7b
6
+ metadata.gz: 5d458482ff907892c59a67594bad8cffd9d70738b16c13c13edba09cc0cc16a78b2b2aa1c04882622231fd9e8e288aa622bd232a34792c9032520a7f375bfd5d
7
+ data.tar.gz: 5003c6a306f2e86ce2f1ab7193c0b0bae7d184b250804e6a6e744666b414cdabe388b6ff797d3bde232480a89208e8174e148856fbcf5f0aa30d6c5b32359bab
@@ -13,7 +13,6 @@
13
13
  //= require jquery
14
14
  //= require jquery_ujs
15
15
  //= require jquery-ui
16
- //= require turbolinks
17
16
  //= require twitter/bootstrap
18
17
  //= require cocoon
19
18
  //= require_tree ./vendor
@@ -1,3 +1,5 @@
1
+ /*
1
2
  #auxiliary-navigation {
2
3
  background-color: #f5f5f5;
3
- }
4
+ }
5
+ */
@@ -1,3 +1,9 @@
1
+ @media(min-width:992px) {
2
+ body {
3
+ padding-top: 60px;
4
+ }
5
+ }
6
+
1
7
  #page-title {
2
8
  h1 {
3
9
  margin-top: 0;
@@ -1,3 +1,3 @@
1
1
  #vertical-navigation {
2
- margin-top: 60px;
2
+ margin-top: 56px;
3
3
  }
@@ -45,14 +45,14 @@ module Itsf::Backend
45
45
  private
46
46
 
47
47
  def after_create_location
48
- return edit_resource_path(@resource) if params.has_key?(:commit_and_continue_with_edit)
49
- return new_resource_path if params.has_key?(:commit_and_continue_with_new)
48
+ return edit_resource_path(@resource) if params.has_key?(:commit_and_continue_with_edit) && @resource.persisted?
49
+ return new_resource_path if params.has_key?(:commit_and_continue_with_new) && @resource.persisted?
50
50
  @resource
51
51
  end
52
52
 
53
53
  def after_update_location
54
- return edit_resource_path(@resource) if params.has_key?(:commit_and_continue_with_edit)
55
- return new_resource_path if params.has_key?(:commit_and_continue_with_new)
54
+ return edit_resource_path(@resource) if params.has_key?(:commit_and_continue_with_edit) && !@resource.changed?
55
+ return new_resource_path if params.has_key?(:commit_and_continue_with_new) && !@resource.changed?
56
56
  @resource
57
57
  end
58
58
  end
@@ -1,5 +1,6 @@
1
1
  #page-title.bottom-margin-1
2
- %h3= t('.title', engine_name: t(controller.class.name.deconstantize.underscore.gsub('/', '_')))
2
+ .col-lg-12
3
+ %h3= t('.title')
3
4
 
4
5
  - Itsf::Backend::Configuration.backend_engines.each do |engine|
5
6
  - if !Itsf::Backend.features?(:pundit) || engine_policy(engine).access?
@@ -49,10 +49,10 @@
49
49
  .panel-footer
50
50
  - if features?(:kaminari)
51
51
  .row
52
- .col-md-4
53
- .col-md-4
52
+ .col-md-3
53
+ .col-md-6
54
54
  .text-center= paginate @collection, theme: 'twitter-bootstrap-3'
55
- .col-md-4
55
+ .col-md-3
56
56
 
57
57
  = render 'index_extras', collection: @collection
58
58
 
@@ -1,5 +1,3 @@
1
- %p#notice= notice
2
-
3
1
  #resource-pages-naviation.bottom-margin-1
4
2
  = render 'resource_pages_navigation', resource: @resource
5
3
 
@@ -27,7 +27,7 @@
27
27
  = stylesheet_link_tag engine.name.underscore.gsub('/', '_').gsub('_engine', ''), media: "all"
28
28
 
29
29
  %body
30
- #auxiliary-navigation
30
+ #auxiliary-navigation.navbar.navbar-default.navbar-fixed-top
31
31
  = render 'layouts/itsf/backend/auxiliary_navigation'
32
32
 
33
33
  .container-fluid
@@ -65,7 +65,7 @@ de:
65
65
  dashboard_panel:
66
66
  view: 'Anzeigen'
67
67
  index:
68
- title: "Willkommen im Modul für %{engine_name}"
68
+ title: "Willkommen im Backend"
69
69
  resource:
70
70
  base:
71
71
  edit:
@@ -62,7 +62,7 @@ en:
62
62
  dashboard_panel:
63
63
  view: 'Show'
64
64
  index:
65
- title: "Welcome to the %{engine_name}-Module"
65
+ title: "Welcome to the Backend"
66
66
  resource:
67
67
  base:
68
68
  edit:
@@ -102,8 +102,15 @@ en:
102
102
  layouts:
103
103
  itsf:
104
104
  backend:
105
+ auxiliary_navigation:
106
+ title: "%{application_name}"
107
+ base:
108
+ title: "%{application_name}"
105
109
  main_navigation:
106
110
  title: "%{application_name}"
111
+ vertical_navigation:
112
+ home: "Home"
113
+ title: "%{application_name}"
107
114
  locales:
108
115
  en: English
109
116
  routes:
@@ -1,5 +1,5 @@
1
1
  module Itsf
2
2
  module Backend
3
- VERSION = '4.0.0'
3
+ VERSION = '4.0.1'
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: 4.0.0
4
+ version: 4.0.1
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: 2017-07-15 00:00:00.000000000 Z
11
+ date: 2017-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails