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: b46a454a0cc04ee7331bbb9f4c7faaf4f6f55331
4
- data.tar.gz: ae33e2c5eb9862eefc7d9ab086ea6debf75734fc
3
+ metadata.gz: c35877733622286a83ee580433eb82ab782d1f46
4
+ data.tar.gz: 8b5b8532a53773d2c93993ea1fac5360dc3209cd
5
5
  SHA512:
6
- metadata.gz: f5b7601e7efc2559f8ccc379a604cb1bc20dc8043060d6b9aa65b4a12ee7204ca4df561ca5bd9bf6e2f121979a242fecbd1bca64859d6c1ea91a639d5f9ff4ea
7
- data.tar.gz: 9344fb411d4871b5a9fa4df9f1640281d8999fe356c7fe73dd9ccf6a24ddb57240e883cdce03135f2a471b747ced73c3eae42a28739c202c2b48e3c2065952c4
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.version %>
15
+ <%= @scriptcdn_main.scrptversion %>
16
16
  </p>
17
17
 
18
- <%= link_to 'Edit', edit_scriptcdn_main_path(@scriptcdn_main) %> |
18
+ <%= link_to 'Edit', edit_scriptcdn_main_path(scriptcdn_main) %> |
19
19
  <%= link_to 'Back', scriptcdn_mains_path %>
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.5.2"
2
+ VERSION = "1.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts