itsf_backend 1.1.13 → 1.1.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91310fda7ec353e2b58d4d42320ecb2f6dcccde9
|
4
|
+
data.tar.gz: 627855de9ef543afd8f958eaa642bbfacb28475b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cdd41eed0665bfcd572550a48e97f809b3f0709a0d60d5fe27d92f13370149945d31b8fae4bb8da1c66714af76b59480ad7bc57684db670b07c4e914fc1b4a3
|
7
|
+
data.tar.gz: 5ef7084dd2010b791b9c0b704350ff4bdad815c465a203e27033ff40e7919b9aa0b4ead858b9cbbeea639a02fc1a8986b25ef129f6d4e0e61b6609329409d009
|
@@ -6,9 +6,10 @@
|
|
6
6
|
%h1= @resource.try_all(*Itsf::Backend::Configuration.resource_title_methods)
|
7
7
|
.col-xs-4
|
8
8
|
#page-actions.btn-container-right
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
- if !Itsf::Backend.features?(:pundit) || policy(resource_class).destroy?
|
10
|
+
= link_to(resource_path(@resource), method: :delete, class: 'btn btn-danger btn-responsive', 'data-confirm': I18n.t('confirmations.delete')) do
|
11
|
+
%span.glyphicon.glyphicon-fire
|
12
|
+
%span.btn-text= t('.destroy')
|
12
13
|
|
13
14
|
.panel.panel-default.panel-with-actions
|
14
15
|
%table.table.table-striped.table-condensed.table-hover
|
@@ -27,8 +28,9 @@
|
|
27
28
|
%span.btn-text= t('.back')
|
28
29
|
- rescue ActionController::UrlGenerationError
|
29
30
|
- begin
|
30
|
-
|
31
|
-
|
32
|
-
|
31
|
+
- if !Itsf::Backend.features?(:pundit) || policy(resource_class).edit?
|
32
|
+
= link_to(edit_resource_path(@resource), class: 'btn btn-primary btn-responsive') do
|
33
|
+
%span.glyphicon.glyphicon-pencil
|
34
|
+
%span.btn-text= t('.edit')
|
33
35
|
- rescue ActionController::UrlGenerationError
|
34
36
|
|
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.14
|
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-
|
11
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|