phcscriptcdnpro 1.5.2 → 1.5.3
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: c35877733622286a83ee580433eb82ab782d1f46
|
4
|
+
data.tar.gz: 8b5b8532a53773d2c93993ea1fac5360dc3209cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f22b5cc944c87dca0be4c7fba23a4776f802e912e750c8b30d58ec7eab1a440b7c24fa6915ac4ac7e758e79be7142094cfefc9c837eb66edc4f910a72a35c6d6
|
7
|
+
data.tar.gz: e989715a0887f8014c285a1475ba305f9193bd0d3dbac99d46d2fc0f9fb8447ce6f447dece4402feb776171711564b112f1ec6683715b34bd4f73fa88d358698
|
@@ -5,6 +5,7 @@ module Phcscriptcdnpro
|
|
5
5
|
|
6
6
|
# Security & Action Filters
|
7
7
|
before_action :require_user
|
8
|
+
before_action :scriptcdn_version_information
|
8
9
|
layout '/layouts/phcscriptcdnpro/application.html.erb'
|
9
10
|
before_action :set_scriptcdn_main, only: [:show, :edit, :update, :destroy]
|
10
11
|
|
@@ -53,6 +54,11 @@ module Phcscriptcdnpro
|
|
53
54
|
|
54
55
|
private
|
55
56
|
|
57
|
+
# Directory Category Information
|
58
|
+
def scriptcdn_version_information
|
59
|
+
@scriptcdn_vserion = Scriptcdn::Version.find(params[:version_id])
|
60
|
+
end
|
61
|
+
|
56
62
|
# Common Callbacks
|
57
63
|
def set_scriptcdn_main
|
58
64
|
@scriptcdn_main = Scriptcdn::Main.find(params[:id])
|
@@ -42,26 +42,14 @@
|
|
42
42
|
<tr>
|
43
43
|
<th>Script Name</th>
|
44
44
|
<th>Script Description</th>
|
45
|
-
<th>Version</th>
|
46
|
-
<th></th>
|
47
45
|
</tr>
|
48
46
|
</thead>
|
49
47
|
|
50
48
|
<tbody>
|
51
49
|
<% @scriptcdn_mains.each do |scriptcdn_main| %>
|
52
50
|
<tr>
|
53
|
-
<td><%= scriptcdn_main.scriptname %></td>
|
54
|
-
<td><%= scriptcdn_main.scriptdescription %></td>
|
55
|
-
<td><%= scriptcdn_main.version %></td>
|
56
|
-
<td>
|
57
|
-
<div class="btn-group" role="group" aria-label="Script">
|
58
|
-
<% if current_user %>
|
59
|
-
<%= link_to 'Show', scriptcdn_main, class: "btn blue-chambray" %>
|
60
|
-
<%= link_to 'Edit', edit_scriptcdn_main_path(scriptcdn_main), class: "btn blue-chambray" %>
|
61
|
-
<%= link_to 'Destroy', scriptcdn_main, class: "btn blue-chambray", method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %>
|
62
|
-
<% end %>
|
63
|
-
</div>
|
64
|
-
</td>
|
51
|
+
<td><%= link_to scriptcdn_main.scriptname, scriptcdn_main %></td>
|
52
|
+
<td><%= link_to scriptcdn_main.scriptdescription, scriptcdn_main %></td>
|
65
53
|
</tr>
|
66
54
|
<% end %>
|
67
55
|
</tbody>
|
@@ -12,8 +12,8 @@
|
|
12
12
|
|
13
13
|
<p>
|
14
14
|
<strong>Version:</strong>
|
15
|
-
<%= @scriptcdn_main.
|
15
|
+
<%= @scriptcdn_main.scrptversion %>
|
16
16
|
</p>
|
17
17
|
|
18
|
-
<%= link_to 'Edit', edit_scriptcdn_main_path(
|
18
|
+
<%= link_to 'Edit', edit_scriptcdn_main_path(scriptcdn_main) %> |
|
19
19
|
<%= link_to 'Back', scriptcdn_mains_path %>
|