itsf_backend 1.1.10 → 1.1.11
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 +20 -19
- data/lib/itsf/backend/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7c1de1b1f5e4126d71aba7ff8806ae9ebc59940
|
4
|
+
data.tar.gz: b5d0e5123dfd41cc3cb53ec6399418f3bbe97ef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7609a2dfe6fb95e99f56a3e1fabb8e147ef3d2443e613289a52ce1905d15463ef53eaf7f27bd9adf872240df6dbbe16f3b0e1017cc0a1f54f898f7e888ecd793
|
7
|
+
data.tar.gz: 4429a6054e7f9c5f077e3a92fd4d9f410d63862733785762860a61c5cd0276d20edc8913f6385ebacd9ffeccabc635509b6fe5783e162e1b6d07a3a06ded7776
|
@@ -4,26 +4,27 @@
|
|
4
4
|
= t(".resources")
|
5
5
|
%table.table.table-striped.table-hover.table-condensed
|
6
6
|
- "#{engine.to_s.deconstantize}::Configuration".constantize.registered_controllers.call.each do |kontroller|
|
7
|
-
|
8
|
-
%
|
9
|
-
|
10
|
-
%
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
21
22
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
27
28
|
|
28
29
|
|
29
30
|
.panel.panel-default
|
data/lib/itsf/backend/version.rb
CHANGED