itsf_backend 1.1.11 → 1.1.12

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: e7c1de1b1f5e4126d71aba7ff8806ae9ebc59940
4
- data.tar.gz: b5d0e5123dfd41cc3cb53ec6399418f3bbe97ef7
3
+ metadata.gz: ed20c497a1608b960009473492d685f4fb0d76b9
4
+ data.tar.gz: d517639fbc5d9f9c1178a8175c496aaf8d257ac6
5
5
  SHA512:
6
- metadata.gz: 7609a2dfe6fb95e99f56a3e1fabb8e147ef3d2443e613289a52ce1905d15463ef53eaf7f27bd9adf872240df6dbbe16f3b0e1017cc0a1f54f898f7e888ecd793
7
- data.tar.gz: 4429a6054e7f9c5f077e3a92fd4d9f410d63862733785762860a61c5cd0276d20edc8913f6385ebacd9ffeccabc635509b6fe5783e162e1b6d07a3a06ded7776
6
+ metadata.gz: 97c797c0f3737feb95ebc98a8319b55b4c5dcc99208dec41aabba8a9ab1666cb448f8865837e55320ee6a5c07337de96c4ebc353a074fe8859fe8da6da1416c2
7
+ data.tar.gz: 45c74e18e55d80a7774283d6c61d661e246504a2c86b183ed1ead0193d6d8bbc05c4888d9f00ea4308794a488038ebce45f8997d357173fa56f5df4f01b3858e
@@ -1,44 +1,46 @@
1
- .panel.panel-default
2
- .panel-heading
3
- .panel-title
4
- = t(".resources")
5
- %table.table.table-striped.table-hover.table-condensed
6
- - "#{engine.to_s.deconstantize}::Configuration".constantize.registered_controllers.call.each do |kontroller|
7
- - if !Itsf::Backend.features?(:pundit) || policy(kontroller.resource_class).index?
8
- %tr
9
- %th.col-md-3= kontroller.resource_class.model_name.human(count: :other)
10
- %td.text-left
11
- %span.label.label-default
12
- - if respond_to?(:current_user) && current_user.respond_to?(:last_sign_in_at) && kontroller.resource_class.respond_to?(:column_names) && kontroller.resource_class.column_names.include?('updated_at')
13
- = "#{kontroller.resource_class.where("updated_at > ?", current_user.last_sign_in_at).count}/#{kontroller.resource_class.count}"
14
- - else
15
- = kontroller.resource_class.count
16
- %td.text-right
17
- - begin
18
- = link_to({ controller: kontroller.name.underscore.gsub('_controller', ''), action: 'new' }, id: "link-to-#{kontroller.name.underscore.gsub('_controller', '').gsub(/[\/_]/, '-')}-new", class: 'btn btn-success btn-xs btn-responsive') do
19
- %span.glyphicon.glyphicon-plus
20
- %span.btn-text= t('.new')
21
- - rescue ActionController::UrlGenerationError
1
+ - if"#{engine.to_s.deconstantize}::Configuration".constantize.registered_controllers.call.any?
2
+ .panel.panel-default
3
+ .panel-heading
4
+ .panel-title
5
+ = t(".resources")
6
+ %table.table.table-striped.table-hover.table-condensed
7
+ - "#{engine.to_s.deconstantize}::Configuration".constantize.registered_controllers.call.each do |kontroller|
8
+ - if !Itsf::Backend.features?(:pundit) || policy(kontroller.resource_class).index?
9
+ %tr
10
+ %th.col-md-3= kontroller.resource_class.model_name.human(count: :other)
11
+ %td.text-left
12
+ %span.label.label-default
13
+ - if respond_to?(:current_user) && current_user.respond_to?(:last_sign_in_at) && kontroller.resource_class.respond_to?(:column_names) && kontroller.resource_class.column_names.include?('updated_at')
14
+ = "#{kontroller.resource_class.where("updated_at > ?", current_user.last_sign_in_at).count}/#{kontroller.resource_class.count}"
15
+ - else
16
+ = kontroller.resource_class.count
17
+ %td.text-right
18
+ - begin
19
+ = link_to({ controller: kontroller.name.underscore.gsub('_controller', ''), action: 'new' }, id: "link-to-#{kontroller.name.underscore.gsub('_controller', '').gsub(/[\/_]/, '-')}-new", class: 'btn btn-success btn-xs btn-responsive') do
20
+ %span.glyphicon.glyphicon-plus
21
+ %span.btn-text= t('.new')
22
+ - rescue ActionController::UrlGenerationError
22
23
 
