snaptable 0.5.1 → 0.6.0

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: 001d1c6a25e1a6e57c482ed0840e0711ffef6cbd
4
- data.tar.gz: a1f14e3d907baa4652dd7da582d02de2a6b424de
3
+ metadata.gz: f069ec5ac3c93cfce3f2599b16c89ee4fb547109
4
+ data.tar.gz: 4b57c12f65e1a588e0e16552b0008d08a8816985
5
5
  SHA512:
6
- metadata.gz: 1c222093601fa74c74a0ffcaae005d41caabb0308cf42662cb945f47f70dfcaf9ccad4b94fef8e55083acb68db16ef35bda22c7167a23f2a6be66afb142406f6
7
- data.tar.gz: 654368ee81afd9b7015148bcebbe7b25bbe40da88bcf5ae78e396c8df886efbc174666d59c4eaea0dc18b520ec9f6b24859da465d5877a0efa0ad0d7e017932e
6
+ metadata.gz: ef441aaa4e5f6b5b4ad45e731732b93057bfd41b8e9740a59d205a6fdaafa413c16a124beb3781b9632ae5c2a269823b396146e86c6a6a80ee7b229470d5e8bb
7
+ data.tar.gz: aa71ccee5dad6d3497a99030560eef43809bfe2a2217ee5d0786868b8a8126a4b1c9117fef786adc07f4df6046674c1a036a77f9de54fad9192f73f12a1d8fb5
@@ -1,8 +1,17 @@
1
1
  <div class="table_buttons">
2
2
  <p>Actions</p>
3
3
  <p>
4
- <%= link_to "Ajouter", request.path + "/new", class: "add" %>
5
- <a class="edit" href="#">Editer</a>
6
- <a class="delete" href="#" data-method="delete" rel="nofollow" data-confirm="Etes-vous sûr de vouloir supprimer cette entrée ?">Supprimer</a>
4
+ <%= if !Snaptable.use_permission || current_permission.allow_create?(params[:controller]) %>
5
+ <%= link_to "Ajouter", request.path + "/new", class: "add" %>
6
+ <% end %>
7
+ <% if !Snaptable.use_permission || current_permission.allow_modify?(params[:controller], "update") %>
8
+ <a class="edit" href="#">Editer</a>
9
+ <% end %>
10
+ <% if !Snaptable.use_permission || current_permission.allow_modify?(params[:controller], "destroy") %>
11
+ <a class="delete" href="#" data-method="delete"
12
+ rel="nofollow" data-confirm="Etes-vous sûr de vouloir supprimer cette entrée ?">
13
+ Supprimer
14
+ </a>
15
+ <% end %>
7
16
  </p>
8
17
  </div>
@@ -1,5 +1,5 @@
1
1
  module Snaptable
2
2
  module Rails
3
- VERSION = "0.5.1"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module Snaptable
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - khcr
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-25 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 2.4.6
167
+ rubygems_version: 2.4.5
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: A gem that generate HTML tables from your models in order to display them