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 +4 -4
- data/app/views/snaptable/_buttons.html.erb +12 -3
- data/lib/snaptable/rails/version.rb +1 -1
- data/lib/snaptable/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f069ec5ac3c93cfce3f2599b16c89ee4fb547109
|
4
|
+
data.tar.gz: 4b57c12f65e1a588e0e16552b0008d08a8816985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
5
|
-
|
6
|
-
|
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>
|
data/lib/snaptable/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|