phcscriptcdnpro 1.11.5 → 1.11.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcscriptcdnpro/scriptcdn/informations_controller.rb +3 -3
- data/app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb +3 -3
- data/app/views/phcscriptcdnpro/scriptcdn/informations/index.html.erb +1 -1
- data/app/views/phcscriptcdnpro/scriptcdn/versions/index.html.erb +2 -2
- data/lib/phcscriptcdnpro/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: a0addf8b489b23ebb55110c1bb6c612c8630333d
|
4
|
+
data.tar.gz: c5c3d7b5c6eb2a89b7289b721198051e87f15273
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4798fbe0985147f8bcd5d6bce680986c27c8eb62595558d60cf96ee2e6fad63c7177e1058b3c4f40efd8931dd3209ea24e67173d7493a0680a6e61ab6db4bc67
|
7
|
+
data.tar.gz: dae165702d4be1f4ae13b89051dc80c50d3c4d8cd591572b3e0a72257419cfd5b6d7d1fbf7e7d85833ac0b738a85c3d93f400a8e0663ee3e1338b2b528b7414f
|
@@ -31,7 +31,7 @@ module Phcscriptcdnpro
|
|
31
31
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
32
32
|
@scriptcdn_information = @scriptcdn_main.informations.create(scriptcdn_information_params)
|
33
33
|
if @scriptcdn_information.save
|
34
|
-
redirect_to
|
34
|
+
redirect_to scriptcdn_main_informations_url, notice: 'Information was successfully created.'
|
35
35
|
else
|
36
36
|
render :new
|
37
37
|
end
|
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
|
|
40
40
|
# PATCH/PUT Script Information
|
41
41
|
def update
|
42
42
|
if @scriptcdn_information.update(scriptcdn_information_params)
|
43
|
-
redirect_to
|
43
|
+
redirect_to scriptcdn_main_informations_url, notice: 'Information was successfully updated.'
|
44
44
|
else
|
45
45
|
render :edit
|
46
46
|
end
|
@@ -51,7 +51,7 @@ module Phcscriptcdnpro
|
|
51
51
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
52
52
|
@scriptcdn_information = @scriptcdn_main.informations.find(params[:id])
|
53
53
|
@scriptcdn_information.destroy
|
54
|
-
redirect_to
|
54
|
+
redirect_to scriptcdn_main_informations_url, notice: 'Information was successfully destroyed.'
|
55
55
|
end
|
56
56
|
|
57
57
|
private
|
@@ -31,7 +31,7 @@ module Phcscriptcdnpro
|
|
31
31
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
32
32
|
@scriptcdn_version = @scriptcdn_main.versions.create(scriptcdn_version_params)
|
33
33
|
if @scriptcdn_version.save
|
34
|
-
redirect_to
|
34
|
+
redirect_to scriptcdn_main_versions_url, notice: 'Script version was successfully created.'
|
35
35
|
else
|
36
36
|
render :new
|
37
37
|
end
|
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
|
|
40
40
|
# PATCH/PUT Script Version
|
41
41
|
def update
|
42
42
|
if @scriptcdn_version.update(scriptcdn_version_params)
|
43
|
-
redirect_to
|
43
|
+
redirect_to scriptcdn_main_versions_url, notice: 'Script version was successfully updated.'
|
44
44
|
else
|
45
45
|
render :edit
|
46
46
|
end
|
@@ -51,7 +51,7 @@ module Phcscriptcdnpro
|
|
51
51
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
52
52
|
@scriptcdn_version = @scriptcdn_main.versions.find(params[:id])
|
53
53
|
@scriptcdn_version.destroy
|
54
|
-
redirect_to
|
54
|
+
redirect_to scriptcdn_main_versions_url, notice: 'Script version was successfully destroyed.'
|
55
55
|
end
|
56
56
|
|
57
57
|
private
|
@@ -55,7 +55,7 @@
|
|
55
55
|
<td><%= link_to scriptcdn_information.scriptcategory, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
|
56
56
|
<td><%= link_to scriptcdn_information.scriptlicence, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
|
57
57
|
<td><%= link_to scriptcdn_information.scriptplatform, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
|
58
|
-
<td><%= link_to 'Destroy',
|
58
|
+
<td><%= link_to 'Destroy', scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
|
59
59
|
</tr>
|
60
60
|
<% end %>
|
61
61
|
</tbody>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
31
31
|
</div>
|
32
32
|
<div class="actions">
|
33
|
-
<%= link_to new_scriptcdn_main_version_path, class: "btn blue-chambray" do %>
|
33
|
+
<%= link_to phcscriptcdnpro.new_scriptcdn_main_version_path, class: "btn blue-chambray" do %>
|
34
34
|
<i class="fa fa-plus"></i> Add a New Script Version
|
35
35
|
<% end %>
|
36
36
|
</div>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
<% @scriptcdn_versions.each do |scriptcdn_version| %>
|
50
50
|
<tr>
|
51
51
|
<td><%= link_to scriptcdn_version.version, edit_scriptcdn_main_version_path(scriptcdn_version.main, scriptcdn_version) %></td>
|
52
|
-
<td><%= link_to 'Destroy',
|
52
|
+
<td><%= link_to 'Destroy', scriptcdn_main_version_path(scriptcdn_version.main, scriptcdn_version), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
|
53
53
|
</tr>
|
54
54
|
<% end %>
|
55
55
|
</tbody>
|