foreman_hosts 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,8 @@ class ForemanHosts::SyhostmodelsController < ApplicationController
14
14
  # GET /syhostmodels/1.json
15
15
  def show
16
16
  @syhostmodel = ForemanHosts::Syhostmodel.find(params[:id])
17
-
17
+ # @syhosts = Host.all
18
+ # @syfactvalues = FactValue.all
18
19
  respond_to do |format|
19
20
  format.html # show.html.erb
20
21
  format.json { render json: @syhostmodel }
@@ -12,7 +12,7 @@
12
12
  <% detail_name_no1 = 1 %>
13
13
  <% details.each do |detail| %>
14
14
 
15
- <th id="td<%= detail_name_no1 %>"><%= detail.fact_name.name %>
15
+ <th id="td<%= detail_name_no1 %>"><%#= detail.fact_name.name %>
16
16
  <br />
17
17
  <button type='button'><a href="javascript:void(0);" onclick="DeleteSignColumn(<%= detail_name_no1 %>);"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></button></th>
18
18
  <% detail_name_no1 += 1 %>
@@ -20,18 +20,18 @@
20
20
  </tr>
21
21
  </thead>
22
22
  <tbody>
23
- <% Host.all.each do |host| %>
23
+ <% #Host.all.each do |host| %>
24
24
  <tr>
25
- <td class='ellipsis'><%= name_column(host) %></td>
25
+ <td class='ellipsis'><%#= name_column(host) %></td>
26
26
 
27
- <% details.each do |detail| %>
27
+ <!-- <% #details.each do |detail| %> -->
28
28
  <td>
29
29
  <%#= FactValue.where(host_id: host.id, fact_name_id: detail.fact_name_id).last.value rescue nil%>
30
30
 
31
31
 
32
32
  <%#= get_detail_value(host, detail_name) %>
33
33
  </td>
34
- <% end %>
34
+ <%# end %>
35
35
 
36
36
  </tr>
37
37
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module ForemanHosts
2
- VERSION = '1.1.8'
2
+ VERSION = '1.1.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_hosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: