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 +4 -4
- data/app/views/itsf/backend/home/_dashboard_panel.html.haml +43 -41
- data/lib/itsf/backend/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed20c497a1608b960009473492d685f4fb0d76b9
|
4
|
+
data.tar.gz: d517639fbc5d9f9c1178a8175c496aaf8d257ac6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97c797c0f3737feb95ebc98a8319b55b4c5dcc99208dec41aabba8a9ab1666cb448f8865837e55320ee6a5c07337de96c4ebc353a074fe8859fe8da6da1416c2
|
7
|
+
data.tar.gz: 45c74e18e55d80a7774283d6c61d661e246504a2c86b183ed1ead0193d6d8bbc05c4888d9f00ea4308794a488038ebce45f8997d357173fa56f5df4f01b3858e
|
@@ -1,44 +1,46 @@
|
|
1
|
-
.
|
2
|
-
.panel-
|
3
|
-
.panel-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
-
|
8
|
-
|
9
|
-
%
|
10
|
-
|
11
|
-
%
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
.
|
31
|
-
.panel-
|
32
|
-
.panel-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
%
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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')
|
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.1.
|
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-
|
11
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|