23
- - begin
24
- = link_to({ controller: kontroller.name.underscore.gsub('_controller', '') }, id: "link-to-#{kontroller.name.underscore.gsub('_controller', '').gsub(/[\/_]/, '-')}-index" ,class: 'btn btn-primary btn-xs btn-responsive') do
25
- %span.glyphicon.glyphicon-eye-open
26
- %span.btn-text= t('.view')
27
- - rescue ActionController::UrlGenerationError
24
+ - begin
25
+ = link_to({ controller: kontroller.name.underscore.gsub('_controller', '') }, id: "link-to-#{kontroller.name.underscore.gsub('_controller', '').gsub(/[\/_]/, '-')}-index" ,class: 'btn btn-primary btn-xs btn-responsive') do
26
+ %span.glyphicon.glyphicon-eye-open
27
+ %span.btn-text= t('.view')
28
+ - rescue ActionController::UrlGenerationError
28
29
 
29
30
 
30
- .panel.panel-default
31
- .panel-heading
32
- .panel-title
33
- = t(".services")
34
- %table.table.table-striped.table-hover.table-condensed
35
- - "#{engine.to_s.deconstantize}::Configuration".constantize.registered_services.call.each do |kontroller|
36
- %tr
37
- %th.col-md-3= t("classes.#{kontroller.service_class.name.underscore}")
38
- %td.text-right
39
- = link_to({ controller: kontroller.name.underscore.gsub('_controller', ''), action: 'invoke' }, { id: "link-to-#{kontroller.name.underscore.gsub('_controller', '').gsub(/[\/_]/, '-')}-invoke", class: 'btn btn-success btn-xs btn-responsive' }) do
40
- %span.glyphicon.glyphicon-play-circle
41
- %span.btn-text= t('.invoke')
42
- = link_to({ controller: kontroller.name.underscore.gsub('_controller', '') }, { id: "link-to-#{kontroller.name.underscore.gsub('_controller', '').gsub(/[\/_]/, '-')}-index", class: 'btn btn-primary btn-xs btn-responsive' }) do
43
- %span.glyphicon.glyphicon-eye-open
44
- %span.btn-text= t('.view')
31
+ - if "#{engine.to_s.deconstantize}::Configuration".constantize.registered_services.call.any?
32
+ .panel.panel-default
33
+ .panel-heading
34
+ .panel-title
35
+ = t(".services")
36
+ %table.table.table-striped.table-hover.table-condensed
37
+ - "#{engine.to_s.deconstantize}::Configuration".constantize.registered_services.call.each do |kontroller|
38
+ %tr
39
+ %th.col-md-3= t("classes.#{kontroller.service_class.name.underscore}")
40
+ %td.text-right
41
+ = link_to({ controller: kontroller.name.underscore.gsub('_controller', ''), action: 'invoke' }, { id: "link-to-#{kontroller.name.underscore.gsub('_controller', '').gsub(/[\/_]/, '-')}-invoke", class: 'btn btn-success btn-xs btn-responsive' }) do
42
+ %span.glyphicon.glyphicon-play-circle
43
+ %span.btn-text= t('.invoke')
44
+ = link_to({ controller: kontroller.name.underscore.gsub('_controller', '') }, { id: "link-to-#{kontroller.name.underscore.gsub('_controller', '').gsub(/[\/_]/, '-')}-index", class: 'btn btn-primary btn-xs btn-responsive' }) do
45
+ %span.glyphicon.glyphicon-eye-open
46
+ %span.btn-text= t('.view')
@@ -1,5 +1,5 @@
1
1
  module Itsf
2
2
  module Backend
3
- VERSION = '1.1.11'
3
+ VERSION = '1.1.12'
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.1.11
4
+ version: 1.1.12
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-03-30 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails